/* Identidad Dream Decor: títulos 700, textos secundarios 500. */
:root {
    --header-height: 96px;
    --fuchsia: #FF2D8F;
    --pink: #FFC1E0;
    --lilac: #B89AE7;
    --blue: #B7E2FF;
    --yellow: #FFE57A;
    --paper: #fffafd;
    --ink: #35223e;
    --muted: #604768;
    --accent: #a80b55;
    --line: #e9cfdf;
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); scrollbar-gutter: stable; }
/* Con un modal abierto el fondo queda quieto: no se desplaza y no se recorre al ocultarse la barra. */
html:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.6 var(--font-body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1200px, 90%); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 16px; background: white; z-index: 30; }.skip-link:focus { top: 16px; }
.header { position: sticky; top: 0; z-index: 20; width: 100%; padding-inline: max(5%, calc((100% - 1200px) / 2)); background: var(--paper); box-shadow: 0 1px 0 var(--line); min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; white-space: nowrap; }
.brand-logo { display: block; width: 264px; max-width: 100%; height: auto; }
.footer-brand .brand { max-width: 100%; }
.header nav { display: flex; gap: 32px; }@media (hover: hover) and (pointer: fine) { .header nav a:hover { color: var(--accent); } }
.menu-toggle, .filters-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; background: transparent; padding: 8px 16px; color: var(--ink); }.menu-toggle[hidden], .filters-toggle[hidden] { display: none; }@media (hover: hover) and (pointer: fine) { .menu-toggle:hover, .filters-toggle:hover { border-color: var(--accent); color: var(--accent); } }
.menu-toggle-icon { display: inline-grid; gap: 4px; }.menu-toggle-icon span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.15; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.carousel { width: 100%; }.slides { overflow: hidden; }
.carousel .hero-copy { width: min(1200px, 90%); margin-inline: auto; padding: 48px 0; }
/* Referencia: banner de aproximadamente 1720 × 700 px. */
.slide { position: relative; width: 100%; aspect-ratio: 86 / 35; min-height: 360px; display: flex; align-items: center; isolation: isolate; }
.hero-copy { position: relative; z-index: 1; padding: 64px; }.hero-copy h1, .hero-copy h2 { font-size: clamp(36px, 5vw, 64px); max-width: 650px; margin: 24px 0; }.hero-copy > p:not(.eyebrow) { max-width: 480px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide:has(.hero-image)::after, .fixed-hero:has(.hero-image)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,250,253,.96), rgba(255,250,253,.65) 60%, rgba(255,250,253,.1)); z-index: -1; }
.button { display: inline-flex; align-items: center; gap: 32px; background: var(--fuchsia); color: white; padding: 16px 24px; border-radius: 4px; margin-top: 16px; font-size: 14px; }@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--accent); color: white; } }
.section { padding-block: 64px; }.section-heading { margin-bottom: 32px; }.section-heading h2 { font-size: clamp(30px, 3vw, 40px); margin: 16px 0; }.section-heading > p:last-child { color: var(--muted); }
.cards { display: grid; gap: 32px 24px; }.product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }.product-grid .image-card { grid-column: span 2; }.product-grid .image-card:nth-child(-n+2) { grid-column: span 3; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; display: grid; place-items: center; }.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }@media (hover: hover) and (pointer: fine) { .image-card:hover img { transform: scale(1.03); } }.image-placeholder { font: 700 24px var(--font-title); color: var(--ink); padding: 24px; text-align: center; }.card-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }.card-caption h3 { font-size: 24px; margin: 0; }@media (hover: hover) and (pointer: fine) { .image-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; } }
.tone-1 { background: var(--pink); }.tone-2 { background: var(--lilac); }.tone-3 { background: var(--blue); }.tone-4 { background: var(--yellow); }.tone-5 { background: var(--pink); }.tone-6 { background: var(--blue); }.tone-7 { background: var(--yellow); }
.fixed-hero { position: relative; isolation: isolate; background: var(--lilac); min-height: 360px; display: flex; align-items: center; }.fixed-hero .hero-copy { padding: 64px 0; }
.footer { background: #F7F7F9; border-top: 1px solid #E8E8ED; padding-top: 64px; }.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; }.footer-brand p { max-width: 360px; color: var(--muted); margin-top: 24px; }.footer-contact { color: var(--muted); font-style: normal; }.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }.footer-title { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }@media (hover: hover) and (pointer: fine) { .footer-column a:hover { text-decoration: underline; } }.copyright { border-top: 1px solid var(--accent); margin-top: 48px; padding-block: 24px; font-size: 12px; color: var(--muted); }
.category h1 { font-size: 48px; }
@media (max-width: 900px) { .hero-copy { padding: 48px 32px; }.footer-grid { gap: 32px; } }
@media (max-width: 700px) {
.slide { aspect-ratio: auto; min-height: 400px; }
.header { flex-wrap: wrap; padding-block: 24px; }.header nav { width: 100%; }
.hero-copy { padding: 32px 24px; }.section { padding-block: 48px; }.product-grid { gap: 24px 16px; }.card-caption h3 { font-size: 20px; }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; }.product-grid .image-card, .product-grid .image-card:nth-child(-n+2) { grid-column: auto; }.brand-logo { width: 200px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.card-media img { transition: none; } }

/* Desplegables del navbar: funcionan también sin JavaScript. */
.nav-group { position: relative; }
.nav-group-row { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.nav-group-link { display: flex; align-items: center; min-height: 44px; }
.nav-group.is-open .nav-group-link { color: var(--accent); } @media (hover: hover) and (pointer: fine) { .nav-group-link:hover { color: var(--accent); } }
.nav-group-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: inherit; border-radius: 6px; }
.nav-group-toggle span { transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav-group-toggle:hover { color: var(--accent); background: var(--pink); } }
.nav-group.is-open .nav-group-toggle span { transform: rotate(180deg); }
/* Sin JavaScript: el listado de categorías aparece al pasar el cursor o enfocar la sección. */
html:not(.js-enabled) .dropdown-links { display: none; }
html:not(.js-enabled) .nav-group:focus-within .dropdown-links { display: block; } @media (hover: hover) and (pointer: fine) { html:not(.js-enabled) .nav-group:hover .dropdown-links { display: block; } }
.dropdown-links { position: absolute; top: 100%; right: 0; min-width: 240px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #35223e1a; max-height: min(70svh, 480px); overflow-y: auto; }
.dropdown-links a { display: block; padding: 6px 12px; font-size: 14px; line-height: 1.4; border-radius: 4px; }
.dropdown-links a:focus-visible { background: var(--pink); } @media (hover: hover) and (pointer: fine) { .dropdown-links a:hover { background: var(--pink); } }
@media (max-width: 700px) {
    .header #navigation { flex-direction: column; gap: 8px; max-height: 65svh; overflow-y: auto; }
    .dropdown-links { position: static; min-width: 0; box-shadow: none; margin-block: 8px; max-height: none; }
}

/* Menú lateral: con JavaScript el menú siempre se abre como barra lateral desde la derecha (sin JS queda la barra normal). */
.nav-close, .nav-overlay { display: none; }
.js-enabled .nav-close { display: flex; align-items: center; justify-content: center; align-self: flex-end; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .js-enabled .nav-close:hover { border-color: var(--accent); color: var(--accent); } }
.js-enabled .nav-overlay { display: block; position: fixed; inset: 0; z-index: 30; background: #35223e73; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.js-enabled .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.js-enabled .header #navigation { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(360px, 88vw); height: 100dvh; max-height: none; display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 32px; background: var(--paper); box-shadow: -12px 0 32px #35223e26; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.js-enabled .header #navigation.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.js-enabled .nav-group-toggle { display: inline-flex; }
.js-enabled .nav-group-row { justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 18px; }
.js-enabled .nav-group-link { flex: 1; }
.js-enabled .dropdown-links { display: none; }
.js-enabled .nav-group.is-open .dropdown-links { display: block; }
.js-enabled .dropdown-links { position: static; min-width: 0; padding: 4px 0 8px 12px; background: transparent; border: 0; box-shadow: none; max-height: none; overflow: visible; }
.js-enabled .dropdown-links a { padding: 10px 12px; font-size: 15px; }
.js-enabled .account-nav-link { margin-top: 8px; font-size: 18px; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .js-enabled .header #navigation, .js-enabled .nav-overlay { transition: none; } }

/* Panel lateral de categorías y filtros (Combos, Festejos, Productos): se abre desde la izquierda. Sin JavaScript queda en línea. */
.filters-toggle { background: white; }
.drawer-close { display: none; }
.filters-overlay { display: none; }
.filters-panel { display: grid; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.filters-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filters-panel h2 { margin: 0; font-size: 22px; }
.filters-section { display: grid; gap: 16px; }
.filters-section h3 { margin: 0; font: 500 12px var(--font-body); text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.filters-category-nav { display: flex; flex-direction: column; gap: 2px; }
.filters-category-link { padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .filters-category-link:hover { background: var(--pink); } }
.filters-category-link.is-active { background: var(--accent); color: white; }
.filters-panel .filter-field select, .filters-panel .filter-field input:not([type=range]) { width: 100%; min-width: 0; }
.filters-panel .price-filter { min-width: 0; }
.filters-apply { display: none; }
.js-enabled .drawer-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .js-enabled .drawer-close:hover { border-color: var(--accent); color: var(--accent); } }
.js-enabled .filters-overlay { display: block; position: fixed; inset: 0; z-index: 60; background: #35223e73; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.js-enabled .filters-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.js-enabled .filters-panel { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(360px, 90vw); height: 100dvh; align-content: start; gap: 28px; padding: 16px 24px 32px; border: 0; border-radius: 0; box-shadow: 12px 0 32px #35223e26; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.js-enabled .filters-panel.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.js-enabled .filters-apply { display: inline-flex; justify-content: center; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .js-enabled .filters-panel, .js-enabled .filters-overlay { transition: none; } }

/* Carrusel de Combos + Festejos + Fechas especiales: lo mueve la persona (deslizando con el dedo o con las flechas). */
.combo-carousel { position: relative; --carousel-gutter: max(5vw, calc((100vw - 1200px) / 2)); }
.combo-viewport { overflow-x: auto; padding-block: 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--carousel-gutter); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.combo-viewport::-webkit-scrollbar { display: none; }
.combo-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 24px; width: max-content; padding-inline: var(--carousel-gutter); }
.combo-track > .image-card { scroll-snap-align: start; }
.combo-track .image-card { max-width: none; }
.combo-track button.image-card { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; text-align: inherit; cursor: pointer; display: block; width: 100%; }
.combo-track .card-media { aspect-ratio: 1 / 1; border: 2px solid var(--lilac); border-radius: 0; }
.combo-track .card-media img { object-fit: contain; }
.combo-track .card-caption { justify-content: center; text-align: center; padding-top: 16px; }
.combo-track .card-caption h3 { font: 500 14px/1.4 var(--font-body); }
.combo-track .card-caption > span { display: none; }
.combo-track .image-placeholder { font-size: 18px; padding: 12px; }
/* Flechas: solo en pantallas con mouse; en táctiles se desliza con el dedo. */
.carousel-arrow { display: none; position: absolute; top: calc(8px + min(170px, 12vw)); transform: translateY(-50%); z-index: 2; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 6px 18px #35223e26; transition: opacity .15s ease, background .15s ease; }
@media (hover: hover) and (pointer: fine) { .carousel-arrow:hover:not(:disabled) { background: var(--fuchsia); border-color: var(--fuchsia); color: white; } }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: max(12px, calc(var(--carousel-gutter) - 24px)); }
.carousel-next { right: max(12px, calc(var(--carousel-gutter) - 24px)); }
@media (hover: hover) and (pointer: fine) { .js-enabled .carousel-arrow { display: inline-flex; } }
@media (max-width: 900px) {
    .combo-track { grid-auto-columns: 220px; }
}
@media (prefers-reduced-motion: reduce) { .combo-viewport { scroll-behavior: auto; } }

/* Mosaico de cinco banners: dos grandes arriba y tres abajo. */
.product-grid { gap: 24px; }
.product-grid .image-card { position: relative; overflow: hidden; isolation: isolate; }
.product-grid .card-media { aspect-ratio: 3 / 1; border-radius: 0; }
.product-grid .card-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; padding: 24px; text-align: right; pointer-events: none; }
.product-grid .image-card:nth-child(-n+2) .card-caption { align-items: center; text-align: center; }
.product-grid .card-caption .eyebrow { margin: 0; font-size: 12px; }
.product-grid .card-caption h3 { font-size: clamp(20px, 2.2vw, 32px); text-transform: uppercase; overflow-wrap: anywhere; }
.product-grid .image-card:nth-child(-n+2) h3 { font-size: clamp(28px, 3.4vw, 48px); }
.product-grid .has-image .card-caption { color: white; background: linear-gradient(90deg, #00000015, #00000080); text-shadow: 0 2px 8px #00000080; }
.product-grid .has-image:nth-child(-n+2) .card-caption { background: #00000050; }
@media (max-width: 700px) {
    .product-grid { gap: 16px; }
    .product-grid .card-caption { padding: 12px; }
    .product-grid .card-caption h3 { font-size: 16px; }
    .product-grid .image-card:nth-child(-n+2) h3 { font-size: 22px; }
    .product-grid .card-media { aspect-ratio: 2 / 1; }
}
@media (max-width: 480px) {
    .product-grid .card-media { aspect-ratio: 5 / 2; }
    .product-grid .card-caption h3, .product-grid .image-card:nth-child(-n+2) h3 { font-size: 28px; }
}

.account-nav-link { display: flex; align-items: center; min-height: 44px; color: var(--accent); }

/* Modal de categoría (homepage): se abre desde una card del carrusel de combos. */
.category-modal { position: fixed; border: none; border-radius: 12px; padding: 32px; max-width: min(720px, 92vw); width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(53, 34, 62, .2); }
.category-modal::backdrop { background: rgba(53, 34, 62, .55); }
.category-modal h3 { margin: 0 0 20px; font-family: var(--font-title); font-size: 22px; }
.category-modal .modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; }
.category-modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.category-modal-item { display: block; color: inherit; text-decoration: none; }
.category-modal-media { aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--pink); }
.category-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.category-modal-item p { margin: 8px 0 0; font-size: 14px; }
.category-modal-price { font-weight: 700; }
.category-modal-empty { color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 480px) {
    .category-modal { padding: 24px 16px; }
    .category-modal-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
