/* ============ Site header (público) ============ */

:root {
    --sh-bg: #ffffff;
    --sh-fg: #0f172a;
    --sh-muted: #64748b;
    --sh-border: #e5e7eb;
    --sh-accent: #ffd60a;
    --sh-accent-hover: #f0bf00;
    --sh-topbar-bg: #0f172a;
    --sh-topbar-fg: #cbd5e1;
    --sh-topbar-fg-hover: #ffffff;
}

.site-header {
    background: var(--sh-bg);
    border-bottom: 1px solid var(--sh-border);
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 80;
}

/* ---- Topbar ---- */
.site-topbar {
    background: var(--sh-topbar-bg);
    color: var(--sh-topbar-fg);
    font-size: .82rem;
}
.site-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .55rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-topbar__contact { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.site-topbar__contact a,
.site-topbar__hours {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--sh-topbar-fg);
    text-decoration: none;
}
.site-topbar__contact a:hover { color: var(--sh-topbar-fg-hover); }
.site-topbar__socials { display: flex; gap: .7rem; align-items: center; }
.site-topbar__socials a {
    color: var(--sh-topbar-fg);
    display: inline-flex;
    transition: color .15s;
}
.site-topbar__socials a:hover { color: var(--sh-topbar-fg-hover); }
.site-topbar__socials svg { width: 16px; height: 16px; }

/* ---- Navbar principal ---- */
.site-navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.site-navbar__brand {
    display: inline-flex;
    align-items: center;
    color: var(--sh-fg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.site-navbar__brand img { display: block; max-height: 44px; width: auto; }

.tm-wordmark {
    display: inline-flex;
    align-items: center;
    color: #0b0b0c;
    font-family: 'Archivo', system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.34rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.075em;
    white-space: nowrap;
}
.tm-wordmark__text { transform: scaleY(1.06); }
.tm-wordmark__mark {
    position: relative;
    display: inline-flex;
    width: 1.48em;
    height: 1.58em;
    margin: -.12em -.05em -.12em .02em;
    transform-origin: 50% 72%;
    animation: tm-logo-wave 5s cubic-bezier(.45, 0, .2, 1) infinite;
}
.tm-wordmark__mark svg { width: 100%; height: 100%; overflow: visible; }
.tm-wordmark__fruit { fill: #ffd60a; }
.tm-wordmark__power {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
}
.tm-wordmark__leaf {
    fill: #ffd60a;
    opacity: 0;
    transform-origin: 40px 9px;
    animation: tm-logo-detail 5s ease-in-out infinite;
}
.tm-wordmark__bite {
    fill: #fff;
    opacity: 0;
    animation: tm-logo-detail 5s ease-in-out infinite;
}
.tm-wordmark__mark::after {
    content: '';
    position: absolute;
    inset: 8% 0 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 110, .7), transparent 66%);
    opacity: 0;
    filter: blur(4px);
    animation: tm-logo-glow 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes tm-logo-wave {
    0%, 10%, 100% { transform: rotate(0deg) translateY(0); }
    15% { transform: rotate(-5deg) translateY(-1px); }
    20% { transform: rotate(4deg) translateY(0); }
    25%, 80% { transform: rotate(0deg) translateY(0); }
}
@keyframes tm-logo-glow {
    0%, 18%, 82%, 100% { opacity: 0; transform: scale(.82); }
    28%, 64% { opacity: .9; transform: scale(1.28); }
}
@keyframes tm-logo-detail {
    0%, 30%, 78%, 100% { opacity: 0; transform: scale(.7); }
    42%, 68% { opacity: 1; transform: scale(1); }
}

.site-navbar__menu {
    display: flex;
    gap: 1.4rem;
    margin: 0 auto;
}
.site-navbar__menu a {
    color: var(--sh-fg);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s, color .15s;
}
.site-navbar__menu a:hover { color: #131313; border-bottom-color: #ffd60a; }
.site-navbar__menu a.is-active { border-bottom-color: var(--sh-accent); color: var(--sh-fg); }

.site-navbar__actions { display: flex; align-items: center; gap: .6rem; }
.site-navbar__directions {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem;
    border: 1px solid #e5c100; border-radius: 8px; background: #fff9d7;
    color: #171717; text-decoration: none; font-weight: 700; font-size: .84rem;
}
.site-navbar__directions:hover { background: #ffd60a; color: #171717; }
.site-navbar__track {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .95rem; border-radius: 8px;
    background: #131313; color: #fff; text-decoration: none;
    font-weight: 600; font-size: .88rem;
    transition: background .15s, color .15s;
}
.site-navbar__track:hover { background: #000; color: #ffd60a; }
.site-navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--sh-accent);
    color: #fff;
    text-decoration: none;
    padding: .55rem .95rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s;
}
.site-navbar__cta:hover { background: var(--sh-accent-hover); }

.site-navbar__burger {
    display: none;
    background: transparent;
    border: none;
    padding: .35rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.site-navbar__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sh-fg);
    border-radius: 1px;
}

/* ---- Drawer mobile ---- */
.site-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 90;
}
.site-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }
.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 340px);
    background: var(--sh-bg);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
}
.site-drawer.is-open { transform: translateX(0); }
.site-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--sh-border);
}
.site-drawer__brand {
    color: var(--sh-fg);
    text-decoration: none;
    font-weight: 700;
}
.site-drawer__brand img { display: block; max-height: 36px; width: auto; }
.site-drawer__brand .tm-wordmark { font-size: 1.1rem; }
.site-drawer__close {
    background: transparent;
    border: none;
    color: var(--sh-muted);
    cursor: pointer;
    padding: .3rem;
    display: inline-flex;
}
.site-drawer__close:hover { color: var(--sh-fg); }

.site-drawer__menu {
    display: flex;
    flex-direction: column;
    padding: .6rem .4rem;
    gap: 0;
}
.site-drawer__menu a {
    color: var(--sh-fg);
    text-decoration: none;
    padding: .85rem 1rem;
    font-weight: 500;
    border-radius: 8px;
}
.site-drawer__menu a:hover { background: #f1f5f9; }
.site-drawer__menu a.is-active { color: #131313; background: #fff8d6; }

.site-drawer__contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--sh-border);
    margin-top: auto;
}
.site-drawer__contact a {
    color: var(--sh-fg);
    text-decoration: none;
    font-size: .92rem;
}
.site-drawer__cta {
    background: var(--sh-accent);
    color: #fff !important;
    text-align: center;
    padding: .7rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}
.site-drawer__cta:hover { background: var(--sh-accent-hover); }
.site-drawer__directions { color: #6b5900 !important; background: #fff9d7; }
.site-drawer__directions-cta { padding: .65rem .8rem; border: 1px solid #e5c100; border-radius: 8px; color: #171717 !important; text-align: center; font-weight: 700; }

.site-drawer__socials {
    display: flex;
    gap: .8rem;
    padding: .8rem 1.2rem 1.4rem;
    border-top: 1px solid var(--sh-border);
}
.site-drawer__socials a { color: var(--sh-muted); display: inline-flex; }
.site-drawer__socials a:hover { color: var(--sh-fg); }
.site-drawer__socials svg { width: 20px; height: 20px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .site-navbar__menu { display: none; }
    .site-navbar__burger { display: inline-flex; }
    /* Sin el menú (que empuja con margin:auto), forzamos el logo a la izquierda
       y el resto de acciones a la derecha. Doble seguro: el brand toma el
       espacio sobrante y las acciones se empujan al extremo derecho. */
    .site-navbar__inner { justify-content: space-between; }
    .site-navbar__brand { margin-right: auto !important; }
    .site-navbar__actions { margin-left: auto !important; }
    .site-topbar__contact { font-size: .78rem; gap: .9rem; }
    .site-topbar__hours { display: none; }
}
/* En móvil la topbar se ordena en una sola fila limpia: estado + teléfono a
   la izquierda, redes a la derecha. El email (largo y redundante con el footer)
   se oculta para evitar que la barra se desborde o envuelva. */
@media (max-width: 640px) {
    .site-topbar__inner { flex-wrap: nowrap; gap: .6rem; }
    .site-topbar__contact { flex-wrap: nowrap; gap: .7rem; min-width: 0; overflow: hidden; }
    .site-topbar__contact .site-topbar__email { display: none; }
    .site-topbar__phone span { white-space: nowrap; }
    .site-topbar__status { padding-right: .55rem; margin-right: 0; }
    .site-topbar__socials { flex: none; }
}
@media (max-width: 540px) {
    .site-topbar__inner { padding: .5rem .9rem; }
    .site-navbar__inner { padding: .7rem .9rem; gap: .6rem; }
    .site-navbar__cta span { display: none; }
    .site-navbar__cta { padding: .5rem .65rem; }
    .site-navbar__directions span { display: none; }
    .site-navbar__directions { padding: .55rem; background:#ffd60a; }
    .site-navbar__track span { display: none; }
    .site-navbar__track { padding: .55rem; }
    /* Botones de acción cuadrados y con buen tamaño táctil (≥40px). */
    .site-navbar__track,
    .site-navbar__directions { min-width: 42px; min-height: 42px; justify-content: center; }
    .site-navbar__burger { width: 42px; height: 42px; }
}

/* ============ Site footer ============ */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 3rem;
}
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.site-footer__col h4 {
    color: #fff;
    font-size: .95rem;
    margin: 0 0 .8rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.site-footer__col p { margin: 0 0 .8rem; font-size: .9rem; line-height: 1.55; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.site-footer__col a { color: #cbd5e1; text-decoration: none; }
.site-footer__col a:hover { color: #fff; }
.site-footer__socials { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .85rem; }
.site-footer__directions { display:flex;align-items:center;gap:.7rem;margin-bottom:1rem;padding:.8rem;border:1px solid #3d3500;border-radius:10px;background:#1c1a10;color:#fff !important; }
.site-footer__directions-icon { display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#ffd60a;color:#131313;flex:none; }
.site-footer__directions strong,.site-footer__directions small { display:block; }
.site-footer__directions small { margin-top:.1rem;color:#aaa;font-size:.7rem; }
.site-footer__bottom {
    border-top: 1px solid #1e293b;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .82rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #94a3b8;
}
.site-footer__legal a { color: #cbd5e1; text-decoration: none; }
.site-footer__legal a:hover { color: #fff; }

/* ============ WhatsApp floating button ============ */
.site-topbar__status { display:inline-flex; align-items:center; gap:.45rem; padding-right:.6rem; margin-right:.2rem; border-right:1px solid rgba(255,255,255,.16); }
.site-topbar__status i { width:8px; height:8px; border-radius:50%; flex:none; }
.site-topbar__status.is-open i { background:#2ecc71; box-shadow:0 0 0 3px rgba(46,204,113,.2); }
.site-topbar__status.is-closed i { background:#e0726a; }
.site-topbar__status strong { font-weight:700; }
.site-topbar__status span { opacity:.7; }
@media(max-width:600px){ .site-topbar__status span { display:none; } }

.site-floating-actions { position:fixed;right:18px;bottom:18px;z-index:90;display:flex;flex-direction:column;align-items:flex-end;gap:.55rem; }
.wa-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .45);
    transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: scale(1.06); background: #1ebe57; box-shadow: 0 10px 26px rgba(37, 211, 102, .55); }
.directions-float { display:flex;align-items:center;gap:.5rem;padding:.65rem .85rem;border-radius:999px;background:#ffd60a;color:#131313;box-shadow:0 8px 24px rgba(0,0,0,.22);text-decoration:none;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em; }
.directions-float:hover { background:#131313;color:#ffd60a; }
@media(max-width:540px){.directions-float span{display:none}.directions-float{padding:.7rem;border-radius:50%}.site-floating-actions{right:16px;bottom:16px}}
