/* Base & Reset (Tailwind Preflight) */
*,
::after,
::before {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
}

html,
:host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

h1,
p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

img,
svg {
    display: block;
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

/* Variables de Tema y Marca Copagua */
:root {
    --copagua-blue: #2f4fa8;
    --copagua-blue-dark: #1e3370;
    --copagua-blue-light: #3e63d4;
    --copagua-green: #84c325;
    --copagua-green-dark: #6ba31c;
    --copagua-soft: #f4f8fd;
}

/* Selección de texto */
.selection\:bg-copagua-green *::selection,
.selection\:bg-copagua-green::selection {
    background-color: var(--copagua-green);
    color: #0f172a;
}

/* Layout y Posicionamiento */
.pointer-events-none {
    pointer-events: none;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.-top-32 {
    top: -8rem;
}

.-left-32 {
    left: -8rem;
}

.-bottom-32 {
    bottom: -8rem;
}

.-right-32 {
    right: -8rem;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

/* Flexbox y Grid */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

/* Dimensiones */
.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.h-2\.5 {
    height: 0.625rem;
}

.h-4 {
    height: 1rem;
}

.h-12 {
    height: 3rem;
}

.h-20 {
    height: 5rem;
}

.h-96 {
    height: 24rem;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-2\.5 {
    width: 0.625rem;
}

.w-4 {
    width: 1rem;
}

.w-12 {
    width: 3rem;
}

.w-96 {
    width: 24rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* Márgenes y Paddings */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2\.5 {
    margin-bottom: 0.625rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3\.5 {
    padding: 0.875rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3\.5 {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

/* Overflow y Objetos */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

.object-center {
    object-position: center;
}

/* Tipografía */
.font-sans {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.text-center {
    text-align: center;
}

.text-\[11px\] {
    font-size: 11px;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-extrabold {
    font-weight: 800;
}

.uppercase {
    text-transform: uppercase;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Colores de Texto */
.text-transparent {
    color: transparent;
}

.text-white {
    color: #ffffff;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-900 {
    color: #0f172a;
}

.text-emerald-800 {
    color: #065f46;
}

.text-lime-300 {
    color: #bef264;
}

/* Fondos y Gradientes */
.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-50\/80 {
    background-color: rgba(248, 250, 252, 0.8);
}

.bg-white\/85 {
    background-color: rgba(255, 255, 255, 0.85);
}

.bg-emerald-50 {
    background-color: #ecfdf5;
}

.bg-blue-200\/40 {
    background-color: rgba(191, 219, 254, 0.4);
}

.bg-lime-200\/40 {
    background-color: rgba(217, 249, 157, 0.4);
}

.bg-copagua-blue {
    background-color: var(--copagua-blue);
}

.bg-copagua-green {
    background-color: var(--copagua-green);
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.8), rgba(241, 245, 249, 0.95));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--copagua-blue), var(--copagua-green-dark));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Bordes y Anillos (Rings) */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-white {
    border-color: #ffffff;
}

.border-slate-100 {
    border-color: #f1f5f9;
}

.border-slate-200\/80 {
    border-color: rgba(226, 232, 240, 0.8);
}

.border-emerald-200\/70 {
    border-color: rgba(167, 243, 208, 0.7);
}

.ring-1 {
    box-shadow: 0 0 0 1px var(--ring-color, rgba(226, 232, 240, 0.6));
}

.ring-slate-200\/60 {
    --ring-color: rgba(226, 232, 240, 0.6);
}

.ring-black\/5 {
    --ring-color: rgba(0, 0, 0, 0.05);
}

/* Sombras */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.w-12.h-12.ring-1.shadow-sm {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-xl.shadow-slate-200\/70.ring-1 {
    box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.6), 0 20px 25px -5px rgba(226, 232, 240, 0.7), 0 8px 10px -6px rgba(226, 232, 240, 0.7);
}

.shadow-lg.shadow-copagua-blue\/25 {
    box-shadow: 0 10px 15px -3px rgba(47, 79, 168, 0.25), 0 4px 6px -4px rgba(47, 79, 168, 0.25);
}

/* Filtros y Efectos Visuales */
.opacity-25 {
    opacity: 0.25;
}

.opacity-75 {
    opacity: 0.75;
}

.scale-105 {
    transform: scale(1.05);
}

.filter.brightness-\[1\.08\].saturate-\[0\.85\] {
    filter: brightness(1.08) saturate(0.85);
}

.drop-shadow-sm {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.blur-3xl {
    filter: blur(64px);
}

.backdrop-blur-\[3px\] {
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.backdrop-blur-xl {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

/* Transiciones y Animaciones */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Interacciones (Hover / Active / Group Hover) */
@media (hover: hover) {
    .hover\:scale-\[1\.02\]:hover {
        transform: scale(1.02);
    }

    .hover\:bg-white:hover {
        background-color: #ffffff;
    }

    .hover\:bg-copagua-blue-dark:hover {
        background-color: var(--copagua-blue-dark);
    }

    .hover\:border-sky-300:hover {
        border-color: #7dd3fc;
    }

    .hover\:border-blue-300:hover {
        border-color: #93c5fd;
    }

    .hover\:border-lime-400:hover {
        border-color: #a3e635;
    }

    .hover\:shadow-md:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    }

    .hover\:shadow-copagua-blue\/35:hover {
        box-shadow: 0 10px 15px -3px rgba(47, 79, 168, 0.35), 0 4px 6px -4px rgba(47, 79, 168, 0.35);
    }

    .group:hover .group-hover\:text-copagua-blue {
        color: var(--copagua-blue);
    }

    .group:hover .group-hover\:text-copagua-green-dark {
        color: var(--copagua-green-dark);
    }
}

.active\:scale-95:active {
    transform: scale(0.95);
}

/* Media Queries Responsivas (sm: 640px, md: 768px) */
@media (min-width: 640px) {
    .sm\:inline {
        display: inline;
    }

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:h-24 {
        height: 6rem;
    }

    .sm\:w-auto {
        width: auto;
    }

    .sm\:gap-5 {
        gap: 1.25rem;
    }

    .sm\:p-8 {
        padding: 2rem;
    }

    .sm\:p-10 {
        padding: 2.5rem;
    }

    .sm\:py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .sm\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .md\:h-28 {
        height: 7rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}