/* ── Variables — Paleta corporativa Delirios ── */
:root {
    --lavanda:       #A78BB4;
    --lavanda-dark:  #7C5E8A;
    --lavanda-light: #E8D8F0;
    --lavanda-xlight:#F6F0FA;
    --verde:         #4A6741;
    --verde-light:   #6D9164;
    --verde-xlight:  #EBF3E8;
    --crema:         #FDF6EE;
    --crema-dark:    #F3E8D8;
    --gris:          #2C2C2C;
    --gris-light:    #6B6B6B;
    --blanco:        #FFFFFF;
    --rosa-accent:   #D4799A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--crema);
    color: var(--gris);
    min-height: 100vh;
}


/* ── HERO CATEGORÍA ── */
.cat-hero {
    background: linear-gradient(135deg, var(--lavanda-light) 0%, var(--crema) 50%, var(--crema-dark) 100%);
    padding: 56px 40px 48px;
    position: relative;
    overflow: hidden;
}
.cat-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(167,139,180,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cat-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(74,103,65,.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cat-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
}
.cat-hero-text { flex: 1; }
.cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(167,139,180,.14);
    color: var(--lavanda-dark);
    border: 1px solid var(--lavanda);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.cat-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--lavanda-dark);
    line-height: 1.1;
    margin-bottom: 14px;
}
.cat-hero h1 em { font-style: italic; color: var(--verde); }
.cat-hero p {
    color: var(--gris-light);
    font-size: .98rem;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 28px;
}
.cat-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.cat-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 8px 18px;
    border: 1px solid rgba(167,139,180,.2);
}
.cat-stat i { color: var(--lavanda-dark); font-size: 1rem; }
.cat-stat span { font-size: .82rem; font-weight: 600; color: var(--gris); }

/* ── IMAGEN DECORATIVA HERO ── */
.cat-hero-visual {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 280px;
}
.cat-mini-img {
    border-radius: 14px;
    overflow: hidden;
    height: 110px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 24px rgba(44,26,26,.14);
    transition: transform .3s;
}
.cat-mini-img:first-child {
    grid-column: 1 / -1;
    height: 150px;
}
.cat-mini-img:hover { transform: scale(1.03); }

/* ── BARRA DE FILTROS ── */
.filters-bar {
    background: var(--blanco);
    border-bottom: 1px solid rgba(167,139,180,.1);
    padding: 16px 40px;
    position: sticky;
    top: 68px;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.filters-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--gris-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.fpill {
    border: 1.5px solid rgba(167,139,180,.25);
    background: transparent;
    color: var(--gris);
    font-family: 'Nunito', sans-serif;
    font-size: .83rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .2s;
}
.fpill:hover { border-color: var(--lavanda); color: var(--lavanda-dark); }
.fpill.active {
    background: var(--lavanda-dark);
    border-color: var(--lavanda-dark);
    color: #fff;
}
.filter-sep { width: 1px; height: 28px; background: rgba(167,139,180,.2); margin: 0 4px; }
.sort-select {
    border: 1.5px solid rgba(167,139,180,.25);
    background: transparent;
    color: var(--gris);
    font-family: 'Nunito', sans-serif;
    font-size: .83rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6B6B'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.results-count {
    margin-left: auto;
    font-size: .83rem;
    color: var(--gris-light);
    white-space: nowrap;
}
.results-count strong { color: var(--lavanda-dark); }

/* ── GRID DE PRODUCTOS ── */
.catalog-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 40px 60px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 24px;
}

/* ── TARJETA DE PRODUCTO ── */
.product-card {
    background: var(--blanco);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(167,139,180,.1);
    transition: transform .35s cubic-bezier(.165,.84,.44,1), box-shadow .35s;
    position: relative;
    box-shadow: 0 4px 18px rgba(44,26,26,.05);
    animation: cardIn .5s both;
    display: flex;
    flex-direction: column;
}
/* Stretched link — whole card clickable */
.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 22px;
}
.product-card .btn-wish,
.product-card .vpill,
.product-card .btn-wa,
.product-card .btn-detail,
.product-card .otag {
    position: relative;
    z-index: 2;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1)  { animation-delay: .05s }
.product-card:nth-child(2)  { animation-delay: .1s  }
.product-card:nth-child(3)  { animation-delay: .15s }
.product-card:nth-child(4)  { animation-delay: .2s  }
.product-card:nth-child(5)  { animation-delay: .25s }
.product-card:nth-child(6)  { animation-delay: .3s  }
.product-card:nth-child(7)  { animation-delay: .35s }
.product-card:nth-child(8)  { animation-delay: .4s  }
.product-card:nth-child(9)  { animation-delay: .45s }
.product-card:nth-child(10) { animation-delay: .5s  }
.product-card:nth-child(11) { animation-delay: .55s }

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(124,94,138,.16);
    border-color: rgba(167,139,180,.25);
}

/* imagen */
.product-img-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--lavanda-xlight);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

/* placeholder ilustrado cuando no hay foto */
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lavanda-light) 0%, var(--crema-dark) 100%);
    color: var(--lavanda-dark);
    gap: 8px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
}
.product-card:hover .product-img-placeholder { transform: scale(1.03); }
.product-img-placeholder .ph-icon {
    font-size: 3.5rem;
    animation: floatIcon 4s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(124,94,138,.2));
}
@keyframes floatIcon {
    0%,100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-8px) rotate(4deg); }
}

/* badges */
.badge-stack {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 50px;
    display: inline-block;
    line-height: 1.4;
}
.badge-popular   { background: var(--lavanda-dark); color: #fff; }
.badge-nuevo     { background: var(--verde);        color: #fff; }
.badge-promo     { background: #e05a7a;             color: #fff; }
.badge-con-choco { background: #c0892b;             color: #fff; }

/* wishlist btn */
.btn-wish {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
    font-size: 1rem;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.btn-wish:hover { color: #e05a7a; transform: scale(1.1); }
.btn-wish.active { color: #e05a7a; }

/* chip tipo flor */
.flower-chip {
    position: absolute;
    bottom: 12px; left: 12px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    padding: 4px 11px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--verde);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* cuerpo */
.product-body {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-sku {
    font-size: .72rem;
    color: #bbb;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.product-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lavanda-dark);
    margin-bottom: 8px;
    line-height: 1.25;
}
.product-body p {
    font-size: .84rem;
    color: var(--gris-light);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* tags de ocasiones */
.occasion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}
.otag {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--lavanda-xlight);
    color: var(--lavanda-dark);
    border: 1px solid rgba(167,139,180,.2);
    text-decoration: none;
    transition: background .2s, color .2s;
}
a.otag:hover {
    background: var(--lavanda-dark);
    color: #fff;
}

/* variaciones / precios */
.variations-wrap { margin-bottom: 16px; }
.var-label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--gris-light);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 7px;
}
.var-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.vpill {
    border: 1.5px solid rgba(167,139,180,.3);
    background: transparent;
    color: var(--gris);
    font-family: 'Nunito', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}
.vpill:hover { border-color: var(--lavanda); color: var(--lavanda-dark); }
.vpill.selected {
    background: var(--lavanda-dark);
    border-color: var(--lavanda-dark);
    color: #fff;
}
.vpill .vp-price { font-size: .7rem; font-weight: 600; opacity: .85; }

/* precio destacado */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
}
.price-from { font-size: .78rem; color: var(--gris-light); }
.price-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--verde);
    line-height: 1;
}
.price-currency { font-size: .78rem; color: var(--gris-light); font-weight: 600; }
.price-delivery {
    font-size: .74rem;
    color: var(--gris-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}
.price-delivery i { color: var(--verde-light); }

/* CTA botones */
.card-ctas { display: flex; gap: 8px; }
.btn-wa {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--lavanda-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: .84rem;
    font-weight: 700;
    transition: all .2s;
    border: none;
    cursor: pointer;
}
.btn-wa:hover { background: var(--lavanda); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(124,94,138,.3); }
.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: var(--lavanda-dark);
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 14px;
    font-size: .84rem;
    font-weight: 700;
    border: 1.5px solid rgba(167,139,180,.3);
    transition: all .2s;
    cursor: pointer;
}
.btn-detail:hover { border-color: var(--lavanda-dark); background: var(--lavanda-xlight); }

/* ── MODAL DE PRODUCTO ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44,26,26,.55);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 40px 120px rgba(44,26,26,.25);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: var(--lavanda-xlight);
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--lavanda-dark);
    font-size: 1.1rem;
    transition: all .2s;
}
.modal-close:hover { background: var(--lavanda-dark); color: #fff; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.modal-img {
    border-radius: 20px;
    background: linear-gradient(135deg, var(--lavanda-light), var(--crema-dark));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}
.modal-sku { font-size: .74rem; color: #bbb; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.modal-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--lavanda-dark);
    line-height: 1.15;
    margin-bottom: 12px;
}
.modal-desc { font-size: .92rem; color: var(--gris-light); line-height: 1.7; margin-bottom: 20px; }
.modal-price { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--verde); margin-bottom: 6px; }
.modal-delivery { font-size: .82rem; color: var(--gris-light); margin-bottom: 20px; display: flex; align-items: center; gap: 5px; }
.modal-delivery i { color: var(--verde-light); }
.modal-sep { height: 1px; background: rgba(167,139,180,.15); margin: 20px 0; }
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-tag-type { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gris-light); margin-bottom: 8px; }
.modal-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--lavanda-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: .95rem;
    font-weight: 700;
    width: 100%;
    transition: all .2s;
    border: none;
    cursor: pointer;
}
.modal-btn-wa:hover { background: var(--lavanda); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,94,138,.3); }

/* ── BANNER CTA ── */
.cta-banner {
    background: linear-gradient(135deg, var(--lavanda-dark) 0%, var(--verde) 100%);
    padding: 52px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '🌸 🌹 🌷 🌸 🌼 🌹 🌷 🌸 🌸 🌹 🌷 🌸';
    position: absolute;
    top: 10px; left: 0; right: 0;
    font-size: 1.2rem;
    letter-spacing: 6vw;
    opacity: .08;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}
.cta-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.cta-banner p { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 28px; max-width: 500px; margin-inline: auto; }
.cta-banner .btn-wa-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--lavanda-dark);
    text-decoration: none;
    border-radius: 50px;
    padding: 13px 30px;
    font-size: .95rem;
    font-weight: 800;
    transition: all .2s;
}
.cta-banner .btn-wa-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ── FOOTER ── */
footer {
    background: var(--gris);
    color: rgba(255,255,255,.7);
    padding: 36px 40px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--lavanda-light); }
.footer-copy { font-size: .8rem; }

/* ── WA FLOAT ── */
.wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37,211,102,.4);
    z-index: 200;
    transition: transform .3s, box-shadow .3s;
}
.wa-float::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: waPulse 2.2s ease-out infinite;
    z-index: -1;
}
@keyframes waPulse { 0%{ transform: scale(1); opacity: .5; } 100%{ transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.12) translateY(-3px); color: #fff; box-shadow: 0 12px 32px rgba(37,211,102,.55); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    header, .cat-hero, .filters-bar, .catalog-wrap, .cta-banner, footer { padding-left: 20px; padding-right: 20px; }
    .breadcrumb-bar { padding-left: 20px; padding-right: 20px; }
    .cat-hero-visual { display: none; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-img { min-height: 200px; }
    nav { display: none; }
}
@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .filter-pills { display: none; }
    .product-img-wrap { height: 200px; }
    .product-body { padding: 14px 14px 16px; }
    .product-body h3 { font-size: 1rem; }
    .product-body p { font-size: .78rem; -webkit-line-clamp: 2; margin-bottom: 10px; }
    .occasion-tags { margin-bottom: 10px; }
    .otag { font-size: .66rem; padding: 2px 7px; }
    .variations-wrap { margin-bottom: 10px; }
    .var-label { font-size: .7rem; margin-bottom: 5px; }
    .vpill { font-size: .7rem; padding: 4px 8px; }
    .vpill .vp-price { font-size: .64rem; }
    .price-main { font-size: 1.25rem; }
    .price-from, .price-currency { font-size: .7rem; }
    .price-delivery { font-size: .68rem; margin-bottom: 10px; }
    .card-ctas { flex-direction: column; gap: 6px; }
    .btn-wa, .btn-detail { padding: 8px 12px; font-size: .78rem; }
}
