/* ============================================================
   IDEALUM — index.css
   Paleta:
     --navy:    #12193A  (fondo oscuro principal)
     --wine:    #752656  (acento vino/magenta)
     --cream:   #F2EDE8  (fondo claro tarjetas)
     --text:    #1C2340  (texto oscuro)
     --muted:   #6B7280  (texto secundario)
     --white:   #FFFFFF
   Tipografía:
     Display/Títulos: Playfair Display (serif, italic para énfasis)
     Body/UI:         Inter (sans-serif)
     NOTA: las fuentes se cargan con <link> en headP.php (páginas
     internas) y en el <head> de index.php. No usar @import aquí:
     bloquea el render y retrasa la descarga de las fuentes.
   ============================================================ */

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

:root {
    --navy: #12193A;
    --navy2: #1C2340;
    --wine: #752656;
    --wine-light: #8f3068;
    --cream: #F2EDE8;
    --cream2: #EDE8E2;
    --text: #1C2340;
    --muted: #6B7280;
    --white: #FFFFFF;
    --yellow: #FFE600;
    --wine-soft: #D98FB4;
}

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

/* ══════════════════════════════════════════════
   NOTA: las utilidades de animación (.reveal, [data-anim],
   .word-mask, barra de progreso, volver arriba) viven en
   css/animaciones.css
══════════════════════════════════════════════ */

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Utilidades tipográficas ── */
.font-display {
    font-family: 'Playfair Display', serif;
}

.text-wine {
    color: var(--wine);
}

.text-muted {
    color: var(--muted);
}

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wine);
}

/* ══════════════════════════════════════════════
   TOP BAR (Mercado Libre)
══════════════════════════════════════════════ */
.top-bar {
    background: var(--yellow);
    padding: 11px 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.top-bar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 12px;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3a2f00;
    font-weight: 700;
}

.top-bar-badges {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #3a2f00;
    letter-spacing: .01em;
}

.top-bar-badges span::before {
    content: '✔ ';
    color: #3483fa;
    font-weight: 800;
    margin-right: 1px;
}

.top-bar-btn {
    background: #3483fa;
    color: #fff;
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.top-bar-btn:hover {
    background: #2968c8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(52, 131, 250, .35);
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.main-nav {
    background-color: var(--navy);
    background-image: linear-gradient(180deg, var(--navy2), var(--navy));
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow .3s ease, background-color .3s ease;
}

.main-nav.scrolled {
    background-color: var(--navy);
    background-image: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.main-nav.scrolled .nav-inner {
    height: 58px;
}

.main-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 32px;
    transition: height .3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding-right: 26px;
    margin-right: 6px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    transition: opacity .2s ease;
}

.nav-logo:hover {
    opacity: .85;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.68);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .045em;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--wine-light);
    transition: left .25s ease, right .25s ease;
}

.nav-links a:hover::before {
    left: 0;
    right: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wine), var(--wine-light));
    border-radius: 2px;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--wine-light);
    outline-offset: 4px;
    border-radius: 2px;
}

/* "¿Qué vas a instalar?" es la puerta de entrada para quien no
   conoce el catálogo — se marca como píldora en vez de solo texto
   para que destaque como una acción, no como un link más. */
.nav-links .nav-guia {
    color: #f6dcea !important;
    background: rgba(143, 47, 100, .3);
    border: 1px solid rgba(143, 47, 100, .55);
    padding: 7px 16px;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: .82rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.nav-links .nav-guia::before {
    content: none;
}

.nav-links .nav-guia:hover,
.nav-links .nav-guia.active {
    background: var(--wine);
    border-color: var(--wine);
    color: #fff !important;
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    padding: 2px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.nav-search:focus-within {
    border-color: rgba(143, 47, 100, .6);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 3px rgba(143, 47, 100, .16);
}

.nav-search input {
    background: transparent;
    border: 0;
    color: #fff;
    padding: 8px 8px 8px 14px;
    font-size: 0.85rem;
    outline: none;
    width: 190px;
    transition: width .25s ease;
}

.nav-search:focus-within input {
    width: 230px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.nav-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    background: var(--wine);
    border: none;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.nav-search button:hover {
    background: var(--wine-light);
    transform: scale(1.06);
}

.nav-search input:focus-visible,
.nav-search button:focus-visible {
    outline: 2px solid var(--wine-light);
    outline-offset: 2px;
}



/* ══════════════════════════════════════════════
   CARRUSEL DE BANNERS
   ----------------------------------------------
   Va de borde a borde, sin contenedor ni marco:
   la imagen es el contenido y debe respirar.

   Todos los banners comparten la misma celda de un
   grid, así que ninguno cambia de posición al
   activarse y la altura nunca brinca.

   MEDIDAS: escritorio 1920x720 (8:3)
            celular    1080x1080 (1:1)
══════════════════════════════════════════════ */
.promo-slider {
    background: var(--navy);
}

.promo-viewport {
    position: relative;
    display: grid;
    overflow: hidden;
    background: var(--navy2);
    isolation: isolate;
}

.promo-slide {
    grid-area: 1 / 1;
    position: relative;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Al ocultarse espera al fade; al mostrarse aparece de inmediato */
    transition: opacity .65s ease, visibility 0s linear .65s;
}

.promo-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    transition: opacity .65s ease, visibility 0s;
}

.promo-slide picture {
    display: block;
}

.promo-slide img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 8 / 3;
    /* Tope de alto para que en monitores muy grandes el banner no
       se coma toda la pantalla */
    max-height: 620px;
    object-fit: cover;
}

/* Solo los banners clicables reaccionan */
a.promo-slide img {
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

a.promo-slide:hover img {
    transform: scale(1.02);
}

/* ── Leyenda opcional ──────────────────────────
   Solo aparece si el banner define 'titulo'. Para
   banners ya diseñados se deja vacía.
══════════════════════════════════════════════ */
.promo-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    max-width: min(90%, 460px);
    padding: 18px 26px 20px;
    background: linear-gradient(90deg, rgba(12, 18, 44, .92), rgba(12, 18, 44, .74));
    backdrop-filter: blur(6px);
    border-top: 2px solid var(--wine-light);
}

.promo-caption strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.promo-caption span {
    display: block;
    margin-top: 5px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .68);
}

/* ── Flechas ── */
.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2px;
    background: rgba(12, 18, 44, .42);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 1.05rem;
    cursor: pointer;
    opacity: .65;
    transition: opacity .25s ease, background-color .25s ease, border-color .25s ease;
}

.promo-viewport:hover .promo-arrow {
    opacity: 1;
}

.promo-arrow:hover {
    background: rgba(12, 18, 44, .8);
    border-color: rgba(255, 255, 255, .6);
}

.promo-prev {
    left: 22px;
}

.promo-next {
    right: 22px;
}

/* ── Puntos con barra de progreso ── */
.promo-dots {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 2px;
    background: rgba(12, 18, 44, .48);
    backdrop-filter: blur(6px);
}

.promo-dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .32);
    cursor: pointer;
    overflow: hidden;
    transition: background-color .25s ease;
}

.promo-dot:hover {
    background: rgba(255, 255, 255, .6);
}

.promo-dot i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left center;
}

/* La barra se llena al ritmo del avance automático */
.promo-dot.active i {
    animation: promoFill var(--promo-dur, 6s) linear forwards;
}

.promo-viewport:hover .promo-dot.active i {
    animation-play-state: paused;
}

@keyframes promoFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 991px) {
    .promo-caption {
        padding: 15px 20px 16px;
    }

    .promo-caption strong {
        font-size: 1.12rem;
    }
}

@media (max-width: 767px) {

    /* En celular el banner es cuadrado y las flechas estorban:
       se navega deslizando o con los puntos. */
    .promo-slide img {
        aspect-ratio: 1 / 1;
        max-height: none;
    }

    .promo-arrow {
        display: none;
    }

    .promo-caption {
        max-width: 100%;
        padding: 14px 18px 15px;
        background: linear-gradient(180deg, rgba(12, 18, 44, .0), rgba(12, 18, 44, .92) 42%);
        border-top: 0;
        padding-top: 46px;
    }

    .promo-caption strong {
        font-size: 1.05rem;
    }

    .promo-caption span {
        font-size: .79rem;
    }

    .promo-dots {
        right: 14px;
        bottom: 14px;
        padding: 7px 10px;
    }

    .promo-dot {
        width: 26px;
    }
}

/* ══════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════ */
.marquee-bar {
    background: var(--navy2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-item::before {
    content: '•';
    color: var(--wine);
    font-size: 1rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ══════════════════════════════════════════════
   SECCIÓN GENÉRICA
══════════════════════════════════════════════ */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 56px 0;
}

.section-dark {
    background: var(--navy);
}

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

.container-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin-top: 8px;
}

.section-header h2 em {
    font-style: italic;
    font-weight: 700;
    color: var(--wine);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.link-catalog {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    white-space: nowrap;
}

.link-catalog:hover {
    color: var(--wine);
}

/* ══════════════════════════════════════════════
   TARJETAS DE PRODUCTO (Más Vendidos)
══════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border: 1px solid #E8E3DD;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .3s cubic-bezier(.22, .61, .36, 1), transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 18px 40px rgba(28, 35, 64, 0.16);
    transform: translateY(-7px);
    border-color: var(--wine-light);
}

.product-card-img {
    position: relative;
    background: var(--cream);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ribbon-badge {
    position: absolute;
    top: 15px;
    left: -40px;
    z-index: 2;
    width: 150px;
    transform: rotate(-45deg);
    transform-origin: center;
}

.ribbon-badge span {
    display: block;
    background: var(--wine);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 0;
    box-shadow: 0 4px 12px rgba(117, 38, 86, .4);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 16px;
}

.product-card-sku {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.product-card-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.btn-ver-todos {
    display: block;
    width: fit-content;
    margin: 0 auto;
    border: 1.5px solid var(--text);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.btn-ver-todos:hover {
    background: var(--text);
    color: var(--white);
}

/* ══════════════════════════════════════════════
   ICONOS (beneficios)
══════════════════════════════════════════════ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 40px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color .28s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: rgba(117, 38, 86, 0.25);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine);
    font-size: 1.1rem;
    transition: transform .28s ease, background-color .28s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.12) rotate(-4deg);
    background: rgba(117, 38, 86, 0.4);
}

.benefit-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.benefit-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   CATEGORÍAS
══════════════════════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

/* La primera tarjeta ocupa 2 filas y 1 columna */
.cat-card-featured {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.cat-card {
    background: var(--white);
    border: 1px solid #E8E3DD;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .3s cubic-bezier(.22, .61, .36, 1), transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}

.cat-card:hover {
    box-shadow: 0 18px 38px rgba(28, 35, 64, 0.16);
    transform: translateY(-7px);
    border-color: var(--wine-light);
}

.cat-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(18, 25, 58, .55));
    opacity: 0;
    transition: opacity .35s ease;
}

.cat-card:hover .cat-card-img::after {
    opacity: 1;
}

.cat-card-img {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

.cat-card-featured .cat-card-img {
    height: 340px;
}

.cat-card:not(.cat-card-featured) .cat-card-img {
    aspect-ratio: 4 / 3;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.04);
}

.cat-card-label {
    padding: 14px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

/* ══════════════════════════════════════════════
   ¿POR QUÉ IDEALUM?
══════════════════════════════════════════════ */
.why-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.why-left {
    background: var(--wine);
    /* Espacio para imagen futura */
    min-height: 480px;
}

.why-right {
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-right h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin: 12px 0 24px;
}

.why-right h2 em {
    font-style: italic;
    color: var(--wine);
}

.why-right p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.link-historia {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--text);
    width: fit-content;
    transition: color 0.2s, border-color 0.2s;
}

.link-historia:hover {
    color: var(--wine);
    border-color: var(--wine);
}

/* ══════════════════════════════════════════════
   SUCURSALES
══════════════════════════════════════════════ */
.sucursales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.sucursal-card {
    border: 1px solid #E8E3DD;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.sucursal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(28, 35, 64, .12);
    border-color: var(--wine);
}

.sucursal-header {
    background: var(--navy);
    background-size: cover;
    background-position: center;
    padding: 20px 24px;
    position: relative;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/* Velo sobre la foto: sin esto el texto blanco se pierde en las
   zonas claras de la imagen. Va por debajo del contenido. */
.sucursal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(12, 18, 44, .35) 0%,
            rgba(12, 18, 44, .72) 55%,
            rgba(12, 18, 44, .92) 100%);
}

.sucursal-header>* {
    position: relative;
    z-index: 1;
}

.sucursal-card:hover .sucursal-header {
    background-size: 108%;
}

.sucursal-header {
    transition: background-size .6s cubic-bezier(.22, .61, .36, 1);
}

.sucursal-num {
    position: absolute;
    right: 20px;
    top: 16px;
    transform: none;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1;
    user-select: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.sucursal-icon {
    width: 34px;
    height: 3px;
    background: var(--wine-light);
    border-radius: 0;
    margin-bottom: 12px;
}

.sucursal-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 7px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.sucursal-zone {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 2px;
}

.sucursal-body {
    padding: 24px;
}

.sucursal-body p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 6px;
}

.sucursal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wine);
    margin-top: 12px;
    transition: gap 0.2s;
}

.sucursal-link:hover {
    gap: 10px;
    color: var(--wine);
}

/* ══════════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════════ */
.cta-section {
    background: var(--navy);
    border-radius: 16px;
    padding: 64px 40px;
    text-align: center;
    margin: 0 0 80px;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--wine);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 100px;
    transition: background 0.2s;
}

.btn-cta-primary:hover {
    background: var(--wine-light);
    color: var(--white);
}

.btn-cta-outline {
    background: transparent;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 100px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
}

.btn-cta-outline:hover {
    border-color: #fff;
    color: #fff;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    padding: 64px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-brand img {
    height: 46px;
    width: auto;
    display: block;
    opacity: .95;
    transition: opacity .22s ease;
}

.footer-brand:hover img {
    opacity: 1;
}

/* Respaldo si la imagen no carga */
.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.footer-desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
    border-color: var(--wine);
    color: var(--white);
}

.footer-col-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-item {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact-item a {
    color: inherit;
    transition: color .2s ease;
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-links a {
    display: inline-block;
    transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1100px) {

    .container-main {
        padding: 0 24px;
    }

    .section {
        padding: 56px 0;
    }

    .section-sm {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-item {
        border-right: 1px solid rgba(255, 255, 255, 0.07);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 28px 20px;
    }

    .benefit-item:nth-child(2n) {
        border-right: none;
    }

    .benefit-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cat-card-featured {
        grid-row: auto;
        grid-column: auto;
    }

    .cat-card-featured .cat-card-img {
        height: auto;
    }

    .why-section {
        grid-template-columns: 1fr;
    }

    .why-left {
        min-height: 240px;
    }

    .sucursales-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .top-bar-badges {
        display: none;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header-row {
        align-items: flex-start;
    }

    .why-section {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .why-right {
        padding: 40px 24px;
    }

    .cta-section {
        padding: 48px 24px;
    }
}

@media (max-width: 560px) {

    .top-bar .container-fluid {
        padding: 0 18px;
        gap: 8px;
    }

    .top-bar-brand span:last-child {
        display: none;
    }

    .site-footer {
        padding: 44px 0 0;
    }

    .footer-grid {
        gap: 28px;
        padding-bottom: 34px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom p {
        font-size: .72rem;
        line-height: 1.6;
    }

    .container-main {
        padding: 0 18px;
    }

    .section {
        padding: 44px 0;
    }

    .nav-search {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        border-right: none !important;
    }

    .benefit-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    }

    .sucursal-num {
        font-size: 2rem;
    }

    .ribbon-badge {
        width: 120px;
        top: 12px;
        left: -32px;
    }

    .ribbon-badge span {
        font-size: 0.6rem;
        padding: 4px 0;
    }
}

/* ══════════════════════════════════════════════
   ETIQUETAS DE TARJETA
 
   Izquierda (listón diagonal) : novedad
   Derecha  (etiqueta recta)   : descuento
 
   Lados distintos a propósito: un producto puede ser nuevo y
   estar en oferta al mismo tiempo sin que se encimen.
══════════════════════════════════════════════ */
 
/* El contenedor necesita recortar el listón en la esquina. */
.product-card-img,
.catalog-card-media,
.product-image-frame,
.related-card-image {
    position: relative;
    overflow: hidden;
}
 
.flag-ribbon {
    position: absolute;
    top: 14px;
    left: -50px;
    z-index: 3;
    width: 165px;
    padding: 5px 0;
    transform: rotate(-45deg);
    background: var(--wine);
    color: #fff;
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
 
/* "Color nuevo" es más largo, necesita más banda. */
.flag-ribbon-color {
    top: 19px;
    left: -65px;
    width: 195px;
    font-size: .76rem;
}
 
/* ── Etiqueta de descuento ──────────────────────
   Va en Inter y no en Playfair: el serif a este tamaño aprieta
   los dígitos y el "−15%" se lee amontonado. Y sin sombra,
   porque la sombra era la mitad del ruido cuando la etiqueta
   convive con el listón.
══════════════════════════════════════════════ */
.oferta-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-block;
    padding: 8px 13px;
    background: var(--wine);
    color: var(--white);
    border-radius: 2px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.015em;
    white-space: nowrap;
    transition: background-color .3s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
}
 
.product-card:hover .oferta-badge,
.catalog-card:hover .oferta-badge {
    background: var(--wine-light);
    transform: translateY(-2px);
}
 
/* En la ficha de producto la etiqueta baja a la esquina inferior
   izquierda. Arriba a la derecha ya vive el "Click para ampliar" y
   arriba a la izquierda el listón de novedad: las dos esquinas de
   arriba están ocupadas. Y como aquí la imagen es mucho más grande
   que una tarjeta, la etiqueta crece con ella. */
.product-image-frame .oferta-badge {
    top: auto;
    right: auto;
    bottom: 18px;
    left: 18px;
    padding: 11px 18px;
    font-size: 1.7rem;
}
 
/* ══════════════════════════════════════════════
   SECCIÓN DE OFERTAS
 
   Va en banda oscura y no en crema. La razón es que Ofertas,
   Más Vendidos y Novedades son la misma rejilla de 4 columnas
   tres veces seguidas; si además comparten fondo claro, la
   página se vuelve una sola mancha y las ofertas pierden el
   golpe.
══════════════════════════════════════════════ */
.section-ofertas {
    background: var(--navy);
}
 
.section-ofertas .eyebrow {
    color: var(--wine-soft);
}
 
.section-ofertas .section-header h2 {
    color: var(--white);
}
 
.section-ofertas .section-header h2 em {
    color: var(--wine-soft);
}
 
/* Las tarjetas blancas sobre navy se veían como recortes flotando.
   Con sombra se apoyan en el fondo en vez de estar pegadas encima. */
.section-ofertas .product-card {
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}
 
.section-ofertas .product-card:hover {
    box-shadow: 0 20px 46px rgba(0, 0, 0, .45);
    border-color: var(--wine-soft);
}
 
/* La mayoría de las fotos de producto vienen con fondo blanco y se
   fundían con la tarjeta. En crema el producto se despega. */
.section-ofertas .product-card-img {
    background: var(--cream);
}
 
.section-ofertas .products-grid {
    margin-bottom: 0;
}
 
/* ══════════════════════════════════════════════
   RIEL HORIZONTAL
 
   Es scroll nativo del navegador, no un carrusel con JS. Eso
   significa que ya funciona con el dedo en celular, con la
   rueda del mouse + Shift, con teclado y con lector de
   pantalla, sin que nosotros programemos nada de eso. El JS
   solo maneja las flechas.
══════════════════════════════════════════════ */
.rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
 
    /* Sin esto, el hover que levanta la tarjeta y su sombra quedan
       recortados: poner overflow-x también recorta en vertical. */
    padding: 14px 2px 26px;
 
    /* La barra se esconde: las flechas y el corte de la última
       tarjeta ya dicen que hay más. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
 
.rail::-webkit-scrollbar {
    display: none;
}
 
.rail:focus-visible {
    outline: 2px solid var(--wine-soft);
    outline-offset: 4px;
}
 
/* Ancho fijo. En escritorio caben ~5 y en celular ~2 y media: esa
   media tarjeta cortada es lo que invita a deslizar. */
.rail-item {
    flex: 0 0 clamp(190px, 21vw, 250px);
    scroll-snap-align: start;
}
 
.rail-nav {
    display: flex;
    gap: 8px;
    flex: none;
}
 
.rail-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 2px;
    background: transparent;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, opacity .25s ease;
}
 
.rail-btn:hover {
    background: var(--wine);
    border-color: var(--wine);
}
 
/* Al llegar al extremo el botón se apaga en vez de desaparecer:
   si se quita, los dos brincan de lugar. */
.rail-btn[disabled] {
    opacity: .28;
    cursor: default;
    background: transparent;
    border-color: rgba(255, 255, 255, .25);
}
 
@media (max-width: 767px) {
    /* En celular se desliza con el dedo, las flechas estorban. */
    .rail-nav {
        display: none;
    }
 
    /* El riel se sale del contenedor para que la tarjeta cortada
       llegue hasta la orilla de la pantalla. */
    .rail {
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
    }
 
    .oferta-badge {
        top: 9px;
        right: 9px;
        padding: 7px 11px;
        font-size: 1.05rem;
    }
 
    .product-image-frame .oferta-badge {
        bottom: 12px;
        left: 12px;
        padding: 9px 14px;
        font-size: 1.3rem;
    }
}