/* The catalog shares the hero's plum backdrop and localized lavender light. */
:root {
  color-scheme: dark;
  --paper: #18131e;
  --ink: #faf6fc;
  --muted: #cec2d5;
  --line: #57465f;
  --lavender: #dec0fa;
  --field: #261e30;
  --field-edge: #806c8e;
  --panel: linear-gradient(145deg, #33273e, #241c2d 76%);
  --control-fill: #ddc1fa;
  --control-ink: #2b183c;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23dfc7ef' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

.catalog, .lab-calc, .faq, .bac-band {
  --light-x: 90%;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse 65rem 36rem at var(--light-x) 2%, #51345f85, transparent 75%),
                    linear-gradient(120deg, #19141f, #251b30 68%, #1a1522);
}
.lab-calc { --light-x: 0%; border-color: var(--line); }
.faq { --light-x: 12%; }
.bac-band { background-image: linear-gradient(125deg, #1a1522, #251b30); }

.ink, .catalog h2 em, .calc-heading h2 em, .faq h2 em, .dialog-inner h2 span,
.presentation-amount, .sheet-link, #sheet-items li b, .steps .icon, .mini > .icon,
.faq-list details[open] summary, .calc-reset, .copy-list,
.reset-filters { color: var(--lavender); }

.catalog-filter, .results-count, .prod-info p, .prod-info .product-area,
.calc-heading > p:last-child, .calc-tip, .calc-math, .faq-list p, .sheet-empty,
.sheet-extra, #sheet-items small, .quote-row small, .note-label small, .fine,
.copy-status, #presentation-sizes,
.bac-quote label small, .bac-quote p { color: var(--muted); }

.search, .dialog-inner textarea, .calc-input, #lab-copy-text {
  color: var(--ink);
  background: var(--field);
  border-color: var(--field-edge);
}
.search .icon, .calc-input span { color: var(--lavender); }
.search input::placeholder, .dialog-inner textarea::placeholder,
.calc-input input::placeholder { color: #c0afcb; opacity: 1; }
.catalog-filter select, .bac-quote select, .calc-target select {
  color: var(--ink);
  border-color: var(--field-edge);
  background: var(--field) var(--chevron) no-repeat right 12px center / 16px 16px;
}
select option { color: var(--ink); background-color: var(--field); }
:focus-visible, .search:focus-within, .calc-input:focus-within,
.catalog-filter select:focus-visible, .calc-target select:focus-visible,
.calc-options input:focus-visible + span, .faq-list summary:focus-visible { outline-color: #e3bdff; }
.search:focus-within { outline: 2px solid #e3bdff; outline-offset: 2px; }
.skip { background: var(--control-fill); color: var(--control-ink); }

.product {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 8px 24px #100b1638;
}
.product:focus-within { border-color: #af93c5; }
.product-details {
  align-self: flex-start;
  min-height: 42px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  color: var(--lavender);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.catalog-filter select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .filter-fields .catalog-filter:first-child { grid-column: 1 / -1; }
}
@media (hover: hover) {
  .product:hover { border-color: #9b7fae; box-shadow: 0 14px 32px #0b07144d; }
}
.sample, .sample.real-photo, .reference-media, .reference-media.presentation-art {
  background-color: #271d32;
  background-image: radial-gradient(ellipse at 54% 46%, #6c458ad9, transparent 68%),
                    linear-gradient(145deg, #432f50, #1d1826 83%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sample::before, .sample::after { border-color: #ddc0fa38; }
.sample img, .presentation-art .vial-drawing { filter: drop-shadow(4px 8px 6px #0b081563); }
.brand-visual .catalog-vial {
  position: absolute;
  height: 76%;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  transform: rotate(-6deg);
  filter: drop-shadow(4px 8px 6px #0b081563);
  transition: transform .4s ease;
}
.product:nth-child(even) .brand-visual .catalog-vial { transform: rotate(5deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product:hover .brand-visual .catalog-vial { transform: translateY(-4px) rotate(0deg); }
}
.vial-model {
  display: block;
  position: relative;
  aspect-ratio: 279 / 640;
  container-type: inline-size;
  background: url("assets/viales/modelo-vial.webp") center / contain no-repeat;
}
.model-label {
  position: absolute;
  inset: 38% 12% 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6cqw;
  color: #30243d;
  text-align: center;
}
.model-brand {
  width: 90%;
  height: 11cqw;
  background: url("assets/reborn-logo.png") center / contain no-repeat;
}
.model-label strong { font-size: 12cqw; line-height: 1.1; }
.model-label b { font-size: 14cqw; line-height: 1.1; }
.model-note { position: absolute; bottom: 8px; left: 10px; color: #dfcde7; font-size: .8rem; }
.mini .catalog-vial, .selection-flight .catalog-vial { display: block; height: 80%; width: auto; max-width: 80%; object-fit: contain; }
.mini .model-label, .selection-flight .model-label { display: none; }
.vial-stage-zoom {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  height: min(59dvh, 540px);
  background: radial-gradient(ellipse at center,#59416b,#251b30 73%);
}
.vial-stage-zoom .catalog-vial { display: block; min-height: 0; max-height: 100%; height: 85%; width: auto; max-width: 80%; object-fit: contain; }
.vial-stage-zoom[hidden], #zoom-image[hidden] { display: none; }
#product-sheet {
  width: min(32rem, calc(100% - 1.5rem));
  max-height: 88dvh;
  color: #faf6fc;
  background: #261e30;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
#product-sheet .sheet-heading {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: #261e30; border-bottom: 1px solid var(--line);
  padding: .75rem 1.25rem;
}
.sheet-heading h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); line-height: 1.2; }
.sheet-heading .round { flex-shrink: 0; }
#presentation-info { padding: 1.25rem; }
#presentation-category { margin-bottom: .5rem; color: #decbe9; font-size: .9375rem; }
#presentation-sizes { color: #decbe9; }
#presentation-topic { margin-bottom: .65rem; font-size: 1.2rem; line-height: 1.35; }
#presentation-description { font-size: 1.0625rem; line-height: 1.6; }
#presentation-amount { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
#presentation-size { padding-inline-start: .35rem; color: var(--lavender); white-space: nowrap; }
.dose, .art-note, .photo-expand, .reference-foot {
  background: #241a30f5;
  color: #f4e3ff;
  border: 1px solid #846996;
}
.reference-foot { background: #281e33; border-width: 1px 0 0; }
.variant-choices button { color: #e5d5ef; }
.variant-choices button::before { background: #35283f; border-color: #80688d; }
.variant-choices button[aria-pressed=true] { color: var(--control-ink); }
.variant-choices button[aria-pressed=true]::before { background: var(--control-fill); border-color: #efdafe; }

.add-btn, .ink-btn, .wa-action {
  background: var(--control-fill); color: var(--control-ink); border: 1px solid #e9d3fa;
}
.add-btn:hover, .ink-btn:hover, .wa-action:hover { background: #efdcff; color: var(--control-ink); }
.add-btn:active, .ink-btn:active, .wa-action:active { background: #f2d5a5; color: #36223b; }
.stepper { background: #42304f; color: var(--ink); border-color: #977ca8; }
.stepper button { color: var(--ink); }
.stepper button:disabled { opacity: .55; }

.calc-console, .selection-sheet, dialog {
  color: var(--ink); background: var(--panel); border-color: #756080;
  box-shadow: 0 18px 50px #0b07173d;
}
.calc-form label, .calc-form legend, .calc-input input { color: var(--ink); }
.calc-options span, .round, .zoom-head .round {
  background: #392c45; border-color: var(--field-edge); color: var(--ink);
}
.calc-options input:checked + span { color: var(--control-ink); background: var(--control-fill); border-color: var(--control-fill); }
.calc-extra { border-color: var(--line); }
.calc-extra summary::marker, .calc-math summary::marker { color: var(--lavender); }
.calc-input:has(input[aria-invalid=true]) { border-color: #ffb3a7; }
.calc-readout { box-shadow: inset 0 0 0 1px #a88fbc38; }

.faq-list, .faq-list details, #sheet-items li, .sheet-brand { border-color: var(--line); }
.faq-list summary span { color: var(--lavender); border-color: #8c739d; }
.faq-list details[open] span { background: #42304e; }
.sheet-wrap::before { background: #4b3859; }
.sheet-wrap::after { background: #745b84; }
.sheet-brand { color: var(--lavender); }
.sheet-brand img { filter: brightness(0) invert(1); }

dialog::backdrop { background: #100b1dd6; }
.bac-quote { background: #241c2c; color: var(--ink); border-color: var(--line); }
.quote-row .mini, .selection-flight { background: #493656; }

/* Photo albums */
#galeria .gallery-copy { min-width: 0; }
#gallery-picks { display: flex; flex-wrap: wrap; gap: .4rem; }
#gallery-picks button { min-height: 44px; padding: .5rem .95rem; border-radius: 999px; }
.gallery-figure .photo-frame {
  background: radial-gradient(ellipse at 50% 45%, #523b5b, #241a2c 82%);
  aspect-ratio: 1.35; touch-action: pan-y pinch-zoom;
}
.gallery-figure #gallery-image { object-fit: contain; object-position: center; }
.gallery-figure .zoom-trigger { border-radius: 999px; }
.album-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; }
#album-position { color: var(--lavender); font-size: .78rem; font-variant-numeric: tabular-nums; }
#album-title { display: block; font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.25; color: var(--ink); }
.album-arrows { display: flex; gap: 6px; }
.album-arrows button {
  display: grid; place-content: center; min-width: 44px; height: 44px;
  border: 1px solid var(--field-edge); border-radius: 50%; color: var(--ink);
  background: var(--field); font: 1.65rem/1 Georgia, serif;
}
.album-arrows button:is(:hover,:focus-visible) { background: #554065; }
#gallery-caption { color: var(--muted); line-height: 1.45; }
.album-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.album-thumb {
  width: clamp(42px, 4.2vw, 56px); height: clamp(44px, 4.2vw, 56px);
  border: 1px solid var(--field-edge); border-radius: 8px; padding: 2px;
  background: #281f30; opacity: .83; transition: opacity .18s ease;
}
.album-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.album-thumb[hidden] { display: none; }
.album-thumb[data-group="detalles"] { opacity: 1; }
.album-thumb[data-group="detalles"] img,
#gallery-image[data-group="detalles"],
#zoom-image[data-group="detalles"] { filter: contrast(.90) brightness(1.085); }
.album-thumb[aria-pressed=true], .album-thumb:is(:hover,:focus-visible) { opacity: 1; border-color: var(--lavender); }
.album-thumb[aria-pressed=true] { box-shadow: 0 0 0 1px var(--lavender); }
.album-credit { color: var(--muted); font-size: .78rem; margin: 12px 0 0; }
@media (max-width: 700px) {
  .gallery-figure .photo-frame { aspect-ratio: 1.05; }
  .gallery-layout { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .album-thumb { transition: none; } }

/* Customer service excerpts */
.service-reviews {
  background: radial-gradient(ellipse at 85% 100%, #3a2946, transparent 58%), #1b1522;
  border-block: 1px solid #47364e; padding-block: clamp(42px, 6vw, 82px);
}
.service-reviews h2 {
  font-size: clamp(2.7rem, 5.6vw, 5.35rem); letter-spacing: -.06em;
  line-height: 1.02; margin: 12px 0;
}
.service-reviews h2 em { color: var(--lavender); font: italic 400 1em/1 Georgia, serif; font-synthesis: style; }
.reviews-intro { max-width: 55ch; color: var(--muted); margin-bottom: 24px; }
.review-intro-row { display: flex; align-items: flex-end; gap: 18px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.review-intro-row .reviews-intro { margin: 0; max-width: 72ch; }
.review-arrows button:disabled { opacity: .4; cursor: default; }
.review-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px)/3); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: #806291 transparent; padding-bottom: 12px;
}
.review-card { scroll-snap-align: start; min-width: 0; margin: 0; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.review-image { width: 100%; aspect-ratio: 1; display: block; position: relative; background: #151317; cursor: zoom-in; padding: 0; }
.review-image:focus-visible { outline: 3px solid var(--lavender); outline-offset: -4px; z-index: 1; }
.review-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.review-image span { position: absolute; bottom: 8px; right: 8px; display: flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid #a791b5; border-radius: 999px; background: #23192bed; color: white; font-size: .77rem; }
.review-image .icon { width: 14px; height: 14px; }
.review-card figcaption { padding: 14px 18px 20px; }
.review-card figcaption strong { display: block; color: var(--lavender); margin-bottom: 5px; font-size: .88rem; }
.review-card blockquote { margin: 0; color: var(--ink); font: 1.13rem/1.45 Georgia, serif; }
#review-zoom { width: min(900px, calc(100% - 16px)); padding: 0; max-height: 96dvh; }
#review-zoom .zoom-head { padding-block: 5px; }
.review-scroll { overflow: auto; background: #151117; height: min(60dvh, 790px); overscroll-behavior: contain; }
#review-original { display: block; width: 100%; height: 100%; object-fit: contain; }
.reading-size #review-original { height: auto; width: max(135%, 830px); max-width: none; }
.review-zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 8px 12px; }
#review-index, #review-zoom-note { color: var(--muted); font-size: .84rem; }
#review-zoom-note { padding: 0 14px 12px; }
#review-enlarge { min-height: 42px; padding: 6px 12px; border: 1px solid var(--field-edge); border-radius: 9px; color: var(--lavender); }
@media (max-width: 820px) { .review-track { grid-auto-columns: 46%; } }
@media (max-width: 550px) {
  .review-track { grid-auto-columns: 87%; gap: 10px; }
  .review-intro-row { gap: 10px; }
  .review-arrows { margin-left: auto; }
  .review-scroll { height: min(53dvh, 105vw); }
}
