/* =====================================================================
   Landing — index.html
   Diseño moderno: gradientes, patrón de fondo, jerarquía clara
   ===================================================================== */

/* Sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; min-height: 100dvh;
    position: relative;
}

/* === Patrón de fondo sutil (dot grid, se desvanece) === */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(2, 86, 122, 0.08) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar .brand-logo {
    transition: opacity var(--transition);
}

.navbar .brand-logo:hover { opacity: 0.85; }

.navbar .logo,
.navbar .brand-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--accent);
}

.navbar nav { display: flex; align-items: center; gap: 8px; }

/* CTA en navbar — pill discreta */
.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition: all var(--transition);
}

.nav-cta:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 32px 80px;
    overflow: hidden;
    animation: fade-in 500ms ease-out;
}

/* === Contenido centrado === */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Badge "Plataforma activa" arriba del título */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    animation: badge-fade 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    box-shadow: 0 0 0 0 rgba(2, 86, 122, 0.5);
    animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(2, 86, 122, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(2, 86, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 86, 122, 0); }
}

@keyframes badge-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Título grande con gradiente parcial */
.hero-content h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
    color: var(--text);
    font-weight: 700;
    animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 100ms;
}

.gradient-text {
    background: linear-gradient(135deg, #02567A 0%, #0a7fa8 50%, #2dabd0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
    display: inline-block;
}

.hero-content > p {
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 auto 36px;
    max-width: 540px;
    animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 200ms;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Botón CTA === */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 300ms;
}

.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-text);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 1px 2px rgba(2, 86, 122, 0.20),
        0 8px 20px rgba(2, 86, 122, 0.24);
    transition: all var(--transition);
}

.hero-buttons .btn-secondary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 2px 4px rgba(2, 86, 122, 0.22),
        0 12px 28px rgba(2, 86, 122, 0.30);
}

.hero-buttons .btn-secondary:hover .btn-arrow {
    transform: translateX(3px);
}

.hero-buttons .btn-secondary:active {
    transform: translateY(0);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 1px 2px rgba(2, 86, 122, 0.18);
}

.btn-arrow {
    transition: transform var(--transition);
}

/* === Línea de "trust" con punto pulsante === */
.hero-trust {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 22px !important;
    font-size: 13px !important;
    color: var(--text-subtle) !important;
    letter-spacing: 0.01em;
    animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 400ms;
}

.trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* =====================================================================
   DIVIDER + AFILIACIONES
   ===================================================================== */
.hero-divider {
    max-width: 1100px;
    margin: 0 auto;
    height: 1px;
    border: 0;
    background: linear-gradient(to right,
        transparent 0%,
        var(--border) 20%,
        var(--border) 80%,
        transparent 100%);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 32px;
}

.footer-affiliations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 28px;
}

.footer-affiliations li {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.footer-affiliations li:hover { color: var(--accent); }

/* Separador puntito entre items */
.footer-affiliations li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    width: 3px;
    height: 3px;
    background: var(--border-strong);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
    .hero {
        padding: 64px 24px 64px;
    }
}

@media (max-width: 640px) {
    .navbar { padding: 14px 16px; }
    .hero { padding: 48px 16px 48px; }
    .hero-content > p { font-size: 15px; }
    .hero-content h1 { font-size: clamp(32px, 8vw, 42px); }
    .site-footer-inner { padding: 18px 16px; }
    .footer-affiliations { gap: 10px 22px; }
    .footer-affiliations li { font-size: 12px; }
    .footer-affiliations li:not(:last-child)::after { right: -12px; }
}
