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

:root {
    --sh-bg: #ffffff;
    --sh-fg: #22301F;
    --sh-muted: #5A6553;
    --sh-border: rgba(47,107,74,0.14);
    --sh-accent: #2F6B4A;            /* verde bosque del sitio */
    --sh-accent-hover: #37805A;
    --sh-nav: #2F6B4A;               /* verde — navegación activa */
    --sh-topbar-bg: #22301F;
    --sh-topbar-fg: #cdd8cf;
    --sh-topbar-fg-hover: #ffffff;
}

/* Header flotante en TODO el sitio: la barra es transparente y solo flota la
   "píldora" blanca (con su borde y sombra). Sin fondo esmerilado en ningún
   estado, para que el efecto flotante se vea limpio en todas las páginas. */
.site-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 80;
    transition: background .2s ease;
}
.site-header.is-scrolled { background: transparent; }

/* En la home el header es fixed (fuera de flujo) para que el banner del hero
   llegue hasta el borde superior, detrás de la cabecera flotante. */
.page-inicio .site-header,
.page-inicio .site-header.is-scrolled {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
}

/* Topbar de contacto oculta (look limpio del mockup; la info vive en el footer). */
.site-topbar { display: none; }

/* ---- 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: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.site-topbar__center { display: flex; justify-content: center; }
.site-topbar__brand {
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: .8rem;
    color: var(--sh-topbar-fg);
}
.site-topbar__statuszone { justify-self: end; }
@media (max-width: 720px) {
    .site-topbar__inner { grid-template-columns: 1fr; justify-items: center; gap: .35rem; text-align: center; }
    .site-topbar__statuszone { justify-self: center; }
    .site-topbar__contact { justify-content: center; }
    .site-topbar__center { display: none; }
}
.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__status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--sh-topbar-fg);
    font-weight: 500;
}
.site-topbar__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #9ca3af;
}
/* Abierto = verde (con pulso), Cerrando/Abriendo pronto = amarillo, Cerrado = rojo */
.site-topbar__status.is-open  { color: #ffffff; }
.site-topbar__status.is-open  .site-topbar__dot { background: #22c55e; animation: oregon-pulse 2s infinite; }
.site-topbar__status.is-soon  { color: #fde68a; }
.site-topbar__status.is-soon  .site-topbar__dot { background: #f59e0b; animation: oregon-pulse-amber 1.4s infinite; }
.site-topbar__status.is-closed .site-topbar__dot { background: #ef4444; }
@keyframes oregon-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes oregon-pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
    70% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}
@media (max-width: 640px) { .site-topbar__status-detail { display: none; } }

.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 (píldora flotante) ---- */
.site-navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 0;
}
.site-navbar__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--sh-bg);
    border: 1px solid var(--sh-border);
    border-radius: var(--radius-pill);
    padding: 11px 14px 11px 24px;
    box-shadow: 0 8px 24px rgba(47, 74, 53, 0.08);
}
.site-navbar__brand {
    display: inline-flex;
    align-items: center;
    color: var(--sh-fg);
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.site-navbar__brand,
.site-navbar__brand:hover,
.site-navbar__brand:focus,
.site-navbar__brand span { color: var(--sh-fg); text-decoration: none; }
.site-navbar__brand img { display: block; max-height: 40px; width: auto; }

.site-navbar__menu {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}
.site-navbar__menu a {
    color: #3C4A3E;
    text-decoration: none;
    font-weight: 600;
    font-size: .94rem;
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s, color .15s;
}
.site-navbar__menu a:hover { color: var(--sh-nav); }
.site-navbar__menu a.is-active { border-bottom-color: var(--sh-nav); color: var(--sh-nav); }

.site-navbar__actions { display: flex; align-items: center; gap: .6rem; }
.site-navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    padding: .7rem 1.35rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .9rem;
    transition: background .15s;
}
.site-navbar__cta:hover { background: var(--color-primary-hover); }
/* Contador de ítems en la cotización (igual que el FAB) */
.site-navbar__cta-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}
.site-navbar__cta-count[hidden] { display: none; }

.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__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 { overflow-y: auto; }
.site-drawer { width: min(88vw, 360px); }

/* Estado de atención (abierto/cerrado) */
.site-drawer__status {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .9rem 1.2rem 0;
    padding: .5rem .85rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 600;
    background: var(--color-bg-alt);
    color: var(--sh-fg);
}
.site-drawer__status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.site-drawer__status--open  { background: var(--color-success-soft); color: #14532d; }
.site-drawer__status--open  .site-drawer__status-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: oregon-pulse 2s infinite; }
.site-drawer__status--closed .site-drawer__status-dot { background: #ef4444; }

.site-drawer__menu {
    display: flex;
    flex-direction: column;
    padding: .8rem .6rem;
    gap: 2px;
}
.site-drawer__menu a {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--sh-fg);
    text-decoration: none;
    padding: .85rem .9rem;
    font-weight: 600;
    font-size: 1.02rem;
    border-radius: 12px;
    transition: background .15s, color .15s;
}
.site-drawer__menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--color-accent-soft);
    color: var(--sh-accent);
}
.site-drawer__menu-icon svg { width: 1.25rem; height: 1.25rem; }
.site-drawer__menu-label { flex: 1; }
.site-drawer__menu-arrow { color: var(--sh-muted); transition: transform .15s; }
.site-drawer__menu a:hover { background: var(--color-bg-hover); }
.site-drawer__menu a:hover .site-drawer__menu-arrow { transform: translateX(3px); color: var(--sh-accent); }
.site-drawer__menu a.is-active { color: var(--sh-nav); background: var(--color-accent-soft); }
.site-drawer__menu a.is-active .site-drawer__menu-icon { background: var(--sh-accent); color: #fff; }

.site-drawer__wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: .2rem 1.2rem .4rem;
    padding: .85rem 1rem;
    background: var(--color-wa);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 6px 16px -4px rgba(53,106,76,.5);
    transition: background .15s, transform .15s;
}
.site-drawer__wa:hover { background: var(--color-wa-hover); transform: translateY(-1px); }

.site-drawer__info {
    list-style: none;
    margin: .6rem 0 0;
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--sh-border);
    display: grid;
    gap: .7rem;
}
.site-drawer__info li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; color: var(--sh-fg); }
.site-drawer__info svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; color: var(--sh-accent); margin-top: .1rem; }
.site-drawer__info a { color: var(--sh-fg); text-decoration: none; }
.site-drawer__info a:hover { color: var(--sh-accent); }

.site-drawer__social-block {
    margin-top: auto;
    padding: 1rem 1.4rem 1.4rem;
    border-top: 1px solid var(--sh-border);
}
.site-drawer__social-label {
    display: block;
    margin-bottom: .6rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sh-muted);
}
.site-drawer__socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.site-drawer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--sh-fg);
    transition: background .15s, color .15s, transform .15s;
}
.site-drawer__socials a:hover { background: var(--sh-accent); color: #fff; transform: translateY(-2px); }
.site-drawer__socials svg { width: 18px; height: 18px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .site-navbar__menu { display: none; }
    .site-navbar__burger { display: inline-flex; }
    /* Sin el menú, las acciones (botón + hamburguesa) se van a la derecha. */
    .site-navbar__actions { margin-left: auto; }
    .site-topbar__contact { font-size: .78rem; gap: .9rem; }
    .site-topbar__hours { display: none; }
}
@media (max-width: 540px) {
    .site-navbar { padding: 12px 14px 0; }
    .site-navbar__inner { padding: 8px 10px 8px 18px; gap: .6rem; }
    .site-navbar__cta span { display: none; }
    .site-navbar__cta { padding: .6rem .7rem; }
    .site-navbar__brand { font-size: 1rem; }
    .site-navbar__brand img { max-height: 34px; }
    .site-navbar__actions { gap: .4rem; }
}

/* ============ Site footer ============ */
.site-footer {
    background: var(--color-forest-dark);
    color: #cdd8cf;
    margin-top: auto;
}
.site-footer__brand { display: inline-block; margin: 0 0 1rem; }
/* Logo de marca (café) sobre el footer verde oscuro → lo pasamos a blanco. */
.site-footer__brand img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .95; }
.site-footer__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -0.02em; }
.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: #c3d3c0; text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__socials { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .85rem; }
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    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: #8ea08c;
}
.site-footer__legal a { color: #c3d3c0; text-decoration: none; }
.site-footer__legal a:hover { color: #fff; }

/* ============ WhatsApp floating button ============ */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-wa);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(53, 106, 76, .45);
    z-index: 90;
    transition: transform .18s, box-shadow .18s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(53, 106, 76, .55); }
