/* ==========================================================================
   Dulce Encanto · Hoja de estilos principal
   Paleta y tipografía configurables desde el panel (variables en header.php)
   ========================================================================== */

:root {
    --cocoa: #4a2b25;
    --cocoa-deep: #2e1a16;
    --gold: #c9a227;
    --cream: #f8f1e7;
    --ink: #241715;
    --paper: #fffdf9;
    --sand: #e9d9c4;
    --muted: #7a6459;
    --line: rgba(74, 43, 37, .14);
    --line-strong: rgba(74, 43, 37, .24);
    --shadow-sm: 0 10px 30px -18px rgba(46, 26, 22, .35);
    --shadow-md: 0 28px 60px -34px rgba(46, 26, 22, .45);
    --radius: 18px;
    --radius-lg: 26px;
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --wrap: 1200px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--cocoa-deep); }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--cocoa);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 999;
}
.skip-link:focus { left: 12px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: clamp(20px, 5vw, 56px);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Anuncio superior
   -------------------------------------------------------------------------- */
.announcement {
    background: var(--cocoa-deep);
    color: #efd9b4;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 10px 18px;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px -26px rgba(46, 26, 22, .6);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cocoa);
    color: #f6e6c6;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    border: 1px solid rgba(201, 162, 39, .5);
    box-shadow: inset 0 0 0 3px rgba(201, 162, 39, .18);
    overflow: hidden;
}
.logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.logo__tag { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    font-size: 14px;
    font-weight: 500;
    color: #4f3b33;
    position: relative;
    padding: 6px 0;
    transition: color .2s var(--ease);
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--cocoa); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 10px 4px;
}
.cart-link svg { width: 21px; height: 21px; }
.cart-count {
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--cocoa-deep);
    font-size: 11px;
    font-weight: 700;
    display: grid; place-items: center;
}

.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    display: block;
    width: 17px; height: 1.5px;
    background: var(--cocoa);
    position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
    content: '';
    position: absolute; left: 0;
    width: 17px; height: 1.5px;
    background: var(--cocoa);
    transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    transition: background .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--cocoa); color: #fff8ec; }
.btn--primary:hover { background: var(--cocoa-deep); }

.btn--gold { background: var(--gold); color: var(--cocoa-deep); }
.btn--gold:hover { background: #b8912a; }

.btn--ghost { border-color: var(--line-strong); color: var(--cocoa); background: transparent; }
.btn--ghost:hover { border-color: var(--cocoa); background: rgba(74, 43, 37, .04); }

.btn--light { background: var(--paper); color: var(--cocoa); border-color: var(--line); }
.btn--light:hover { background: #fff; border-color: var(--cocoa); }

.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cocoa);
    border-bottom: 1px solid rgba(74, 43, 37, .35);
    padding-bottom: 3px;
    transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.text-link:hover { gap: 13px; border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 88% -8%, rgba(201, 162, 39, .20), transparent 62%),
        radial-gradient(700px 480px at -5% 100%, rgba(74, 43, 37, .10), transparent 60%),
        var(--cream);
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(74, 43, 37, .10) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .35;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-block: clamp(56px, 8vw, 96px);
    min-height: min(76vh, 760px);
}
.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cocoa);
    margin-bottom: 22px;
}
.hero__kicker::before {
    content: '';
    width: 34px; height: 1px;
    background: var(--gold);
}
.hero__title {
    font-size: clamp(2.9rem, 6.4vw, 5.1rem);
    line-height: .98;
    letter-spacing: -.035em;
    color: var(--cocoa-deep);
    margin-bottom: 24px;
    max-width: 12ch;
}
.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--cocoa);
}
.hero__text {
    font-size: clamp(15px, 1.35vw, 17px);
    color: #5c463d;
    max-width: 44ch;
    margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--cocoa);
    line-height: 1.2;
}
.hero__stat span { font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.hero__media { position: relative; }
.hero__frame {
    position: relative;
    border-radius: 300px 300px 28px 28px;
    overflow: hidden;
    aspect-ratio: 4 / 4.7;
    background: var(--sand);
    border: 1px solid rgba(74, 43, 37, .18);
    box-shadow: var(--shadow-md);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 10px rgba(255, 253, 249, .22);
    pointer-events: none;
}
.hero__outline {
    position: absolute;
    inset: -16px -16px 18px 18px;
    border: 1px solid rgba(201, 162, 39, .55);
    border-radius: 300px 300px 28px 28px;
    z-index: -1;
}
.hero__badge {
    position: absolute;
    left: -22px;
    bottom: 46px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
}
.hero__badge-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .16);
    color: #8a6d1c;
    display: grid; place-items: center;
    flex: none;
}
.hero__badge-icon svg { width: 19px; height: 19px; }
.hero__badge strong { display: block; font-size: 13px; line-height: 1.3; }
.hero__badge span { font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--sand {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(201, 162, 39, .12), transparent 60%),
        #f1e4d2;
}
.section--dark {
    background:
        radial-gradient(800px 500px at 85% 0%, rgba(201, 162, 39, .16), transparent 55%),
        var(--cocoa-deep);
    color: #f0e2cf;
}
.section--dark .section-title { color: #fbf3e4; }
.section--dark .section-text { color: #cdb9a8; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head__text { max-width: 560px; }

.kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #9a7b28;
    margin-bottom: 14px;
}
.section--dark .kicker { color: var(--gold); }

.section-title { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--cocoa-deep); }
.section-text { color: #6b564b; font-size: 15.5px; max-width: 56ch; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Categorías
   -------------------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3.3;
    background: var(--sand);
    border: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .8s var(--ease);
}
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(36, 23, 21, .82) 0%, rgba(36, 23, 21, .12) 55%, transparent 100%);
}
.category-card:hover img { transform: scale(1.05); }
.category-card__body { padding: 26px; color: #fff8ec; width: 100%; }
.category-card__body h3 { font-size: 24px; margin-bottom: 4px; }
.category-card__body p { font-size: 13px; color: rgba(255, 248, 236, .78); margin: 0; }
.category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f0d59a;
}
.category-card:hover .category-card__link { gap: 12px; }
.category-card__link { transition: gap .25s var(--ease); }

/* --------------------------------------------------------------------------
   Productos
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, .55);
    box-shadow: var(--shadow-sm);
}
.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3.1;
    background: #f2e4d1;
    overflow: hidden;
}
.product-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255, 253, 249, .92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    color: var(--cocoa);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}
.product-card__tag--off { background: rgba(36, 23, 21, .82); color: #f3e2c4; border-color: transparent; }
.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 22px;
}
.product-card__cat {
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9a7b28;
    font-weight: 700;
    margin-bottom: 7px;
}
.product-card__title { font-size: 20px; margin-bottom: 6px; }
.product-card__title a:hover { color: var(--cocoa); }
.product-card__desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.product-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.price { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--cocoa-deep); line-height: 1.2; }
.price small { display: block; font-family: var(--font-body); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.product-card__add {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    display: grid; place-items: center;
    color: var(--cocoa);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.product-card__add svg { width: 17px; height: 17px; }
.product-card__add:hover { background: var(--cocoa); color: #fff8ec; border-color: var(--cocoa); }

/* --------------------------------------------------------------------------
   Historia / bloque partido
   -------------------------------------------------------------------------- */
.story {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.story--reverse .story__media { order: 2; }
.story__media { position: relative; }
.story__media img {
    width: 100%;
    aspect-ratio: 5 / 4.4;
    object-fit: cover;
    border-radius: 22px 22px 22px 140px;
    border: 1px solid var(--line);
}
.story__media::before {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1px solid rgba(201, 162, 39, .5);
    border-radius: 22px 22px 22px 140px;
    z-index: -1;
}
.story__body .section-title { margin-bottom: 18px; }
.story__body p { color: #5f4a40; font-size: 15.5px; }
.story__signature {
    margin-top: 26px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--cocoa);
}
.story__points {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}
.story__points li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #544038;
    align-items: flex-start;
}
.story__points svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #9a7b28; }

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */
.gallery-grid {
    columns: 3;
    column-gap: 18px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
    background: var(--sand);
    cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 18px 16px;
    background: linear-gradient(to top, rgba(36, 23, 21, .8), transparent);
    color: #fff8ec;
    font-size: 13px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(24, 14, 12, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: min(1000px, 92vw);
    max-height: 84vh;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox__close {
    position: absolute;
    top: 22px; right: 26px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}
.lightbox__caption {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: #f0e2cf;
    font-size: 13px;
    letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   Cinta de cita / CTA
   -------------------------------------------------------------------------- */
.quote-band {
    padding-block: clamp(56px, 8vw, 96px);
    text-align: center;
}
.quote-band blockquote {
    margin: 0 auto;
    max-width: 760px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-style: italic;
    line-height: 1.35;
    color: #fbf3e4;
}
.quote-band cite {
    display: block;
    margin-top: 22px;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}

.cta-band {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 40px;
    padding: clamp(36px, 5vw, 60px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(201, 162, 39, .25), transparent 60%),
        var(--cocoa);
    color: #f6e9d6;
    overflow: hidden;
    position: relative;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: #fff8ec; margin-bottom: 12px; }
.cta-band p { color: #ddc8b3; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   Cabecera de página interior
   -------------------------------------------------------------------------- */
.page-head {
    padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 44px);
    background:
        radial-gradient(700px 340px at 90% 0%, rgba(201, 162, 39, .14), transparent 60%),
        var(--cream);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); color: var(--cocoa-deep); margin-bottom: 10px; }
.page-head p { color: #6b564b; max-width: 62ch; margin: 0; }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--cocoa); }
.breadcrumb span { opacity: .5; }

/* --------------------------------------------------------------------------
   Catálogo
   -------------------------------------------------------------------------- */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 500;
    color: #5b463c;
    background: transparent;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--cocoa); color: var(--cocoa); }
.chip.is-active { background: var(--cocoa); border-color: var(--cocoa); color: #fff8ec; }

.search-form { display: flex; gap: 8px; }
.search-form input {
    min-width: 220px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    font-size: 13.5px;
}
.search-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.empty-state {
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 253, 249, .6);
}
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Detalle de producto
   -------------------------------------------------------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(30px, 5vw, 68px);
    align-items: start;
}
.product-detail__media { position: sticky; top: 110px; }
.product-detail__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--sand);
    aspect-ratio: 4 / 3.4;
}
.product-detail__main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-detail__thumbs img {
    width: 78px; height: 66px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: pointer;
    opacity: .75;
    transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.product-detail__thumbs img:hover, .product-detail__thumbs img.is-active { opacity: 1; border-color: var(--gold); }

.product-detail__info h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 8px 0 14px; color: var(--cocoa-deep); }
.product-detail__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.product-detail__price .price { font-size: 30px; }
.product-detail__price span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.product-detail__desc { color: #5c473d; font-size: 15.5px; white-space: pre-line; }
.product-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.product-detail__meta dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.product-detail__meta dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--cocoa); }

.add-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    overflow: hidden;
    background: var(--paper);
}
.qty button {
    width: 40px; height: 44px;
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--cocoa);
}
.qty button:hover { background: rgba(74, 43, 37, .06); }
.qty input {
    width: 46px;
    height: 44px;
    border: 0;
    text-align: center;
    background: transparent;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.note-box {
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 2px solid var(--gold);
    background: rgba(201, 162, 39, .08);
    font-size: 13px;
    color: #6a533f;
    border-radius: 0 10px 10px 0;
}

/* --------------------------------------------------------------------------
   Carrito y checkout
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1.55fr .95fr; gap: 34px; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.cart-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-row__media {
    width: 92px; height: 78px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--sand);
}
.cart-row__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.cart-row__meta { font-size: 12.5px; color: var(--muted); }
.cart-row__price { font-weight: 600; font-size: 15px; min-width: 92px; text-align: right; }
.cart-row__remove {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    text-decoration: underline;
    padding: 4px 0;
}
.cart-row__remove:hover { color: #a63c2f; }

.cart-summary {
    position: sticky;
    top: 108px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.cart-summary h2 { font-size: 22px; margin-bottom: 18px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    padding: 9px 0;
    color: #5b463c;
}
.summary-row--total {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--cocoa-deep);
}
.summary-row--total span:last-child { font-family: var(--font-display); font-size: 22px; }
.summary-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.cart-summary .btn { margin-top: 18px; }

.checkout-layout { display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: start; }
.form-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    margin-bottom: 20px;
}
.form-section h2 { font-size: 21px; margin-bottom: 6px; }
.form-section > p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #544038; }
.field label .req { color: #a63c2f; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field__hint { font-size: 11.5px; color: var(--muted); }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.radio-card:has(input:checked) { border-color: var(--cocoa); background: rgba(201, 162, 39, .07); }
.radio-card input { margin-top: 3px; accent-color: var(--cocoa); }
.radio-card strong { display: block; font-size: 14px; }
.radio-card span { font-size: 12px; color: var(--muted); }

.order-lines { border-top: 1px solid var(--line); margin-top: 14px; }
.order-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}
.order-line small { display: block; color: var(--muted); font-size: 11.5px; }

/* --------------------------------------------------------------------------
   Confirmación
   -------------------------------------------------------------------------- */
.confirm-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 52px);
    text-align: center;
}
.confirm-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .14);
    color: #8a6d1c;
    display: grid; place-items: center;
}
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-card h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 10px; }
.confirm-code {
    display: inline-block;
    margin: 16px 0 24px;
    padding: 8px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 14px;
}
.confirm-detail {
    text-align: left;
    margin: 26px 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 19px; height: 19px; color: #9a7b28; flex: none; margin-top: 4px; }
.contact-list strong { display: block; font-size: 13px; letter-spacing: .04em; }
.contact-list span, .contact-list a { font-size: 14px; color: #5c473d; }
.contact-list a:hover { color: var(--cocoa); }

/* --------------------------------------------------------------------------
   Alertas
   -------------------------------------------------------------------------- */
.alert {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert--success { background: #eef6ef; color: #2c5d3c; border-color: #cfe4d3; }
.alert--error { background: #fbece9; color: #8c2f24; border-color: #f0cbc3; }
.alert--info { background: #f4eee4; color: #6a533f; border-color: #e4d5c2; }

/* --------------------------------------------------------------------------
   Valores (Nosotros)
   -------------------------------------------------------------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.value-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
}
.value-card__num {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: .16em;
    color: #9a7b28;
    margin-bottom: 16px;
}
.value-card h3 { font-size: 22px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: #6b564b; margin: 0; }

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
    background:
        radial-gradient(700px 380px at 85% 0%, rgba(201, 162, 39, .10), transparent 60%),
        var(--ink);
    color: #c9b6a6;
    padding-top: clamp(48px, 7vw, 78px);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr;
    gap: 36px;
    padding-bottom: 48px;
}
.footer-brand .logo__mark { background: rgba(255, 248, 236, .08); color: var(--gold); border-color: rgba(201, 162, 39, .4); }
.footer-brand .logo__name { color: #fbf3e4; }
.footer-brand .logo__tag { color: #9c8574; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #a99280; margin-top: 16px; max-width: 34ch; }
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: #b6a08e; }
.footer-col a:hover { color: #fbf3e4; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255, 248, 236, .12);
    font-size: 12px;
    color: #8f7a69;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 248, 236, .16);
    display: grid; place-items: center;
    color: #c9b6a6;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #1f7a4d;
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 14px 30px -12px rgba(31, 122, 77, .7);
    transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   Animaciones suaves
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
    .nav {
        position: fixed;
        top: 84px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px clamp(20px, 5vw, 56px) 22px;
        transform: translateY(-130%);
        transition: transform .35s var(--ease);
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }
    .menu-open .nav { transform: none; }
    .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
    .nav a::after { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-actions .btn--primary { display: none; }

    .hero__inner { grid-template-columns: 1fr; min-height: auto; }
    .hero__media { max-width: 480px; margin: 0 auto; width: 100%; }
    .hero__badge { left: 0; bottom: -18px; }
    .hero__outline { inset: -12px -12px 14px 14px; }
    .hero__title { max-width: 100%; }

    .category-grid { grid-template-columns: 1fr 1fr; }
    .category-grid .category-card:last-child { grid-column: 1 / -1; aspect-ratio: 2.2 / 1; }

    .story, .story--reverse .story__media { grid-template-columns: 1fr; order: 0; }
    .story__media { order: 0; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail__media { position: static; }
    .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band__actions { justify-content: flex-start; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .gallery-grid { columns: 2; }
}

@media (max-width: 680px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-card__body { padding: 14px 14px 16px; }
    .product-card__title { font-size: 17px; }
    .product-card__desc { display: none; }
    .product-card__add { width: 34px; height: 34px; }
    .price { font-size: 16px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-grid .category-card:last-child { aspect-ratio: 4 / 3.3; }
    .hero__meta { gap: 18px; }
    .hero__stat strong { font-size: 19px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cart-row { grid-template-columns: 72px 1fr; grid-template-areas: "img info" "img side"; row-gap: 10px; }
    .cart-row__media { grid-area: img; width: 72px; height: 64px; }
    .cart-row__info { grid-area: info; }
    .cart-row__side { grid-area: side; align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .radio-group { grid-template-columns: 1fr; }
    .gallery-grid { columns: 1; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; min-width: 0; }
    .catalog-toolbar { align-items: stretch; }
    .whatsapp-float { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}
