/* =====================================================================
   Haiga Mayorista - Hoja de estilos principal
   Mobile-first. Linea visual "premium" (paleta crema + negro + rosa
   empolvado), inspirada en referencias de moda/athleisure.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary: #dfa3af;
    --color-primary-dark: #c98697;
    --color-primary-text: #1a1610;
    --color-bg: #f7f1ea;
    --color-fg: #1a1610;
    --color-card: #ffffff;
    --color-border: #e8ddd2;
    --color-muted-bg: #f3e3e6;
    --color-muted-fg: #8a7d72;
    --color-badge: #1a1610;
    --color-price: #1a1610;
    --color-agotado-bg: #1a1610;
    --color-agotado-fg: #f7f1ea;
    --color-danger: #b3392c;
    --color-success: #2e6b40;

    --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --radius-sm: .375rem;
    --radius-md: .625rem;
    --radius-lg: 1.1rem;
    --radius-pill: 999px;
    --shadow-card: 0 1px 3px rgba(26, 22, 16, .08);
    --shadow-hover: 0 12px 28px rgba(26, 22, 16, .14);
    --container-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0 0 .5rem; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container { padding: 0 1.5rem; }
}

/* --------------------------------------------------------------- */
/* Botones                                                          */
/* --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.75rem;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-text); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--dark { background: var(--color-fg); color: var(--color-bg); }
.btn--dark:hover { background: #000; }
.btn--outline { background: transparent; color: var(--color-fg); border: 1px solid var(--color-border); }
.btn--outline:hover { border-color: var(--color-fg); }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--sm { padding: .55rem 1.15rem; font-size: .75rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------- */
/* Badges                                                           */
/* --------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.badge--new { background: var(--color-card); color: var(--color-badge); border: 1px solid var(--color-badge); }
.badge--off { background: var(--color-primary); color: var(--color-primary-text); }
.badge--agotado { background: var(--color-agotado-bg); color: var(--color-agotado-fg); }

/* --------------------------------------------------------------- */
/* Header / navegacion                                              */
/* --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .85rem 4px;
}
@media (min-width: 768px) {
    .site-header__bar { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.site-header__logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}
.site-header__logo-mark {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-header__logo-sub {
    display: none;
}
.site-header__toggle {
    position: relative;
    z-index: 41;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.site-header__toggle span {
    display: block;
    width: 100%;
    min-width: 24px;
    height: 2px;
    background-color: #1a1610;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--color-card);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 39;
    overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav__list { display: flex; flex-direction: column; gap: 1.1rem; font-weight: 600; font-size: 1.05rem; }
.site-nav__list a.is-active { color: var(--color-primary); }
.site-nav__close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header__cart {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-fg);
    padding: .3rem;
    transition: color .15s ease;
}
.site-header__cart:hover { color: var(--color-primary); }

.cart-icon__fill {
    fill: #22c55e;
    transition: height .5s cubic-bezier(.16, 1, .3, 1), y .5s cubic-bezier(.16, 1, .3, 1);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-fg);
    color: var(--color-bg);
    font-size: .68rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    display: none;
}

@media (min-width: 1024px) {
    .site-header__toggle { display: none; }
    .site-nav {
        position: static;
        transform: none;
        padding: 0;
        inset: auto;
        overflow: visible;
    }
    .site-nav__list { flex-direction: row; align-items: center; gap: 1.75rem; font-size: .95rem; }
    .site-nav__close { display: none; }
    .site-header__bar { gap: 1.5rem; }
    .site-header__logo-mark { font-size: 1.55rem; letter-spacing: .04em; }
    .site-header__logo-sub { display: block; font-size: .55rem; letter-spacing: .3em; margin-top: .2rem; }
}

/* --------------------------------------------------------------- */
/* Hero                                                              */
/* --------------------------------------------------------------- */
.hero {
    background: linear-gradient(180deg, #f3e0e2 0%, var(--color-bg) 100%);
    padding: 3rem 0 2.5rem;
    text-align: center;
    position: relative;
}
.hero--image {
    background-image: var(--hero-bg-mobile);
    background-size: cover;
    background-position: center;
    padding: 4.5rem 0;
    color: #fff;
}
.hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.6));
}
.hero--image .container { position: relative; z-index: 1; }
.hero--image .hero__eyebrow { color: #ffcaa8; }
.hero--image .hero__title, .hero--image .hero__subtitle { color: #fff; }
.hero--image .hero__title span { color: var(--color-primary); }
.hero--image .hero__features { color: rgba(255,255,255,.85); }
@media (min-width: 768px) {
    .hero--image { background-image: var(--hero-bg-desktop); }
}
.hero__subtitle {
    color: var(--color-muted-fg);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    animation: fade-in-up .6s ease .14s both;
}
.hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--color-muted-fg);
    margin-bottom: 1.1rem;
    animation: fade-in-up .6s ease both;
}
.hero__title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    animation: fade-in-up .6s ease .08s both;
}
.hero__title span { color: inherit; }
.hero__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .6rem 0;
    margin-bottom: 2rem;
    color: var(--color-muted-fg);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    animation: fade-in-up .6s ease .2s both;
}
.hero__features li { display: flex; align-items: center; }
.hero__features li:not(:last-child)::after { content: '·'; margin: 0 .9rem; color: var(--color-primary); font-size: 1.1rem; }
.hero > .container > .btn { animation: fade-in-up .6s ease .26s both; }

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------- */
/* Secciones genericas                                               */
/* --------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section--muted { background: var(--color-muted-bg); }
.section__header {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1.75rem;
    text-align: center;
}
.section__eyebrow {
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--color-muted-fg);
}
.section__title {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.section__subtitle { color: var(--color-muted-fg); }
.section__header--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

@media (min-width: 768px) {
    .section { padding: 4rem 0; }
}

/* --------------------------------------------------------------- */
/* Grilla de productos y tarjetas                                    */
/* --------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    display: block;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card__image-wrap { position: relative; aspect-ratio: 3 / 4; background: var(--color-muted-bg); overflow: hidden; }
.product-card__image { width: 100%; height: 100%; object-fit: cover; }
.product-card--agotado .product-card__image { opacity: .55; }
.product-card__badges {
    position: absolute;
    top: .55rem;
    left: .55rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    align-items: flex-start;
}

.product-card__quickadd {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-fg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26, 22, 16, .18);
    transition: transform .15s ease, background .15s ease, color .15s ease;
    z-index: 2;
}

.product-card__quickadd:hover { background: var(--color-fg); color: #fff; transform: scale(1.08); }

.product-card__body { padding: .85rem .9rem 1.1rem; }
.product-card__title {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__reviews { font-size: .75rem; color: var(--color-muted-fg); margin-bottom: .4rem; }
.star-rating {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: var(--color-muted-fg);
    margin-bottom: .4rem;
    flex-wrap: wrap;
}
.star-rating__stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: .9rem;
    letter-spacing: 1px;
}
.star-rating__track { color: var(--color-border); }
.star-rating__fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: var(--rating-percent);
    color: #22c55e;
    white-space: nowrap;
}
.star-rating__value { font-weight: 700; color: var(--color-fg); }
.star-rating__count { color: var(--color-muted-fg); }
.product-card__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.product-card__price-current { font-weight: 800; color: var(--color-price); font-size: 1.05rem; }
.product-card__price-old { font-size: .82rem; color: var(--color-muted-fg); text-decoration: line-through; }
.product-card__swatches { display: flex; gap: .35rem; margin-top: .5rem; }
.product-card__swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--color-border);
}

.section__footer { text-align: center; margin-top: 2rem; }

/* --------------------------------------------------------------- */
/* Beneficios (marquee infinito)                                     */
/* --------------------------------------------------------------- */
.benefits {
    overflow: hidden;
    background: var(--color-fg);
    color: #fff;
    padding: 1.1rem 0;
}
.benefits__track {
    display: flex;
    width: max-content;
    animation: benefits-scroll 22s linear infinite;
}
.benefits:hover .benefits__track { animation-play-state: paused; }
@keyframes benefits-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.benefits__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 1.5rem;
}
.benefits__item::before { content: '★'; color: var(--color-primary); }

@media (prefers-reduced-motion: reduce) {
    .benefits__track { animation: none; }
}

/* --------------------------------------------------------------- */
/* Bloque de confianza                                               */
/* --------------------------------------------------------------- */
.trust-panel {
    background: var(--color-muted-bg);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.trust-panel__title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1.15;
}
.trust-panel__items {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item__icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-fg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-item__title { font-weight: 700; font-size: .92rem; margin-bottom: .15rem; }
.trust-item__text { color: var(--color-muted-fg); font-size: .82rem; }

@media (min-width: 768px) {
    .trust-panel { flex-direction: row; align-items: center; padding: 2.25rem 2.5rem; gap: 2.5rem; }
    .trust-panel__title { flex: none; width: 160px; }
    .trust-panel__items { grid-template-columns: repeat(3, 1fr); flex: 1; }
}

/* --------------------------------------------------------------- */
/* Categorias destacadas                                             */
/* --------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}
.category-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-muted-bg);
}
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-tile:hover img { transform: scale(1.06); }
.category-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65) 100%);
}
.category-tile__label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* --------------------------------------------------------------- */
/* Pack Emprendedores                                                */
/* --------------------------------------------------------------- */
.pack-teaser {
    background: linear-gradient(135deg, var(--color-fg), #333);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.pack-teaser .section__eyebrow { color: var(--color-primary); }
.pack-teaser .section__subtitle { color: #d4d4d4; max-width: 480px; margin: 0 auto 1.5rem; }

.pack-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .pack-grid { grid-template-columns: repeat(3, 1fr); }
}
.pack-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pack-card__image { aspect-ratio: 4 / 3; background: var(--color-muted-bg); object-fit: cover; width: 100%; }
.pack-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.pack-card__price { font-size: 1.3rem; font-weight: 800; color: var(--color-price); }
.pack-card__desc { color: var(--color-muted-fg); font-size: .9rem; flex: 1; }

/* --------------------------------------------------------------- */
/* Galeria / testimonios (slider)                                    */
/* --------------------------------------------------------------- */
.gallery-slider { position: relative; }
.gallery-slider__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
}
.gallery-slider__track::-webkit-scrollbar { height: 6px; }
.gallery-slider__track::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.gallery-slider__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 65%;
    max-width: 260px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-muted-bg);
}
.gallery-slider__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slider__controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.gallery-slider__controls button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    font-size: 1.1rem;
}
@media (min-width: 768px) {
    .gallery-slider__item { width: 22%; }
}

/* --------------------------------------------------------------- */
/* WhatsApp flotante                                                 */
/* --------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 45;
}

/* --------------------------------------------------------------- */
/* Footer                                                            */
/* --------------------------------------------------------------- */
.site-footer { background: var(--color-fg); color: #d4d4d4; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer__grid ul { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.site-footer__grid a:hover { color: var(--color-primary); }
.site-footer__bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: .8rem;
    color: #999;
}
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* --------------------------------------------------------------- */
/* Catalogo (productos.php): filtros + grilla                        */
/* --------------------------------------------------------------- */
.catalog-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .catalog-layout { grid-template-columns: 260px 1fr; }
}
.filters {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    align-self: start;
}
.filters h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.filters__group { margin-bottom: 1.25rem; }
.filters__group label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .5rem; }
.filters__price { display: flex; gap: .5rem; }
.filters__price input {
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: .9rem;
}
.pagination a:hover { border-color: var(--color-primary); }
.pagination .is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--color-muted-fg); }

/* --------------------------------------------------------------- */
/* Detalle de producto                                               */
/* --------------------------------------------------------------- */
.product-detail {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .product-detail { grid-template-columns: 1fr 1fr; }
}
.product-gallery__main {
    aspect-ratio: 1 / 1;
    background: var(--color-muted-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: .75rem;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.product-gallery__thumbs img {
    width: 68px; height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
}
.product-gallery__thumbs img.is-active { border-color: var(--color-primary); }

.product-info__badges { display: flex; gap: .5rem; margin-bottom: .75rem; }
.product-info__title { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; }
.product-info__reviews { color: var(--color-muted-fg); margin-bottom: 1rem; }
.product-info__price { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1rem; }
.product-info__price-current { font-size: 2rem; font-weight: 800; color: var(--color-price); }
.product-info__price-old { font-size: 1.1rem; color: var(--color-muted-fg); text-decoration: line-through; }
.product-info__meta { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; font-size: .9rem; color: var(--color-muted-fg); }
.product-info__desc { margin-bottom: 1.5rem; line-height: 1.7; }

.curve-sale-note {
    background: var(--color-muted-bg);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .85rem;
    margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------- */
/* Selector de talles/colores + carrito                              */
/* --------------------------------------------------------------- */
.add-to-cart-form { margin-bottom: 0; }
.variant-group { margin-bottom: 1.1rem; }
.variant-group__label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .5rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-chip {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    font-weight: 600;
    font-size: .85rem;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.variant-chip:hover { border-color: var(--color-fg); }
.variant-chip.is-selected {
    background: var(--color-fg);
    border-color: var(--color-fg);
    color: #fff;
}

.variant-options--swatches { gap: .65rem; }
.variant-swatch {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--color-card);
    box-shadow: 0 0 0 1px var(--color-border);
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}
.variant-swatch:hover { transform: scale(1.08); }
.variant-swatch.is-selected { box-shadow: 0 0 0 2px var(--color-fg); }

.add-to-cart-form__row { margin-bottom: 1rem; }
.add-to-cart-form__error {
    display: none;
    color: var(--color-danger);
    font-size: .85rem;
    margin-bottom: .75rem;
    font-weight: 600;
}
.add-to-cart-form__error.is-visible { display: block; }

/* --------------------------------------------------------------- */
/* Paginas CMS (como comprar / medios de pago / faq)                 */
/* --------------------------------------------------------------- */
.cms-page { max-width: 780px; margin: 0 auto; }
.cms-page h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.cms-page p { color: var(--color-fg); line-height: 1.75; margin-bottom: 1rem; }

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-item__q {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--color-card);
    border: none;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__a {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    color: var(--color-muted-fg);
    transition: max-height .25s ease, padding .25s ease;
}
.faq-item.is-open .faq-item__a { padding: 0 1.25rem 1.1rem; max-height: 400px; }
.faq-item.is-open .faq-item__q { color: var(--color-primary); }

/* --------------------------------------------------------------- */
/* Carrito de compras                                                */
/* --------------------------------------------------------------- */
.cart-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 900px) {
    .cart-layout { grid-template-columns: 1fr 360px; }
}

.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: .85rem;
}
.cart-item__image { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-muted-bg); }
.cart-item--curve { grid-template-columns: 72px 1fr auto; border-left: 3px solid var(--color-primary); }
.cart-item__name { font-weight: 600; font-size: .92rem; margin-bottom: .2rem; }
.cart-item__variant { font-size: .78rem; color: var(--color-muted-fg); margin-bottom: .2rem; }
.cart-item__price { font-size: .85rem; color: var(--color-price); font-weight: 700; }
.cart-item__qty { display: flex; align-items: center; gap: .4rem; }
.cart-item__qty-btn {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-card);
    font-weight: 700;
}
.cart-item__qty-input {
    width: 44px;
    text-align: center;
    padding: .3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--color-muted-fg);
    font-size: 1.1rem;
    cursor: pointer;
}
.cart-item__remove:hover { color: var(--color-danger); }

.cart-summary {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}
.cart-summary__progress {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-danger);
    margin-bottom: 1rem;
}
.cart-summary__progress.is-ready { color: var(--color-success); }
.cart-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-summary__total strong { font-size: 1.4rem; color: var(--color-price); }

@media (max-width: 480px) {
    .cart-item { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; }
    .cart-item__qty { grid-column: 2; }
    .cart-item__remove { grid-column: 2; justify-self: end; margin-top: -2rem; }
}

/* --------------------------------------------------------------- */
/* 404                                                                */
/* --------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 5rem 1rem;
}
.error-page__code { font-size: 5rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.error-page__text { color: var(--color-muted-fg); margin-bottom: 2rem; }

/* --------------------------------------------------------------- */
/* Formularios genericos (reutilizado tambien por el admin)          */
/* --------------------------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-control {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-fg);
}
.form-control:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-hint { font-size: .8rem; color: var(--color-muted-fg); margin-top: .3rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.form-check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }

/* --------------------------------------------------------------- */
/* Alertas / mensajes flash                                          */
/* --------------------------------------------------------------- */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-weight: 500;
}
.alert--success { background: #dcfce7; color: #166534; }
.alert--error { background: #fee2e2; color: #991b1b; }

/* --------------------------------------------------------------- */
/* Animaciones: scroll-reveal + microinteracciones                   */
/* --------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px) scale(.99);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Fundido suave para imagenes de carga diferida (si JS no corre, quedan visibles normalmente) */
img[loading="lazy"] { transition: opacity .4s ease; }
img[loading="lazy"].is-loading { opacity: 0; background: var(--color-muted-bg); }

/* Entrada escalonada de las tarjetas dentro de una seccion ya revelada */
.reveal .product-grid > *, .reveal .category-grid > * { opacity: 0; }
.reveal.is-visible .product-grid > *, .reveal.is-visible .category-grid > * {
    animation: item-fade-in .6s cubic-bezier(.16, 1, .3, 1) both;
}
.reveal.is-visible .product-grid > *:nth-child(1), .reveal.is-visible .category-grid > *:nth-child(1) { animation-delay: .05s; }
.reveal.is-visible .product-grid > *:nth-child(2), .reveal.is-visible .category-grid > *:nth-child(2) { animation-delay: .1s; }
.reveal.is-visible .product-grid > *:nth-child(3), .reveal.is-visible .category-grid > *:nth-child(3) { animation-delay: .15s; }
.reveal.is-visible .product-grid > *:nth-child(4), .reveal.is-visible .category-grid > *:nth-child(4) { animation-delay: .2s; }
.reveal.is-visible .product-grid > *:nth-child(n+5) { animation-delay: .25s; }

@keyframes item-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes item-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card__image-wrap { }
.product-card__image { transition: transform .4s ease; }
.product-card:hover .product-card__image { transform: scale(1.06); }

.pack-card, .trust-item__icon { transition: transform .25s ease, box-shadow .25s ease; }
.pack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.trust-item:hover .trust-item__icon { transform: scale(1.1) rotate(-4deg); }

.whatsapp-float { animation: pulse-soft 2.6s ease-in-out infinite; }
.whatsapp-float:hover { animation-play-state: paused; }
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5), var(--shadow-hover); }
    50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), var(--shadow-hover); }
}

.gallery-slider__item { transition: transform .3s ease; }
.gallery-slider__item:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
    .hero__eyebrow, .hero__title, .hero__subtitle, .hero__features, .hero > .container > .btn,
    .whatsapp-float { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .reveal .product-grid > *, .reveal .category-grid > *,
    .reveal.is-visible .product-grid > *, .reveal.is-visible .category-grid > * {
        opacity: 1; animation: none;
    }
    .product-card__image, .pack-card, .trust-item__icon, .gallery-slider__item { transition: none; }
}

/* --------------------------------------------------------------- */
/* Modal de agregar rapido (talle/color desde la tarjeta)             */
/* --------------------------------------------------------------- */
.quickadd-modal[hidden] { display: none; }
.quickadd-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.quickadd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 16, .5);
}
.quickadd-modal__panel {
    position: relative;
    background: var(--color-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    animation: quickadd-slide-up .3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes quickadd-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.quickadd-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center;
}
.quickadd-modal__product {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}
.quickadd-modal__product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-muted-bg);
    flex: none;
}
.quickadd-modal__name { font-weight: 700; margin-bottom: .2rem; }
.quickadd-modal__price { color: var(--color-price); font-weight: 700; }

body.modal-open { overflow: hidden; }

@media (min-width: 640px) {
    .quickadd-modal { align-items: center; }
    .quickadd-modal__panel { border-radius: var(--radius-lg); }
}


/* --------------------------------------------------------------- */
/* Utilidades                                                        */
/* --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
