/* ==========================================================================
   navidad.css — Campaña de Navidad 2026 (Bodega Mi Tierra)
   Solo se carga en /navidad. No modifica estilos globales.
   Paleta: verde #1d5343 · dorado decorativo #b58500 · dorado texto #8a6500
   Contraste verificado: verde sobre crema 8.86:1 · #8a6500 sobre crema 5.33:1
   ========================================================================== */

body.is-navidad {
    --nav-green: #1d5343;
    --nav-green-deep: #133a2e;
    --nav-green-hover: #14453a;
    --nav-cream: #faf7f1;
    --nav-gold: #b58500;
    --nav-gold-text: #8a6500;
    --nav-ink: #1f2422;
    --nav-muted: #5b6560;
    --nav-line: rgba(29, 83, 67, 0.14);
    --nav-radius: 10px;
    --nav-shadow: 0 1px 2px rgba(19, 58, 46, 0.06), 0 8px 24px rgba(19, 58, 46, 0.07);
    --nav-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Hero ---------- */
.nav-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
    color: #fff;
}

.nav-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.nav-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg,
            rgba(15, 42, 33, 0.97) 0%,
            rgba(15, 42, 33, 0.93) 42%,
            rgba(19, 58, 46, 0.74) 74%,
            rgba(19, 58, 46, 0.58) 100%);
}

.nav-hero__inner {
    max-width: 780px;
}

.nav-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f0d9a0;
}

.nav-hero h1 {
    margin: 0 0 1rem;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.62rem, 5.2vw, 3.3rem);
    line-height: 1.12;
    color: #fff;
    text-wrap: balance;
}

.nav-lead {
    margin: 0 0 1.5rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 62ch;
}

.nav-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.nav-facts li {
    position: relative;
    padding-left: 0;
}

.nav-facts li + li::before {
    content: "";
    position: absolute;
    left: -0.9rem;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--nav-gold);
}

.nav-facts strong {
    color: #fff;
}

@media (max-width: 560px) {
    .nav-facts {
        flex-direction: column;
        gap: 0.35rem;
        padding-left: 0.95rem;
    }

    .nav-facts li + li::before {
        display: none;
    }

    .nav-facts li::before {
        content: "";
        position: absolute;
        left: -0.95rem;
        top: 0.62em;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--nav-gold);
    }
}

.nav-hero__actions,
.nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ---------- Botones ---------- */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, transform 0.18s var(--nav-ease),
                box-shadow 0.18s ease;
}

.nav-btn--primary {
    background-color: var(--nav-green);
    border-color: var(--nav-green);
    color: #fff;
    box-shadow: 0 6px 18px rgba(19, 58, 46, 0.18);
}

.nav-btn--primary:hover {
    background-color: var(--nav-green-hover);
    border-color: var(--nav-green-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(19, 58, 46, 0.24);
}

.nav-btn--primary:active {
    transform: translateY(0) scale(0.985);
}

.nav-btn--ghost {
    background-color: transparent;
    border-color: currentColor;
    color: var(--nav-green);
}

.nav-btn--ghost:hover {
    background-color: rgba(29, 83, 67, 0.06);
    transform: translateY(-2px);
}

.nav-hero .nav-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-hero .nav-btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.nav-btn--block {
    width: 100%;
    margin-top: 1.25rem;
}

.nav-btn:focus-visible,
.nav-pdf:focus-visible,
.nav-faq__item summary:focus-visible,
.nav-contact a:focus-visible {
    outline: 3px solid #f2c14e;
    outline-offset: 3px;
}

/* ---------- Secciones ---------- */
.nav-section {
    padding: clamp(2.75rem, 6vw, 4.75rem) 0;
    color: var(--nav-ink);
}

.nav-section--cream {
    background-color: var(--nav-cream);
}

.nav-section__head {
    max-width: 62ch;
    margin-bottom: 2rem;
}

.nav-section h2 {
    margin: 0 0 0.6rem;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.5rem, 3.4vw, 2.15rem);
    line-height: 1.2;
    color: var(--nav-green);
    text-wrap: balance;
}

.nav-section__head p {
    margin: 0;
    color: var(--nav-muted);
    line-height: 1.6;
}

/* ---------- Rejilla de menús ---------- */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 620px) {
    .nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nav-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.35rem;
    background: #fff;
    border: 1px solid var(--nav-line);
    border-radius: var(--nav-radius);
    box-shadow: var(--nav-shadow);
    transition: transform 0.2s var(--nav-ease), box-shadow 0.2s ease;
}

.nav-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(19, 58, 46, 0.06), 0 16px 34px rgba(19, 58, 46, 0.12);
}

.nav-menu__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
}

.nav-menu h3 {
    margin: 0;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--nav-green);
}

.nav-badge {
    margin: 0;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(181, 133, 0, 0.12);
    color: var(--nav-gold-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-menu__price {
    margin: 0.75rem 0 0.15rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.nav-menu__price strong {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--nav-green);
}

.nav-menu__price span {
    font-size: 0.8rem;
    color: var(--nav-gold-text);
    font-weight: 600;
}

.nav-menu__format {
    margin: 0 0 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--nav-line);
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--nav-muted);
}

.nav-dishes {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.nav-dishes li {
    position: relative;
    padding-left: 0.95rem;
    margin-bottom: 0.42rem;
}

.nav-dishes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--nav-gold);
}

.nav-choice__title {
    margin: 1rem 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-gold-text);
}

.nav-choice {
    margin: 0;
    padding: 0.7rem 0.85rem;
    list-style: none;
    background: rgba(29, 83, 67, 0.05);
    border-left: 3px solid var(--nav-gold);
    border-radius: 0 6px 6px 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.nav-choice li + li {
    margin-top: 0.3rem;
}

/* Empuja el botón al pie de la tarjeta */
.nav-menu > .nav-btn--block {
    margin-top: auto;
}

/* ---------- Condiciones ---------- */
.nav-cond {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 820px) {
    .nav-cond {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nav-cond li {
    padding: 1rem 0;
    border-top: 1px solid var(--nav-line);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--nav-ink);
}

.nav-cond strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--nav-green);
}

/* ---------- Empresas ---------- */
.nav-empresas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 860px) {
    .nav-empresas {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    }
}

.nav-empresas__text > p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: var(--nav-ink);
}

.nav-empresas__note {
    color: var(--nav-muted);
}

.nav-pdf__label {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-gold-text);
}

.nav-pdf {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--nav-line);
    border-left: 4px solid var(--nav-gold);
    border-radius: var(--nav-radius);
    box-shadow: var(--nav-shadow);
    text-decoration: none;
    transition: transform 0.2s var(--nav-ease), box-shadow 0.2s ease;
}

.nav-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(19, 58, 46, 0.06), 0 14px 30px rgba(19, 58, 46, 0.12);
}

.nav-pdf__title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    color: var(--nav-green);
}

.nav-pdf__meta {
    font-size: 0.82rem;
    color: var(--nav-muted);
}

/* ---------- FAQ ---------- */
.nav-faq {
    max-width: 820px;
}

.nav-faq__item {
    border-bottom: 1px solid var(--nav-line);
}

.nav-faq__item summary {
    position: relative;
    padding: 1.05rem 2.5rem 1.05rem 0;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--nav-green);
}

.nav-faq__item summary::-webkit-details-marker {
    display: none;
}

.nav-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    color: var(--nav-gold-text);
    transition: transform 0.2s ease;
}

.nav-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.nav-faq__item p {
    margin: 0 0 1.15rem;
    padding-right: 2rem;
    line-height: 1.65;
    color: var(--nav-ink);
}

/* ---------- Contacto ---------- */
.nav-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 820px) {
    .nav-contact {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

.nav-contact__lead {
    margin: 0 0 0.35rem;
    color: var(--nav-muted);
    line-height: 1.6;
}

.nav-contact__lead a {
    color: var(--nav-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- CTA sticky (solo móvil) ---------- */
.nav-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--cookie-offset, 0px);
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(19, 58, 46, 0.97);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(130%);
    visibility: hidden;
    transition: transform 0.28s ease, bottom 0.2s ease, visibility 0.28s;
}

.nav-sticky.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.nav-sticky__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: #fff;
    line-height: 1.25;
}

.nav-sticky__info strong {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sticky__info span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sticky .nav-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    font-size: 0.78rem;
    background-color: #fff;
    border-color: #fff;
    color: var(--nav-green);
    box-shadow: none;
}

.nav-sticky .nav-btn:hover {
    background-color: #f2f2ee;
    border-color: #f2f2ee;
    color: var(--nav-green);
}

@media (min-width: 900px) {
    .nav-sticky {
        display: none;
    }
}

/* El botón de subir no debe chocar con la barra sticky en móvil */
@media (max-width: 899px) {
    body.is-navidad .scroll-to-top {
        bottom: calc(92px + var(--cookie-offset, 0px));
    }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    .nav-btn,
    .nav-menu,
    .nav-pdf,
    .nav-sticky,
    .nav-faq__item summary::after {
        transition: none !important;
    }

    .nav-btn:hover,
    .nav-menu:hover,
    .nav-pdf:hover,
    .nav-btn--primary:active {
        transform: none;
    }
}
