/* Reset mínimo */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Fuente del sistema para rendimiento */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    color: #eaf2ff;
    background: radial-gradient(1200px 800px at 20% 10%, #2f5fb81a 0%, transparent 60%), radial-gradient(1200px 900px at 80% 20%, #3aa0ff17 0%, transparent 60%), linear-gradient(180deg, #0a0f29 0%, #1b3566 50%, #2a5298 100%);
}

/* Contenedor principal */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* en lugar de center */
    align-items: center;
    padding-top: 50px; /* ajusta este valor según prefieras */
    overflow: hidden;
}




.overlay::after {
    animation-duration: 22s;
    animation-direction: reverse;
    opacity: .6;
}

@keyframes floaty {
    0%,100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-18px) translateX(12px);
    }
}

/* Centro */
.center {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px 60px; /* quita el padding superior */
    max-width: 1100px;
    width: 100%;
}


/* Logo grande centrado */
.logo-xl {
    width: min(70vw, 1080px);
    height: auto;
    display: block;
    margin: 0 auto 24px;
    filter: drop-shadow(0 6px 22px rgba(0,0,0,.35));
    animation: fadeIn 1.4s ease both;
   filter: drop-shadow(0 0 12px rgba(255,255,255,0.15)) drop-shadow(0 0 24px rgba(0,123,255,0.25));
}

.title {
    margin: 0 0 6px 0;
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: .4px;
    font-weight: 700;
    color: #ffffff;
    animation: slideDown .9s ease both;
}

.subtitle {
    margin: 0 auto 26px;
    max-width: 820px;
    line-height: 1.5;
    font-size: clamp(16px, 2.2vw, 20px);
    color: #d8e7ff;
    opacity: .95;
    animation: fadeIn 1.2s .2s ease both;
}

/* Tarjetas de valor */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 18px auto 14px;
    padding: 0 10px;
    max-width: 1100px;
}

@media (max-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .value-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: linear-gradient(180deg, #163162cc, #163162a6);
    border: 1px solid #3f68b44d;
    border-radius: 16px;
    padding: 18px 18px;
    text-align: left;
    color: #e6f0ff;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transform: scale(1) translateY(0);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: fadeInUp .8s ease both;
    cursor: default;
}

    .card:hover {
        transform: scale(1.05) translateY(-4px);
        box-shadow: 0 18px 40px rgba(0,0,0,.4);
    }


    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,.35);
    }

    .card h3 {
        margin: 0 0 6px 0;
        font-size: 18px;
        color: #ffffff;
    }

    .card p {
        margin: 0;
        font-size: 14.5px;
        color: #d8e7ff;
    }

/* Nota final */
.cta-note {
    margin: 22px 0 0 0;
    color: #cfe1ff;
    opacity: .9;
    font-size: 14px;
}

/* Animaciones base */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-14px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(10px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}


/* Botón de idioma */
.lang-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    border: 1px solid #3f68b4;
    background: #1a2f5f;
    color: #e6f0ff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

    .lang-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(0,0,0,.32);
        background: #223d7a;
    }

    .lang-btn:focus {
        outline: 2px solid #73a2ff;
        outline-offset: 2px;
    }

/* === Sticky footer con Bootstrap 5 === */
html, body {
    height: 100%;
}

    body.d-flex.flex-column.min-vh-100 {
        min-height: 100vh; /* ocupa toda la altura de la ventana */
    }

/* El contenedor central crece para empujar el footer hacia abajo */
.container.flex-grow-1 {
    flex: 1 0 auto;
}

/* El footer nunca debe estar fixed ni con altura forzada */
footer.footer {
    position: static !important; /* anula cualquier fixed/relative previo */
    line-height: normal !important;
    flex-shrink: 0;
}

/* (opcional) si alguna regla antigua le pone height al main, la quitamos */
main[role="main"] {
    min-height: 0;
    height: auto;
}
