/* =========================================================
   García Recta Design — chrome-premium.css
   Estilo nuevo (oscuro/premium) SOLO para header y footer —
   se carga en TODAS las páginas del sitio (vía partials/header.php),
   así que a propósito NO toca nada genérico (*, html, body,
   .container) para no afectar el resto de cada página.
   Misma estructura de siempre (site-header, site-nav, nav-dropdown,
   site-footer, footer-grid...), solo cambia el aspecto visual.
   ========================================================= */

:root {
    --chrome-black:  #0a0a0a;
    --chrome-carbon: #141414;
    --chrome-white:  #f5f5f3;
    --chrome-red:    #9A0C1A;
    --chrome-red-b:  #c4121f;
    --chrome-line:   rgba(245,245,243,.12);
    --chrome-font-display: 'Fraunces', Georgia, serif;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--chrome-line);
    transition: background .35s ease, border-color .35s ease, padding .35s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Overlay transparente sobre el hero (solo home) */
.site-header--overlay:not(.scrolled) {
    background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; display: block; }
.brand-name {
    font-family: var(--chrome-font-display); font-weight: 600; font-size: 15px;
    letter-spacing: .3px; color: var(--chrome-white);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a, .nav-dropdown > a {
    font-size: 12.5px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(245,245,243,.68); transition: color .25s ease; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}
.site-nav > a:hover, .nav-dropdown > a:hover, .site-nav a.active { color: #fff; }
.site-nav a.active { color: var(--chrome-red); }
.caret { font-size: 9px; transition: transform .2s ease; }
.nav-dropdown.open .caret { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
    background: var(--chrome-carbon); border: 1px solid var(--chrome-line); border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45); padding: 8px 0; min-width: 190px;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 10;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 13px; color: rgba(245,245,243,.75); }
.dropdown-menu a:hover { background: rgba(154,12,26,.14); color: #fff; }

.nav-login {
    border: 1px solid var(--chrome-line); padding: 9px 18px !important; border-radius: 2px;
    color: #fff !important; font-weight: 600 !important; transition: background .2s ease, border-color .2s ease;
}
.nav-login:hover { background: rgba(245,245,243,.06); border-color: rgba(245,245,243,.4); }

.nav-cta {
    background: var(--chrome-red); color: #fff !important; font-weight: 600; font-size: 12px;
    padding: 11px 22px !important; border-radius: 2px;
    transition: background .2s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--chrome-red-b); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 1px; background: var(--chrome-white); transition: .3s; }

@media (max-width: 900px) {
    .site-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px);
        background: var(--chrome-black); border-left: 1px solid var(--chrome-line);
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
        padding: 32px 30px; transform: translateX(100%);
        transition: transform .4s cubic-bezier(.16,.84,.44,1);
        overflow-y: auto;
    }
    .site-nav.open { transform: translateX(0); }
    .site-nav > a, .nav-dropdown > a { padding: 14px 0; color: rgba(245,245,243,.75); width: 100%; }
    .nav-dropdown { position: static; width: 100%; }
    .dropdown-menu {
        position: static; opacity: 0; visibility: hidden; max-height: 0; overflow: hidden;
        transform: none; box-shadow: none; border: none; padding: 0 0 0 18px; min-width: 0;
        transition: max-height .25s ease, opacity .2s ease;
    }
    .nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; max-height: 200px; padding: 0 0 10px 18px; }
    .dropdown-menu a { color: rgba(245,245,243,.85) !important; }
    .nav-login, .nav-cta { margin-top: 10px; text-align: center; justify-content: center; width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--chrome-black); color: rgba(245,245,243,.62); padding-top: 70px; border-top: 1px solid var(--chrome-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; font-size: 18px; }
.footer-text { font-size: 13.5px; color: rgba(245,245,243,.5); max-width: 300px; }
.footer-title { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(245,245,243,.42); margin-bottom: 16px; }
.footer-list { list-style: none; font-size: 14px; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: rgba(245,245,243,.75); transition: color .2s ease; }
.footer-list a:hover { color: #fff; }
.footer-map { margin-top: 16px; border-radius: 3px; overflow: hidden; border: 1px solid var(--chrome-line); filter: grayscale(1) invert(.92) contrast(.9); }
.footer-map iframe { width: 100%; height: 150px; border: 0; display: block; }
.footer-bottom { border-top: 1px solid var(--chrome-line); padding: 20px 0; font-size: 12px; color: rgba(245,245,243,.35); text-align: center; }

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante (usado en todas las páginas) ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 200;
    display: inline-flex; align-items: center; gap: 10px;
    width: max-content; max-width: calc(100vw - 44px);
    background: var(--chrome-black); color: #fff; border: 1px solid var(--chrome-line);
    padding: 13px 20px; border-radius: 40px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .3px; white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    transition: border-color .25s ease, transform .2s ease;
}
.wa-float svg { color: #25D366; flex-shrink: 0; }
.wa-float span { white-space: nowrap; }
.wa-float:hover { border-color: #25D366; transform: translateY(-2px); }

@media (max-width: 640px) {
    .wa-float span { display: none; }
    .wa-float { padding: 13px; border-radius: 50%; }
}