/* ============================================================
   base.css — variables, tipografías, botones, navbar y footer
   (lo comparten todas las páginas públicas)
   ============================================================ */
:root {
    --navy: #0b2536;
    --navy-2: #0f3249;
    --navy-3: #164560;
    --teal: #13c4a3;
    --teal-d: #0ea78a;
    --teal-soft: #e3f8f3;
    --blue: #1e7be8;
    --blue-soft: #e6f0fd;
    --purple: #7a4df0;
    --purple-soft: #f0eafe;
    --amber: #f2a30f;
    --amber-soft: #fdf3e0;
    --texto: #0f2a3a;
    --muted: #5b7080;
    --linea: #e3eaee;
    --fondo: #fbfaf7;
    --blanco: #ffffff;
    --radio: 18px;
    --sombra: 0 10px 30px rgba(11, 37, 54, .10);
    --f-titulo: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --f-texto: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --f-mano: 'Caveat', 'Segoe Script', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--f-texto);
    color: var(--texto);
    background: var(--fondo);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-titulo); line-height: 1.12; margin: 0; }
.contenedor { width: min(1240px, 100% - 48px); margin-inline: auto; }
.acento { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 600 .98rem var(--f-texto);
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(19, 196, 163, .45); outline-offset: 2px; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(19, 196, 163, .35); }
.btn-teal:hover { background: var(--teal-d); }
.btn-borde { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-borde:hover { background: var(--navy); color: #fff; }
.btn-borde-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-borde-claro:hover { background: #fff; color: var(--navy); }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    box-shadow: 0 2px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(11, 37, 54, .25);
}
.navbar-in { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.marca { display: flex; align-items: center; gap: 12px; color: #fff; }
.marca img { height: 58px; width: auto; }
.marca-texto { display: flex; flex-direction: column; line-height: 1; }
.marca-nombre { font: 800 2rem/1 var(--f-titulo); letter-spacing: -.5px; transform: skewX(-6deg); }
.marca-nombre span { color: var(--teal); }
.marca-lema { font-size: .72rem; color: #cfe3ec; margin-top: 5px; }
.nav-links { display: flex; gap: 8px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
    position: relative; display: block; padding: 10px 18px;
    color: #fff; font-weight: 500; font-size: .95rem; transition: color .15s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.activo { color: var(--teal); }
.nav-links a.activo::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: -6px; height: 3px;
    background: var(--teal); border-radius: 3px;
}
.nav-acciones { display: flex; gap: 14px; align-items: center; }
.nav-acciones .btn { padding: 10px 22px; font-size: .9rem; }
.nav-hamb {
    display: none; margin-left: auto; background: none; border: 0; color: #fff;
    font-size: 1.5rem; padding: 8px; cursor: pointer;
}

/* ---------- Footer ---------- */
.pie { background: var(--navy); color: #cfe3ec; margin-top: 0; }
.pie-in {
    display: grid; grid-template-columns: auto 1fr auto auto; gap: 36px; align-items: center;
    padding: 28px 0;
}
.pie .marca img { height: 64px; }
.pie .marca-nombre { font-size: 1.7rem; }
.pie-links { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.pie-links a { font-size: .88rem; color: #e8f3f8; }
.pie-links a:hover { color: var(--teal); }
.pie-redes { display: flex; gap: 18px; font-size: 1.15rem; }
.pie-redes a { color: #fff; opacity: .9; transition: color .15s; }
.pie-redes a:hover { color: var(--teal); }
.pie-ciudad { display: flex; align-items: center; gap: 12px; padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .15); font-family: var(--f-titulo); color: #fff; }
.pie-ciudad i { font-size: 1.7rem; color: var(--teal); }
.pie-ciudad small { display: block; font-size: .72rem; color: #8fb0c0; font-family: var(--f-texto); }
.pie-base {
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 16px 0 22px; font-size: .8rem; color: #8fb0c0;
}
.pie-base .lema { font-family: var(--f-mano); font-size: 1.25rem; color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .nav-hamb { display: block; }
    .nav-links, .nav-acciones {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--navy); flex-direction: column; padding: 14px 24px 22px;
        box-shadow: 0 16px 24px rgba(11, 37, 54, .3);
    }
    .navbar.abierto .nav-links, .navbar.abierto .nav-acciones { display: flex; }
    .navbar.abierto .nav-acciones { top: auto; position: static; box-shadow: none; padding: 0 24px 22px; }
    .navbar-in { flex-wrap: wrap; }
    .nav-links { margin: 0; }
    .nav-links a.activo::after { display: none; }
    .pie-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .pie-ciudad { border: 0; padding: 0; }
    .pie-base { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
