/* ================================================================
   ABAK Portal — landing.css
   Estilos compartidos de las páginas públicas (Home/*)
   Incluir ANTES del <style> de página.
================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   NAVBAR FLOTANTE (.lnav)
══════════════════════════════════════════════════ */
.lnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.4);
    transition: background .3s, box-shadow .3s;
}

[data-theme="dark"] .lnav {
    background: rgba(10,17,32,.72);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.lnav.scrolled {
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

[data-theme="dark"] .lnav.scrolled {
    background: rgba(10,17,32,.95);
}

.lnav-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.lnav-brand span {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--abak-blue);
    letter-spacing: .03em;
}

[data-theme="dark"] .lnav-brand span { color: var(--abak-cyan); }

.lnav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}

.lnav-links a {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    transition: background .15s, color .15s;
}

.lnav-links a:hover {
    background: rgba(11,188,212,.12);
    color: var(--abak-cyan);
}

.lnav-links a i { font-size: .85rem; }

.lnav-links a.active {
    color: var(--abak-cyan);
    background: rgba(11,188,212,.1);
}

.lnav-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Botón tema ── */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: 999px;
    width: 36px; height: 36px;
    cursor: pointer;
    font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}

.theme-btn:hover { background: var(--bg3); }

/* ── Chip de usuario autenticado ── */
.user-chip {
    position: relative;
}

.user-chip-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    padding: .4rem .9rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: all .15s;
}

.user-chip-toggle:hover { background: var(--bg3); }

.user-chip-toggle .chevron {
    font-size: .65rem;
    transition: transform .15s;
}

.user-chip.open .chevron { transform: rotate(180deg); }

.user-chip-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .75rem 1rem;
    box-shadow: var(--card-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
    z-index: 600;
}

.user-chip.open .user-chip-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.uc-email {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text2);
    margin-bottom: .8rem;
    word-break: break-all;
}

.uc-email i { color: var(--abak-cyan); }

.uc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .42rem .85rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    margin-bottom: .45rem;
}

.uc-btn-perfil {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
}

.uc-btn-perfil:hover { background: var(--border); }

.uc-btn-logout {
    background: #C62828;
    border: none;
    color: #fff;
}

.uc-btn-logout:hover { background: #b71c1c; }

/* ── Botón login ── */
.btn-login-nav {
    background: var(--abak-cyan);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .42rem 1.1rem;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(11,188,212,.35);
}

.btn-login-nav:hover {
    background: var(--abak-blue);
    box-shadow: 0 6px 20px rgba(21,101,192,.4);
    transform: translateY(-1px);
}

/* ── Hamburger móvil ── */
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: .3rem;
}

/* ══════════════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 400;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--abak-cyan);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 4px 16px rgba(11,188,212,.45);
    transition: all .2s;
}

.scroll-top:hover { background: var(--abak-blue); }
.scroll-top.visible { display: flex; }

/* ══════════════════════════════════════════════════
   MOBILE NAV OVERLAY
══════════════════════════════════════════════════ */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 450;
    background: var(--surface);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: .5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a,
.mobile-nav button.mn-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}

.mobile-nav a:hover,
.mobile-nav button.mn-item:hover { background: var(--bg3); }

.mobile-nav-close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

.mn-divider { height: 1px; background: var(--border); margin: .5rem 0; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .lnav-links { display: none; }
    .nav-hamburger { display: block; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Index (footer)
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   FOOTER — compartido por todas las páginas landing
══════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.lfoot {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem 1.8rem;
}

.lfoot-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.lfoot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lfoot-brand p {
    font-size: .9rem;
    color: var(--text2);
    line-height: 1.6;
    margin: .8rem 0 1.2rem;
}

.lfoot-socials {
    display: flex;
    gap: .6rem;
}

.lfoot-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text2);
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
}

.lfoot-socials a:hover {
    background: var(--abak-cyan);
    border-color: var(--abak-cyan);
    color: #fff;
}

.lfoot-col h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

.lfoot-col ul { list-style: none; }

.lfoot-col ul li {
    margin-bottom: .5rem;
}

.lfoot-col ul li a {
    font-size: .88rem;
    color: var(--text2);
    text-decoration: none;
    transition: color .15s;
}

.lfoot-col ul li a:hover { color: var(--abak-cyan); }

.lfoot-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .88rem;
    color: var(--text2);
    margin-bottom: .55rem;
}

.lfoot-contact-item i {
    color: var(--abak-cyan);
    margin-top: .15rem;
    font-size: .8rem;
}

.lfoot-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.lfoot-copy {
    font-size: .82rem;
    color: var(--text3);
}

.lfoot-links {
    display: flex;
    gap: 1.2rem;
}

.lfoot-links a {
    font-size: .82rem;
    color: var(--text3);
    text-decoration: none;
}

.lfoot-links a:hover { color: var(--abak-cyan); }
@media (max-width: 900px) {
    .lfoot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .lfoot-grid { grid-template-columns: 1fr; }
    .section { padding: 4rem 1.2rem; }
    .lfoot-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Servicios
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .btn-srv-outline { margin-left: 0; margin-top: .75rem; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Equipo
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .eq-grid { grid-template-columns: 1fr; }
    .eq-hero { padding: 9rem 1.2rem 4rem; }
}

/* ══════════════════════════════════════════════════
   ANIMACIONES (Index — scroll hint)
══════════════════════════════════════════════════ */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: .6; transform: translate(-50%, 0); }
}

/* ══════════════════════════════════════════════════
   PANEL DE ACCESIBILIDAD FLOTANTE
══════════════════════════════════════════════════ */

/* Botón disparador */
.a11y-fab {
    position: fixed;
    bottom: 88px;          /* encima del scroll-top */
    left: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--abak-blue), var(--abak-cyan));
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11,188,212,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.a11y-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(11,188,212,.6);
}

/* Caja del panel */
.a11y-box {
    position: fixed;
    bottom: 140px;
    left: 20px;
    z-index: 900;
    width: 270px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.a11y-box.open { display: flex; }

/* Cabecera del panel */
.a11y-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: linear-gradient(135deg, var(--abak-blue), var(--abak-cyan));
    color: #fff;
}
.a11y-box-header span {
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.a11y-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.a11y-close:hover { color: #fff; }

/* Filas de control */
.a11y-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.a11y-row:last-child { border-bottom: none; }

.a11y-row-lbl {
    font-family: 'Exo 2', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text3);
    flex-shrink: 0;
    width: 64px;
}

/* Grupo de botones pequeños */
.a11y-ctrl { display: flex; gap: 5px; }
.a11y-btn-sm {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.a11y-btn-sm:hover,
.a11y-btn-sm.active {
    background: var(--abak-cyan);
    border-color: var(--abak-cyan);
    color: #fff;
}

/* Slider de brillo */
.a11y-slider {
    flex: 1;
    height: 4px;
    appearance: none;
    background: linear-gradient(to right, #000, var(--abak-cyan));
    border-radius: 2px;
    cursor: pointer;
}
.a11y-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--abak-cyan);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(11,188,212,.5);
}

/* Toggle on/off */
.a11y-toggle {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text2);
    font-family: 'Exo 2', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.a11y-toggle.on {
    background: var(--abak-cyan);
    border-color: var(--abak-cyan);
    color: #fff;
}

/* ══════════════════════════════════════════════════
   MODO ALTO CONTRASTE
══════════════════════════════════════════════════ */
[data-contrast="high"] {
    --bg:       #000 !important;
    --bg2:      #0a0a0a !important;
    --bg3:      #111 !important;
    --surface:  #000 !important;
    --surface2: #111 !important;
    --border:   #fff !important;
    --text:     #fff !important;
    --text2:    #eee !important;
    --text3:    #ccc !important;
    --nav-bg:   #000 !important;
    --nav-border: #fff !important;
}
[data-contrast="high"] .lnav {
    border-bottom: 2px solid #fff;
}
[data-contrast="high"] a,
[data-contrast="high"] button {
    outline-offset: 2px;
}
[data-contrast="high"] .btn-login-nav,
[data-contrast="high"] .btn-contact-send {
    outline: 2px solid #fff;
}

/* ── Lector activo: resalta el elemento que se está leyendo ── */
.a11y-reading {
    outline: 3px solid var(--abak-cyan) !important;
    outline-offset: 3px;
    background: rgba(11,188,212,.08) !important;
    border-radius: 4px;
}
