:root {
    --brand: #02558b;
    /* Bootstrap primary */
}

html,
body {
    height: 100%;
    /* ocupa todo el alto de la ventana */
    margin: 0;
    overflow-x: hidden;
    /* evita scroll horizontal */
    /*overscroll-behavior: none;*/
    /*background: linear-gradient(180deg, #02558b 0%, #00aed9 100%);*/
    background-color: #FFF;
    color: #02558b;
}

b{
    font-weight: 700 !important;
}
/*sin imagen**/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*color: #fff;*/
    color: #02558b;

    /* solo el gradiente, sin imagen */
}

main {
    flex: 1 0 auto;
    /* se estira para empujar al footer */
    display: flex;
    flex-direction: column;
    /* sacá height: 100% */
}

.hero {
    padding: 4rem 0;
    text-align: center;
    /* el hero NO ocupa todo, queda arriba */
}

main::after {
    content: "";
    flex: 1;
    /* este “espaciador” ocupa el hueco sobrante dentro de main */
}

/* FOOTER */
footer {
    background: #02558b;
    background-size: cover;
    flex-shrink: 0;
}

/* Contenedor de logos */
.ally-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* centrados */
    align-items: center;
    gap: 24px 32px;
    /* fila x columna */
}

/* Cada celda de logo */
.ally {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen del logo */
.ally-logo {
    max-height: 30px;
    /* ajustá si querés más grande/chico */
    height: auto;
    width: auto;
    filter: grayscale(30%);
    opacity: .9;
}

/* FIN FOOTER*/

/* ===== Splash ===== */
.hero {
    padding-top: 24px;
}

/* círculo con splash de fondo */
.hero-splash {
    position: relative;
    width: clamp(320px, 42vw, 560px);
    aspect-ratio: 1/1;
    background: url("../files/images/logo-splash.png") no-repeat center;
    background-size: contain;
    margin: 0 auto;
}

/* círculo con splash de fondo */
.hero-splash-en {
    position: relative;
    width: clamp(320px, 42vw, 560px);
    aspect-ratio: 1/1;
    background: url("../files/images/logo-splash-eng.png") no-repeat center;
    background-size: contain;
    margin: 0 auto;
}


/* overlay SIEMPRE centrado en el círculo */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* centra exacto */
    width: 82%;
    /* margen interno para que no pegue los bordes */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tipos (usando tus @font-face locales) */
.hero-title {
    font-family: 'Dangrek', sans-serif;
    /* 36pt ≈ 48px pero con clamp para que no se rompa en mobile */
    font-size: clamp(4rem, 7vw, 5rem);
    line-height: 1;
    color: #0b4f7a;
    margin: 0 0 .25rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}

.hero-subtitle {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    font-style: italic;
    /* 9pt ≈ 12px pero con clamp suave */
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    color: #0b4f7a;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* ===== Botones ===== */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    /* desktop base */
}

/* tus estilos de .splash-btn siguen igual */
.hero .splash-btn {
    display: inline-block;
    padding: .8rem 1.6rem;
    border-radius: 1.5rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    color: #026792;
    background: #fff;
    border: 1px solid #026792;
    box-shadow: 0 0 18px rgba(0, 174, 217, .35);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .03s ease;
}

.hero .splash-btn:hover {
    color: #fff;
    background: #026792;
    box-shadow: 0 0 22px rgba(0, 174, 217, .45);
}

.hero .splash-btn:active {
    color: #fff;
    background: #015374;
    border-color: #015374;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18), 0 0 16px rgba(0, 174, 217, .35);
    transform: translateY(1px);
}

.hero .splash-btn:focus,
.hero .splash-btn:focus-visible {
    outline: none !important;
}

/* ===== Mobile: empujar los botones más abajo ===== */
@media (max-width: 576px) {
    .hero-actions {
        margin-top: 42px;
    }

    /* más separación bajo el splash */
    .hero .splash-btn {
        min-width: 90%;
    }

    /* se ven anchos y prolijos */
}

/* Desktop/tablet: podés ponerlos en fila si querés */
@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        gap: 24px;
        margin-top: 28px;
    }
}

.hero .splash-btn {
    width: clamp(250px, 80%, 320px);
}

.maxw-700 {
    max-width: 700px;
}

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/*
.navbar {
    background: linear-gradient(180deg, #01395f 0%, #02558b 100%);
    color: white;
}

.navbar-brand {
    color: white;
}

.navbar .btn.lang-btn {
    padding: 4px 8px;
    line-height: 1;
}

*/
/*
.card .btn {
    border-radius: 0.75rem;
}

.card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .08);
}*/

/* Better focus outlines for a11y */
:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .5);
    outline-offset: 2px;
}

/* Banda oscura detrás de las cards */
#sections {
    background: linear-gradient(180deg, #022b3a 0%, #062a36 100%);
    padding-top: 2rem;
}


/* Ajustes en mobile */
@media (max-width: 576px) {
    .hero-logo {
        width: clamp(140px, 45vw, 220px);
        max-height: auto;
    }
}

@media (max-width: 576px) {
    .img-fluid.rounded {
        border-radius: 0.5rem;
    }
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #044f6e;
    --bs-btn-border-color: #044f6e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #026792;
    --bs-btn-hover-border-color: #026792;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00405c;
    --bs-btn-active-border-color: #00405c;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #044f6eF6;
    --bs-btn-disabled-border-color: #044f6eF6;
}

.btn-home {
    min-width: 200px;
}

/* Evita saltos por barras de direcciones móviles (usa la unidad dvh si existe) */
html, body { min-height: 100dvh; }

/* Que el hero ocupe exactamente el alto disponible calculado */
.hero {
  /* se setea por JS, pero dejamos un fallback */
  min-height: calc(100vh - 120px - 80px); /* fallback por si falla el JS */
  display: grid;
  place-items: center;       /* centra vertical y horizontal */
  padding: clamp(12px, 2vh, 24px) 0;
}

/* El splash parte de esta base; JS lo ajusta cuando falta espacio */
.hero-splash {
  width: clamp(280px, 42vw, 560px);
  max-width: 100%;
}

/* Si querés ir a “cero scroll” pase lo que pase, podés forzarlo.
   OJO: si el menú colapsado es MUY alto, podría cortar contenido. */
/*body { overflow-y: hidden; }*/