/* =====================================================
   IREKA · SISTEMA DE DISEÑO
   Un único archivo de estilos para toda la web.
   1. Variables        8. Pasos
   2. Base             9. Banda / frase
   3. Botones         10. Galería + visor
   4. Cabecera        11. Llamada a la acción
   5. Portadas        12. Pie
   6. Tarjetas        13. Cesta y avisos
   7. Productos       14. Responsive
===================================================== */


/* =====================================================
   1. VARIABLES
===================================================== */

:root {
    /* Colores */
    --bg: #faf6ef;
    --surface: #ffffff;
    --alt: #f2eadf;
    --sage: #e7ede1;
    --sage-dark: #5d7350;

    --brown: #76563d;
    --brown-dark: #4f3826;
    --brown-soft: #a18469;

    --text: #2e2925;
    --text-soft: #5f5349;
    --border: #e3d8ca;

    --success: #3f7a4a;
    --whatsapp: #25d366;

    /* Tipografía */
    --font-title: "Fraunces", Georgia, serif;
    --font-body: "Bricolage Grotesque", system-ui, sans-serif;
    --font-script: "Allura", cursive;

    /* Medidas */
    --container: 1200px;
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 76px;
    --shadow: 0 10px 30px rgba(79, 56, 38, 0.08);
    --shadow-hover: 0 18px 40px rgba(79, 56, 38, 0.14);
    --ease: cubic-bezier(.2, .7, .2, 1);
}


/* =====================================================
   2. BASE
===================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
    font-optical-sizing: auto;
    /* SOFT redondea los remates; WONK da el toque artesanal a algunas letras */
    font-variation-settings: "SOFT" 100, "WONK" 0;
}

h1 {
    font-variation-settings: "SOFT" 100, "WONK" 1;
    letter-spacing: -0.02em;
}

h1 em,
h2 em {
    font-style: italic;
    color: var(--brown);
}

:focus-visible {
    outline: 2px solid var(--brown);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(var(--container), 100% - 40px);
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

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

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

.section-white {
    background: var(--surface);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 4px 0 14px;
}

.section-head p {
    color: var(--text-soft);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brown);
}

.script {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.1;
    color: var(--brown-soft);
}

.center {
    text-align: center;
}


/* =====================================================
   3. BOTONES
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--brown);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brown-dark);
    box-shadow: 0 8px 20px rgba(79, 56, 38, .25);
}

.btn-outline {
    border-color: var(--brown);
    color: var(--brown);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brown);
    color: #fff;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #0b3d1f;
}

.btn-whatsapp:hover {
    background: #1fbe5b;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brown);
}

.link-arrow i {
    transition: transform .25s var(--ease);
}

.link-arrow:hover i,
a:hover > .link-arrow i,
a:hover .link-arrow i {
    transform: translateX(4px);
}


/* =====================================================
   4. CABECERA
===================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(79, 56, 38, .08);
}

.header-inner {
    width: min(1280px, 100% - 40px);
    height: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.logo img {
    width: 130px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a,
.header-actions .nav-link {
    position: relative;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    color: var(--text);
    transition: color .2s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 1.5px;
    background: var(--brown);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--brown);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-mobile-extra {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: border-color .2s, background .2s;
}

.cart-button:hover {
    border-color: var(--brown);
}

.cart-button i {
    font-size: 16px;
    color: var(--brown);
}

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brown);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.cart-count.vacia {
    background: var(--alt);
    color: var(--text-soft);
}

.cart-button.bump {
    animation: bump .45s var(--ease);
}

@keyframes bump {
    40% { transform: scale(1.12); }
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    color: var(--text);
}


/* Migas de pan */

.breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--text-soft);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--brown-soft);
}

.breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
}

.breadcrumb a:hover {
    color: var(--brown);
    text-decoration-color: var(--brown);
}

.breadcrumb [aria-current] {
    color: var(--text);
    font-weight: 500;
}


/* =====================================================
   5. PORTADAS
===================================================== */

.hero {
    padding: 40px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.05;
    margin: 14px 0 20px;
}

.hero-text > p {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    left: -20px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 13px;
    line-height: 1.4;
}

.hero-badge i {
    font-size: 22px;
    color: var(--brown);
}

.hero-badge strong {
    display: block;
    font-size: 14px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 30px;
    list-style: none;
    font-size: 13px;
    color: var(--text-soft);
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust i {
    color: var(--sage-dark);
}

/* Cabecera compacta de las páginas de producto */

.page-intro {
    padding: 30px 0 50px;
    text-align: center;
}

.page-intro h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    margin: 6px 0 16px;
}

.page-intro p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-soft);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    list-style: none;
}

.chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13px;
}

.chips i {
    color: var(--brown);
}


/* =====================================================
   6. TARJETAS DE CATEGORÍA
===================================================== */

/* Rejillas de tarjetas y productos.
   Se usa flex (no grid) para que, si la última fila
   no se llena (2 productos, 5, 7...), quede centrada.
   --cols = cuántas columnas caben en cada ancho. */
.cards,
.products {
    --cols: 3;
    --gap: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.cards > *,
.products > * {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    min-width: 0;
}

.products {
    --cols: 4;
}

/* Solo dos tarjetas: más estrechas para que no queden enormes */
.cards-2 {
    --cols: 2;
    max-width: 820px;
    margin-inline: auto;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s;
}

a.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--alt);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

a.card:hover .card-media img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    font-size: 12px;
    font-weight: 600;
    color: var(--brown-dark);
}

.card-tag:empty {
    display: none;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.card-body h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.card-body p {
    flex: 1;
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 18px;
}


/* =====================================================
   7. PRODUCTOS
===================================================== */

.product {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .3s;
}

.product:hover {
    box-shadow: var(--shadow-hover);
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--alt);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

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

/* Foto del producto pulsable para verla entera */

.product-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brown-dark);
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition: transform .25s var(--ease);
}

.product-zoom:hover .zoom-hint {
    transform: scale(1.1);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.product-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brown-soft);
    margin-bottom: 4px;
}

.product h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.product-desc {
    flex: 1;
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.product-specs {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: -4px 0 16px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--alt);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
}

.product-specs i {
    margin-top: 3px;
    color: var(--brown);
}

.product-specs strong {
    color: var(--text);
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
}

.product-price strong {
    white-space: nowrap;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}

.product-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-soft);
}

.product-min {
    text-align: right;
    font-size: 12px;
    color: var(--sage-dark);
    font-weight: 500;
}

.product-buy {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.qty button {
    width: 40px;
    height: 46px;
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--brown);
    transition: background .2s;
}

.qty button:hover {
    background: var(--alt);
}

.qty input {
    width: 48px;
    height: 46px;
    border: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 12px;
}

.btn-add.added {
    background: var(--success);
}

.product-subtotal {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-soft);
    text-align: right;
}

.product-subtotal strong {
    color: var(--text);
}

.back-row {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}


/* =====================================================
   8. VENTAJAS Y PASOS
===================================================== */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    padding: 28px 22px;
    background: var(--surface);
    border-radius: var(--radius);
    text-align: center;
}

.feature-icon,
.step-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--alt);
    color: var(--brown);
    font-size: 20px;
}

.feature h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.feature p {
    font-size: 14px;
    color: var(--text-soft);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    counter-reset: paso;
    list-style: none;
}

.step {
    position: relative;
    text-align: center;
    padding: 10px 10px 0;
}

.step-icon {
    position: relative;
    background: #fff;
    box-shadow: var(--shadow);
}

.step-icon::after {
    counter-increment: paso;
    content: counter(paso);
    position: absolute;
    top: -4px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brown);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.step h3 {
    font-size: 21px;
    margin-bottom: 6px;
}

.step p {
    font-size: 14px;
    color: var(--text-soft);
    max-width: 300px;
    margin: 0 auto;
}


/* =====================================================
   9. BANDA / FRASE Y BLOQUE DESTACADO
===================================================== */

.band {
    padding: 80px 0;
    background: var(--brown-dark);
    color: #fff;
    text-align: center;
}

.band h2 {
    color: #fff;
    font-size: clamp(26px, 3.4vw, 38px);
    font-style: italic;
    max-width: 820px;
    margin: 0 auto 18px;
}

.band p {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: .8;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.split img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.split h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 6px 0 18px;
}

.split p {
    color: var(--text-soft);
    margin-bottom: 28px;
}


/* =====================================================
   10. GALERÍA + VISOR
===================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery button {
    display: block;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--alt);
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease), opacity .3s;
}

.gallery button:hover img {
    transform: scale(1.06);
}

.gallery-foot {
    text-align: center;
    margin-top: 36px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    place-items: center;
    padding: 30px;
    background: rgba(20, 15, 12, .9);
}

.lightbox.open {
    display: grid;
}

.lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
}

.lightbox img {
    max-width: min(1000px, 100%);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox figcaption {
    color: #fff;
    font-family: var(--font-title);
    font-size: 20px;
    text-align: center;
}

.lightbox figcaption:empty {
    display: none;
}

.visor-abierto {
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 22px;
}


/* =====================================================
   11. LLAMADA A LA ACCIÓN
===================================================== */

.cta {
    padding: 90px 0;
    text-align: center;
}

.cta-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    margin: 6px 0 16px;
}

.cta p {
    color: var(--text-soft);
    max-width: 540px;
    margin: 0 auto 30px;
}

.cta .btn-group {
    justify-content: center;
}


/* =====================================================
   12. PIE
===================================================== */

.footer {
    background: var(--brown-dark);
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-brand {
    font-family: var(--font-title);
    font-size: 28px;
    letter-spacing: 6px;
    color: #fff;
}

.footer-tagline {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 18px;
    margin: 4px 0 18px;
}

.footer h3 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer ul a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 16px;
    transition: background .25s, transform .25s;
}

.social a:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding: 18px 0;
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
}


/* =====================================================
   13. CESTA, AVISOS Y WHATSAPP
===================================================== */

.cesta-fondo {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(46, 41, 37, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.cesta-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 201;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    height: 100%;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(0, 0, 0, .1);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    visibility: hidden;
}

.cesta-abierta .cesta-fondo {
    opacity: 1;
    pointer-events: auto;
}

.cesta-abierta .cesta-panel {
    transform: translateX(0);
    visibility: visible;
}

.cesta-abierta {
    overflow: hidden;
}

.cesta-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.cesta-cabecera h2 {
    font-size: 26px;
}

.cesta-cabecera small {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--alt);
    color: var(--brown-dark);
    font-size: 18px;
}

.cesta-lista {
    flex: 1;
    overflow-y: auto;
    padding: 6px 24px;
}

.cesta-vacia {
    text-align: center;
    padding: 50px 10px;
    color: var(--text-soft);
}

.cesta-vacia i {
    font-size: 40px;
    color: var(--border);
    margin-bottom: 16px;
}

.cesta-vacia p {
    margin-bottom: 22px;
}

.cesta-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.cesta-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cesta-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.cesta-item small {
    font-size: 12px;
    color: var(--text-soft);
}

.cesta-item .qty {
    margin-top: 8px;
    width: fit-content;
}

.cesta-item .qty button {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.cesta-item .qty input {
    width: 46px;
    height: 34px;
    font-size: 13px;
}

.cesta-derecha {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cesta-derecha strong {
    font-size: 15px;
}

.cesta-quitar {
    border: 0;
    background: none;
    padding: 6px;
    font-size: 12px;
    color: var(--text-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cesta-quitar:hover {
    color: #a33b2b;
}

.cesta-pie {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.cesta-notas label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cesta-notas textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    resize: vertical;
}

.cesta-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 16px 0 4px;
    font-size: 15px;
}

.cesta-total strong {
    font-size: 24px;
}

.cesta-nota {
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.cesta-seguir {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 0;
    background: none;
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn[disabled] {
    background: #cfc5ba;
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aviso {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: calc(100% - 32px);
    padding: 12px 12px 12px 20px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity .3s, transform .3s var(--ease);
}

.aviso.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.aviso i {
    color: #8fd19e;
}

.aviso button {
    flex-shrink: 0;
    min-height: 38px;
    padding: 6px 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 150;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform .25s var(--ease);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.cesta-abierta .whatsapp-float {
    display: none;
}


/* =====================================================
   TEMPORADA (barra superior + banner)
   Los colores llegan desde temporada.js
===================================================== */

.season-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px 52px;
    background: var(--t-bg);
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.season-bar > i {
    color: var(--t-accent);
}

.season-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--t-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.season-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 15px;
}

.season-bar button:hover {
    background: rgba(255, 255, 255, .12);
}

.season {
    padding: 0 0 90px;
}

.season-box {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--t-bg);
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.season-text {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.season-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--t-accent);
}

.season h1,
.season h2 {
    color: #fff;
    font-size: clamp(30px, 3.8vw, 46px);
    margin: 14px 0 16px;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.season h1 em,
.season h2 em,
.season-strip h2 em {
    color: var(--t-accent);
}

.season-page {
    padding: 24px 0 70px;
}

/* Franja compacta: avisa de la temporada sin quitar protagonismo */

.season-teaser {
    padding: 0 0 70px;
}

.season-strip {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 24px 16px 16px;
    border-radius: var(--radius);
    background: var(--t-bg);
    color: #fff;
    transition: transform .3s var(--ease), box-shadow .3s;
}

.season-strip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.season-strip img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.season-strip .season-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
}

.season-strip h2 {
    color: #fff;
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 4px 0 6px;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.season-strip-count {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.season-strip-count strong {
    color: var(--t-accent);
}

.season-strip-btn {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 12px;
}

.season-strip:hover .season-strip-btn {
    background: #fff;
}

.season-text > p {
    color: rgba(255, 255, 255, .85);
    max-width: 460px;
    margin-bottom: 22px;
}

.season-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 18px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 14px;
}

.season-count strong {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 500;
    color: var(--t-accent);
}

.btn-season {
    background: var(--t-accent);
    color: #2e2925;
}

.btn-season:hover {
    background: #fff;
}

.btn-season-outline {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.btn-season-outline:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.season-media {
    position: relative;
    min-height: 380px;
}

/* La foto se adapta a la altura del texto, sea vertical u horizontal */
.season-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   14. RESPONSIVE
===================================================== */

@media (max-width: 1080px) {

    .products {
        --cols: 3;
    }

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

    .nav a {
        padding: 10px 8px;
    }

    .nav a::after {
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 900px) {

    :root {
        --header-h: 66px;
    }

    .section,
    .cta {
        padding: 70px 0;
    }

    /* Cabecera móvil: logo a la izquierda, cesta + menú a la derecha */

    .header-inner {
        grid-template-columns: auto 1fr;
    }

    .logo {
        order: -1;
    }

    .logo img {
        width: 110px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .header-actions .nav-link {
        display: none;
    }

    .cart-label {
        display: none;
    }

    .cart-button {
        padding: 8px 14px;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 30px rgba(79, 56, 38, .08);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        padding: 16px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav a::after {
        display: none;
    }

    .nav-mobile-extra {
        display: block;
    }

    /* Bloques */

    .hero {
        padding: 24px 0 60px;
    }

    .hero-grid,
    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .season-box {
        grid-template-columns: 1fr;
    }

    .season-media {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .season-text {
        padding: 36px 26px 40px;
    }

    .season {
        padding-bottom: 60px;
    }

    .season-bar {
        padding: 10px 46px 10px 16px;
        font-size: 12px;
    }

    .season-teaser {
        padding-bottom: 50px;
    }

    .season-strip {
        grid-template-columns: 72px 1fr;
        gap: 16px;
        padding: 14px;
    }

    .season-strip img {
        width: 72px;
        height: 72px;
    }

    .season-strip-btn {
        display: none;
    }

    .hero-media {
        order: -1;
    }

    .hero-badge {
        left: 14px;
        bottom: 14px;
    }

    .cards,
    .products {
        --cols: 2;
        --gap: 20px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

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

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {

    body {
        font-size: 15px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        width: calc(100% - 24px);
    }

    .section,
    .cta {
        padding: 56px 0;
    }

    .section-head {
        margin-bottom: 34px;
    }

    .hero .btn-group .btn {
        flex: 1 1 100%;
    }

    .cards-2,
    .cards-3,
    .cards,
    .products {
        --cols: 1;
    }

    .features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature {
        padding: 22px 14px;
    }

    .feature h3 {
        font-size: 17px;
    }

    .feature p {
        font-size: 13px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cta-box {
        padding: 44px 22px;
    }

    .cta .btn-group .btn {
        flex: 1 1 100%;
    }

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

    .aviso {
        bottom: 90px;
        border-radius: var(--radius);
        font-size: 13px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
