.product-page { overflow: clip; background: linear-gradient(180deg, #fdfbfc, #f5ecf7 38%, #fff); }
.product-hero { min-height: 630px; display: flex; align-items: end; padding: calc(var(--header-height) + 70px) 0 78px; color: #fff; background: linear-gradient(135deg, #1d1025 0%, #50245f 58%, #9e69ae); }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 50px; align-items: end; }
.product-hero h1 { max-width: 850px; color: #fff; font-size: clamp(4rem, 8vw, 7.2rem); line-height: .9; }
.product-hero p:not(.eyebrow) { max-width: 760px; color: rgba(255,255,255,.82); }
.product-from-price { width: fit-content; display: grid; gap: 3px; margin-top: 25px; padding: 15px 20px; border: 1px solid rgba(255,255,255,.34); border-radius: 20px; background: rgba(255,255,255,.13); box-shadow: inset 0 1px rgba(255,255,255,.24), 0 16px 34px rgba(20,7,25,.18); backdrop-filter: blur(15px); }
.product-from-price span { font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-from-price strong { color: #fff; font-family: "Cormorant Garamond", serif; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1; }
.product-from-price small { max-width: 410px; color: rgba(255,255,255,.72); font-size: .62rem; }
.product-hero__icon { width: 140px; height: 140px; padding: 20px; border: 1px solid rgba(255,255,255,.42); border-radius: 36px; object-fit: contain; background: rgba(255,255,255,.9); box-shadow: 0 24px 60px rgba(20,7,25,.28); }
.product-gallery-shell { position: relative; padding-bottom: 38px; }
.product-gallery { display: grid; grid-template-columns: 1.4fr .7fr .7fr; grid-auto-rows: 240px; gap: 16px; margin-top: -34px; }
.product-gallery__item { overflow: hidden; margin: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: #291333; box-shadow: var(--shadow-lg); }
.product-gallery__item:nth-child(n+4) { display: none; }
.product-gallery.is-expanded .product-gallery__item { display: block; }
.product-gallery.is-compact { grid-template-columns: 1.35fr 1fr; grid-auto-rows: 360px; }
.product-gallery.is-compact .product-gallery__item--featured { grid-row: auto; }
.product-gallery__item--featured { grid-row: span 2; }
.product-gallery__item button { position: relative; width: 100%; height: 100%; display: block; overflow: hidden; padding: 0; border: 0; color: #fff; background: transparent; cursor: zoom-in; }
.product-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.product-gallery__item:hover img { transform: scale(1.035); }
.product-gallery__item button span { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; opacity: 0; color: #fff; background: rgba(29,16,37,.65); font-size: .65rem; font-weight: 700; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; backdrop-filter: blur(10px); }
.product-gallery__item button:hover span, .product-gallery__item button:focus-visible span { opacity: 1; transform: translateY(0); }
.product-gallery-toggle { margin: 22px auto 0; }
.product-gallery-toggle.is-mobile-only { display: none; }
.product-lightbox { position: fixed; z-index: 12000; inset: 0; display: grid; place-items: center; padding: 18px; }
.product-lightbox[hidden] { display: none; }
.product-lightbox__backdrop { position: absolute; inset: 0; background: rgba(16,7,20,.88); backdrop-filter: blur(13px); }
.product-lightbox__panel { position: relative; z-index: 1; width: min(1280px, calc(100vw - 34px)); height: min(88vh, 860px); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 16px; align-items: center; outline: 0; }
.product-lightbox figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; margin: 0; }
.product-lightbox figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 24px; background: rgba(41,19,51,.55); box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.product-lightbox figcaption { color: rgba(255,255,255,.82); text-align: center; font-size: .75rem; }
.product-lightbox__close, .product-lightbox__arrow { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; font-size: 2rem; backdrop-filter: blur(12px); transition: transform .25s ease, background .25s ease; }
.product-lightbox__close:hover, .product-lightbox__arrow:hover { background: rgba(255,255,255,.24); transform: scale(1.07); }
.product-lightbox__close { position: absolute; z-index: 2; top: 0; right: 0; }
.product-lightbox__arrow { justify-self: center; padding: 0; font-size: 0; line-height: 1; }
.product-lightbox__arrow::before { display: block; font-family: Arial, sans-serif; font-size: 2.15rem; line-height: 1; transform: translateY(-2px); }
.product-lightbox__arrow--prev::before { content: "‹"; }
.product-lightbox__arrow--next::before { content: "›"; }
.product-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 50px; align-items: start; }
.product-details h2 { max-width: 730px; }
.product-features { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.product-features li { position: relative; padding: 16px 18px 16px 50px; border: 1px solid var(--purple-100); border-radius: 18px; color: var(--purple-800); background: rgba(255,255,255,.82); }
.product-features li::before { content: "✓"; position: absolute; left: 17px; top: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--purple-600); font-weight: 800; }
.product-note { padding: 28px; border: 1px solid var(--purple-200); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(237,225,240,.9)); box-shadow: var(--shadow-sm); }
.product-note p { color: var(--muted); }
.service-configurator { position: relative; background: linear-gradient(135deg, #291333, #50245f 58%, #824996); }
.service-configurator::before { content: ""; position: absolute; inset: 0; opacity: .16; background: url('../imgs/fondo-lavanda.webp') center / cover; }
.service-configurator > .container { position: relative; }
.service-configurator .section-heading h2, .service-configurator .section-heading > p { color: #fff; }
.configurator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .72fr); gap: 28px; align-items: start; }
.configurator-form, .quote-card { padding: clamp(26px, 4vw, 46px); border: 1px solid rgba(255,255,255,.28); border-radius: 34px; background: rgba(255,255,255,.92); box-shadow: 0 30px 70px rgba(20,7,25,.3); backdrop-filter: blur(18px); }
.configurator-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.configurator-steps .field--wide { grid-column: 1 / -1; }
.configurator-steps [hidden] { display: none; }
.quote-card { position: sticky; top: calc(var(--header-height) + 20px); }
.quote-card h3 { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; }
.quote-selection { min-height: 42px; color: var(--muted); font-size: .78rem; }
.quote-lines { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--purple-100); }
.quote-line { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--purple-100); }
.quote-line span { color: var(--muted); font-size: .75rem; }
.quote-line strong { color: var(--purple-800); text-align: right; }
.quote-line--total strong { font-size: 1.35rem; }
.quote-card .button { width: 100%; margin-top: 10px; }
.quote-status { margin-top: 16px; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.purchase-warning-panel { width: min(780px, calc(100vw - 30px)); }
.purchase-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.purchase-path { padding: 24px; border: 1px solid var(--purple-100); border-radius: 22px; background: var(--purple-50); }
.purchase-path h3 { font-size: 1.7rem; }
.purchase-path p { color: var(--muted); font-size: .75rem; }
.purchase-docs { padding: 18px 20px; border-left: 4px solid #b9892d; border-radius: 12px; background: #fff9e9; }
.config-error { padding: 30px; color: #7b3440; background: #fff5f7; }

@media (max-width: 920px) {
  .product-details, .configurator-grid { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .product-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .product-gallery.is-compact { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .product-gallery__item--featured { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
}
@media (max-width: 680px) {
  .product-hero { min-height: 590px; padding-bottom: 58px; }
  .product-hero__grid { grid-template-columns: 1fr; gap: 25px; }
  .product-hero__icon { width: 96px; height: 96px; grid-row: 1; }
  .product-hero h1 { font-size: clamp(3.3rem, 15vw, 5.4rem); }
  .product-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .product-gallery__item:nth-child(n+2), .product-gallery.is-compact .product-gallery__item:nth-child(n+2) { display: none; }
  .product-gallery.is-expanded .product-gallery__item { display: block; }
  .product-gallery.is-compact { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .product-gallery__item, .product-gallery__item--featured { min-height: 0; aspect-ratio: 4 / 3; }
  .product-gallery-toggle.is-mobile-only { display: inline-flex; }
  .product-lightbox { padding: 8px; }
  .product-lightbox__panel { width: calc(100vw - 16px); height: 82vh; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 5px; }
  .product-lightbox__arrow { width: 42px; height: 42px; font-size: 1.55rem; }
  .product-lightbox__close { top: -54px; width: 44px; height: 44px; }
  .configurator-steps, .purchase-paths { grid-template-columns: 1fr; }
  .configurator-steps .field--wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .product-gallery__item img { transition: none; } }
