:root {
    --brand: #008080;
    /* Color principal (verde) */
    --brand-2: #1f7a53;
    /* Acento */
    --brand-3: #6bbf59;
    /* Acento */
    --ink: #1f2937;
    /* Texto principal */
    --muted: #4b5260;
    /* Texto secundario */
    --bg: #ffffff;
    /* Fondo */
    --chip: #eef8f1;
    /* Fondos suaves */
}

/* Estilo general */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #1a5b3a;
    background-image: url(imgs/background-pattern.png);
    color: var(--ink);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1;
}

.page {
    width: 190mm;
    min-height: 297mm;
    margin: 10px auto;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10mm 12mm;
    /* margen interno grande para impresión */
}

/* Encabezado */
.header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 3px solid var(--brand);
    padding-bottom: 12px;
}

.logo {
    width: 120px;
    display: grid;
    place-items: center;
    margin-left: 20px;
    margin-bottom: 10px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.brand h1 {
    font-size: 26px;
    line-height: 1.05;
    margin: 0;
    color: var(--brand);
    letter-spacing: .2px;
}

.brand p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
}

/* Etiquetas de atributos sostenibles */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-left: 32px;
}

.badge {
    background: var(--chip);
    border: 1px solid rgb(31, 122, 83);
    padding: 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge img {
    filter: brightness(0) saturate(100%) invert(23%) sepia(65%) saturate(486%) hue-rotate(134deg) brightness(95%) contrast(92%);
    width: 46px;
}

/* Grid de categorías */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 0px;
}

.category {
    border: 1.5px solid #aabbb1;
    border-radius: 14px;
    padding: 10px;
    background: #ffffff;
    margin-top: 3px;
}

.cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cat-title {
    font-size: 14px;
    margin: 0;
    color: var(--brand);
}

.cat-icon {
    font-size: 18px;
    opacity: .9;
}

/* Lista de productos */
.item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    /* gap: 2px 10px; */
    padding: 7px 6px;
    border-radius: 10px;
}

.item > div:first-child {
    display: contents;
}

.item:nth-child(odd) {
    background: #fafdfb;
}

.item-name {
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    order: 1;
}

.item-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
    flex-basis: 100%;
    order: 3;
}

.item-price {
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    font-size: 14px;
    order: 2;
}

/* Fila con descuento: tarifa tachada encima y precio de oferta debajo, en el
   verde de marca (el naranja anterior se leía como aviso). Mismo color en la
   ficha y en el panel. */
.item-price.tiene-descuento {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.item-price .precio-antes {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.item-price .precio-ahora {
    color: var(--brand-2);
    font-weight: 800;
}

.item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    flex-basis: 100%;
    order: 3;
}

.item-options span {
    background: var(--chip);
    padding: 3px 8px 3px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: var(--brand-2);
    position: relative;
}

.badge-agotado {
    display: inline-block;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f3b7ae;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
}

.badge-agotado[hidden] {
    display: none;
}

.item-options span::before {
    content: "❋";
    position: absolute;
    left: 5px;
    font-size: 13px;
    color: var(--brand);
    opacity: 0.7;
}

/* Pre-pie de página */
.prefooter {
    margin-top: auto;
    padding-top: 10px;
    border-top: 3px solid var(--brand);
    text-align: center;
}

.slogan {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-2);
}

/* Pie de página */
.footer {
    margin-top: 0px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    border-top: 3px solid var(--brand);
}

.contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
}

/* Barra opcional de acciones (no se imprime) */
.actions.print-hidden {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    background: #0b0b0b08;
    padding: 10px;
    gap: 8px;
}

.actions button {
    border: 0;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.actions .primary {
    background: var(--brand);
    color: #fff;
}

.actions .ghost {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}

/* Utilidades */
.muted {
    color: var(--muted);
}

.note {
    font-size: 14px;
}


/* Para pantallas pequeñas (ej. móviles) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        /* una sola columna */
    }

    .page {
        width: auto;
        padding: 0.5em;
    }

    .logo {
        margin: auto;
    }

    .header {
        display: block;
    }

    .brand {
        margin-top: 2em;
    }

    .print-hidden {
        display: none !important;
    }

    .badges {
        display: block;
        margin: 0.5em auto;
        text-align: center;
    }

    .badge {
        margin: 0.2em;
    }

    .cat-title {
        font-size: 17px;
    }

    .item-name,
    .item-price {
        font-size: 16px;
    }

    .item-meta {
        font-size: 14px;
    }

    .item-options span {
        font-size: 15px;
        padding: 4px 9px 4px 22px;
    }

    .item-options span::before {
        font-size: 15px;
    }

    .footer {
        font-size: 14px;
    }
}

/* Caja de contacto: una sección más del grid (hereda .category), con el
   número y el botón dentro. Rellena el hueco que quede al final del catálogo. */
.contacto-box {
    background: var(--chip);
}

.contacto-num {
    margin: 2px 0 10px;
    padding: 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.contacto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.contacto-btn:hover {
    background: #1eb85a;
    transform: translateY(-1px);
}

.contacto-btn i {
    font-size: 19px;
}

/* Se oculta al imprimir, pero SÍ se ve en móvil.
   (.print-hidden no sirve para esto: el bloque de max-width:768px también la
   esconde, que es lo que se quiere para la barra de acciones, no para la promo.) */
@media print {
    .solo-pantalla {
        display: none !important;
    }
}

/* Pantallas anchas (solo en pantalla: al imprimir sigue siendo un A4 de 190mm)
   --------------------------------------------------------------------------
   El flyer deja de estar atado al ancho de folio y las secciones dejan de ir
   en dos columnas iguales: cada caja parte del ancho que pide su contenido y
   crece para repartirse el sobrante, así una sección corta no obliga a la de
   al lado a dejar hueco en blanco. */
@media screen and (min-width: 1100px) {
    .page {
        width: min(1200px, 90vw);
        padding: 12mm 14mm;
    }

    /* Cabecera: el bloque de marca ocupa todo el espacio libre y se centra en
       él, en vez de quedarse pegado al logo dejando media página en blanco a la
       derecha. Los sellos se centran bajo el texto en vez de ir alineados a la
       izquierda, y el titular sube de cuerpo para no quedarse pequeño. */
    .header {
        /* Tres columnas: logo · marca · hueco del mismo ancho que el logo. Así la
           marca queda centrada respecto a la página, no respecto al espacio que
           sobra a la derecha del logo (que la dejaba escorada). */
        display: grid;
        grid-template-columns: 160px 1fr 160px;
        align-items: center;
        gap: 0;
    }

    .brand h1 {
        font-size: 34px;
    }

    .brand p {
        font-size: 16px;
    }

    .badges {
        justify-content: center;
        gap: 12px;
        margin-left: 0;
        margin-top: 12px;
    }

    /* Columnas del mismo ancho, pero cada caja tan alta como su contenido: las
       secciones fluyen una tras otra rellenando la columna, en vez de dejar el
       hueco en blanco que sobraba bajo la caja más corta de cada fila. */
    .grid {
        display: block;
        columns: 340px;
        column-gap: 16px;
    }

    .category {
        /* que una sección no se parta entre dos columnas */
        break-inside: avoid;
        margin-top: 0;
        margin-bottom: 16px;
    }
}

/* =========================================================
   ITEMS CLICKABLES (con etiqueta)
   ========================================================= */

.item[data-slug] {
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.item[data-slug]:hover {
    background: #e8f5ee !important;
    box-shadow: inset 0 0 0 1.5px var(--brand);
}

.item-options span[data-slug] {
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.item-options span[data-slug]:hover {
    background: var(--brand);
    color: #fff;
}

/* =========================================================
   MODAL DE DETALLE DE PRODUCTO
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: modal-fade-in 0.2s ease;
}

.modal-overlay[hidden] {
    display: none;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-container {
    background: #fff;
    border-radius: 20px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: modal-slide-up 0.25s ease;
}

@keyframes modal-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Cabecera del modal */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 2px solid var(--brand);
    flex-shrink: 0;
}

.modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-category-badge {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-2);
    opacity: 0.8;
}

.modal-product-name {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--brand);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: -2px;
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--ink);
}

/* Cuerpo del modal: dos columnas */
.modal-body {
    display: flex;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.modal-label-col {
    width: 320px;
    flex-shrink: 0;
    background: #f4f8f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.25rem;
    overflow-y: auto;
    border-right: 1px solid #dde8e2;
}

/* Visor: etiqueta y fotos ocupan el mismo espacio */
.modal-media {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-view {
    display: none;
}

#modal-label-img.media-view.is-active {
    display: block;
}

#modal-label-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Slider de fotos */
.modal-foto-slider {
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal-foto-slider.is-active {
    display: flex;
}

.modal-foto-slider img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Flechas de navegación */
.foto-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--brand);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.15s;
}

.foto-nav:hover {
    background: #fff;
}

.foto-prev {
    left: 0.3rem;
}

.foto-next {
    right: 0.3rem;
}

.foto-nav[hidden] {
    display: none;
}

/* Puntos indicadores */
.foto-dots {
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    z-index: 2;
}

.foto-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.15s;
}

.foto-dot.is-active {
    background: var(--brand);
}

/* Selector al pie para alternar entre etiqueta y foto */
.modal-media-switch {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
    background: #e4efe8;
    border-radius: 999px;
    padding: 0.25rem;
}

.modal-media-switch[hidden] {
    display: none;
}

.media-tab {
    border: none;
    background: none;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-2);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.media-tab:hover {
    background: #d3e7db;
}

.media-tab.is-active {
    background: var(--brand);
    color: #fff;
}

.media-tab.is-active:hover {
    background: var(--brand-2);
}

.modal-info-col {
    flex: 1;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
}

/* Bloque de precio */
.modal-price-block {
    background: var(--chip);
    border: 1.5px solid #b8d9c5;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
}

.modal-price-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.modal-price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-2);
    line-height: 1.1;
}

/* Con descuento, el precio de tarifa pasa a segundo plano y manda el final */
.modal-price-value.is-tachado {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.modal-price-final {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-2);
    line-height: 1.1;
}

.modal-price-final[hidden] {
    display: none;
}

.modal-descuento {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e3f4ea;
    color: var(--brand-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
}

.modal-descuento[hidden] {
    display: none;
}

.modal-price-note {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Contenido de la etiqueta (descripción, uso, composición, etc.) */
.modal-label-info {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lbl-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink);
}

.lbl-attrs {
    font-size: 0.72rem;
    color: var(--brand-2);
    background: var(--chip);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    line-height: 1.7;
}

.lbl-section {
    border-left: 2.5px solid var(--brand-3);
    padding-left: 0.75rem;
}

.lbl-section h4 {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-2);
}

.lbl-section p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ink);
    line-height: 1.5;
}

.lbl-warn {
    margin: 0;
    font-size: 0.75rem;
    color: #7a5200;
    background: #fff8e6;
    border: 1px solid #f0c860;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    line-height: 1.5;
    display: flex;
    gap: 0.4rem;
}

.lbl-warn span {
    flex-shrink: 0;
}

/* Consejos (oculto por defecto) */
.modal-consejos {
    border-left: 3px solid var(--brand-3);
    padding-left: 1rem;
    display: none;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink);
}

.modal-consejos.visible {
    display: block;
}

.modal-consejos h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--brand-2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Enlaces al blog dentro de la sección Consejos */
.modal-blog-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.modal-blog-links:empty {
    display: none;
}

.modal-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-2);
    background: var(--chip);
    border: 1.5px solid #b8d9c5;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.modal-blog-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Botones compartir */
.modal-share {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

.modal-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    background: #fff;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.modal-share-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.modal-share-wa {
    border-color: #25d366;
    color: #25d366;
}

.modal-share-wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* =========================================================
   MODAL RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
        animation: none;
    }

    .modal-container {
        border-radius: 20px 20px 0 0;
        max-height: 95dvh;
        animation: modal-slide-up-mobile 0.3s ease;
    }

    @keyframes modal-slide-up-mobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .modal-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-label-col {
        width: 100%;
        max-height: none;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid #dde8e2;
        padding: 1rem;
    }

    .modal-label-col img {
        max-height: 55dvh;
        object-fit: contain;
    }

    .modal-info-col {
        overflow-y: visible;
        padding: 1rem;
    }

    .modal-product-name {
        font-size: 1.15rem;
    }

    .modal-price-value {
        font-size: 1.6rem;
    }
}

/* =========================================================
   LIGHTBOX (etiqueta ampliada)
   ========================================================= */

.modal-label-col img {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
    animation: modal-fade-in 0.2s ease;
    -webkit-overflow-scrolling: touch;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

/* Estado ampliado: la imagen crece y se puede desplazar */
.lightbox.zoomed {
    align-items: flex-start;
    justify-content: flex-start;
}

.lightbox.zoomed .lightbox-img {
    max-width: none;
    max-height: none;
    width: auto;
    cursor: zoom-out;
}

.lightbox-close {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

@page {
    margin: 0;
}

@media print {
    .print-hidden {
        display: none !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .page {
        margin: auto;
        padding: 8mm 5mm;
        box-shadow: none !important;
        border-radius: 0;
    }

    /* Tamaño de texto para impresión */
    .item-name {
        font-size: 16px;
    }

    .item-meta {
        font-size: 14px;
    }

    .item-price {
        font-size: 12px;
    }
    .badge{
        margin-right: 14px;

    }
    .badge img{
        width: 26px;
    }
    .logo{
        width: 80px;
    }
    .brand h1{
        font-size: 20px;
    }
    .brand{
        margin-left:100px;
    }
}

/* ─── Popup de promoción ──────────────────────────────────────────────────── */
.promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 30, 20, .55);
    animation: modal-fade-in .2s ease;
}

.promo-overlay[hidden] {
    display: none;
}

.promo-overlay.is-closing {
    opacity: 0;
    transition: opacity .2s ease;
}

.promo-card {
    position: relative;
    width: min(420px, 100%);
    padding: 26px 26px 0;
    text-align: center;
    color: #fff;
    background: radial-gradient(circle at 30% 20%, #3b5c42 0%, #294532 65%, #22392a 100%);
    border: 8px solid #8b5e34;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: modal-slide-up .28s ease;
}

.promo-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.promo-close:hover {
    color: #fff;
}

.promo-kicker {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #f3f7ef;
}

.promo-cifra {
    display: inline-block;
    margin: 0;
    padding: 8px 22px 10px;
    background: #6f9139;
    border-radius: 10px;
    transform: rotate(-1.5deg);
    box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}

.promo-num {
    display: block;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.promo-word {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.promo-title {
    margin: 16px 0 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.promo-fecha {
    margin: 12px 0 0;
    font-size: 15px;
    color: #d9e6d2;
}

.promo-fecha i {
    margin-right: 4px;
}

.promo-lema {
    margin: 6px 0 18px;
    font-size: 13px;
    color: #b9cdb2;
}

.promo-lema i {
    color: var(--brand-3);
}

.promo-ok {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 22px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #24402c;
    background: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.promo-ok:hover {
    background: #eef8f1;
    transform: translateY(-1px);
}

/* Barra que se vacía mientras corre el cierre automático */
.promo-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: rgba(255, 255, 255, .12);
}

.promo-timer-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand-3);
    transition: width linear;
}

@media (max-width: 640px) {
    .promo-card {
        padding: 22px 18px 0;
        border-width: 6px;
    }

    .promo-num {
        font-size: 48px;
    }

    .promo-kicker {
        font-size: 19px;
    }
}

/* Banner de promoción bajo la cabecera (aparece al cerrarse el popup) */
.promo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #6f9139 0%, #4f7a3a 100%);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;
}

.promo-banner[hidden] {
    display: none;
}

.promo-banner.is-visible {
    opacity: 1;
    transform: none;
}

.promo-banner-text {
    margin: 0;
    flex: 1;
}

.promo-banner-cifra {
    font-weight: 800;
    letter-spacing: .3px;
}

.promo-banner-fecha {
    color: #e2eeda;
    white-space: nowrap;
}

.promo-banner-close {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}

.promo-banner-close:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .promo-banner {
        font-size: 12px;
        padding: 8px 10px;
    }

    .promo-banner-fecha {
        white-space: normal;
    }
}
