/* La Popular — estilos del sitio
   Colores tomados del logotipo: carbón y lila. */

:root {
  --ink: #2F2D30;
  --ink-soft: #5E5761;
  --accent: #6B4E73;        /* lila oscuro: texto de acento legible */
  --lilac: #CDB6CF;         /* lila del logo: solo decorativo */
  --paper: #FFFFFF;
  --mist: #F6F2F6;          /* fondo suave */
  --ph: #EEE8ED;            /* espacio para foto */
  --ph-dark: #4B4248;       /* espacio para foto oscura (portada) */
  --line: #ECE6EC;
  --line-strong: #D9D0D8;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;

  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: #4F3756; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Tipografía ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
}

.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.h-xl { font-size: clamp(60px, 9vw, 108px); line-height: 0.92; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; }
.h-md { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; }
.h-sm { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }

.lede { font-size: 18px; color: var(--ink-soft); max-width: 600px; }
.muted { color: var(--ink-soft); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 13px; }
.btn-block { width: 100%; }

.link-caps {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  text-underline-offset: 8px;
}
.link-caps:hover { color: var(--accent); }

.arrow::after { content: "↗"; }

/* ---------- Barra superior y encabezado ---------- */

.topbar { background: var(--ink); color: #fff; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.topbar .wrap { position: relative; display: flex; justify-content: center; align-items: center; text-align: center; padding-top: 11px; padding-bottom: 11px; }
.topbar .wrap a { position: absolute; right: var(--gutter, 32px); top: 50%; transform: translateY(-50%); }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; gap: 32px; font-size: 12.5px; letter-spacing: 0.18em; font-weight: 500; text-transform: uppercase; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }

.header-actions { display: flex; gap: 10px; align-items: center; }

.icon-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  cursor: pointer; padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; }

.menu-btn { display: none; border: 0; }

.mobile-nav { display: none; }

/* ---------- Portada ---------- */

.hero { position: relative; min-height: 780px; background: var(--ph-dark); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 19, 0.28); }
.hero .wrap { position: relative; width: 100%; padding-top: 96px; padding-bottom: 88px; }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: #fff; }
.hero p.sub { margin: 28px 0 0; font-size: 19px; line-height: 1.5; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 34px; }
.hero .hero-actions .link-caps { color: #fff; }

/* Espacios para fotos (se reemplazan por <img> cuando haya fotos) */
.ph {
  background: var(--ph);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  font-size: 13px; color: #6E6570;
}
.ph-dark { background: var(--ph-dark); color: #D8CDD5; }
.hero .ph-label { position: absolute; right: 8%; top: 36%; width: 340px; max-width: 80%; text-align: center; font-size: 14px; color: #D8CDD5; }

/* ---------- Franjas y secciones ---------- */

.strip { border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; font-size: 12.5px; letter-spacing: 0.16em; font-weight: 500; color: #4A454C; text-transform: uppercase; }

.section { padding-top: 112px; padding-bottom: 112px; }
.section-tight { padding-top: 72px; padding-bottom: 72px; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: #fff; }
.center { text-align: center; }

.mark { display: block; margin: 0 auto; width: 120px; height: 40px; }
.mark-sm { width: 72px; height: 24px; }
.mark-left { margin: 0; }

.head-row { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; }

/* Historia 1980 / Hoy */
.story h2 { max-width: 900px; margin: 16px auto 0; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 56px; text-align: left; }
.story-grid figure { margin: 0; }
.story-grid .ph { height: 520px; }
.story-grid figcaption { margin-top: 16px; display: flex; align-items: baseline; gap: 16px; color: var(--ink-soft); }
.story-grid figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; color: var(--ink); }

/* Columnas numeradas */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; margin-top: 56px; }
.col { border-top: 1px solid var(--ink); padding-top: 28px; }
.col .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.col h3 { margin: 10px 0 8px; font-weight: 600; font-size: 30px; line-height: 1.15; }
.col p { margin: 0; color: var(--ink-soft); }

/* Colección */
.filters { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 11.5px; letter-spacing: 0.2em; font-weight: 600; color: var(--ink-soft); margin-right: 6px; text-transform: uppercase; }
.chip {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; font-weight: 500; text-transform: uppercase;
  height: 44px; padding: 0 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border: 1px solid var(--line-strong);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 1px solid rgba(47,45,48,.25); }
.count { margin-left: auto; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; }

.filter-bar { position: sticky; top: 81px; z-index: 10; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-bar .wrap { padding-top: 14px; padding-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 24px; }
.card { text-decoration: none; color: var(--ink); display: block; }
.card .ph, .card img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; position: relative; }
.card .tag { text-transform: uppercase; position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-size: 10.5px; letter-spacing: 0.16em; font-weight: 600; padding: 5px 10px; }
.card-media { position: relative; }
.card-name { margin-top: 16px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.card[hidden] { display: none; }

.callout { background: var(--mist); padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; margin: 56px 0; }
.callout > div:first-child { flex: 1 1 420px; }

.empty { background: var(--mist); padding: 72px 32px; text-align: center; }

/* Precios */
.prices { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.prices > div:first-child { flex: 1 1 380px; }
.price-figs { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.price-figs div { border-top: 1px solid #5A555C; padding-top: 20px; }
.price-figs strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.1; }
.price-figs span { display: block; font-size: 13px; letter-spacing: 0.08em; color: #D6CED5; margin-top: 6px; text-transform: uppercase; }
.bg-ink .eyebrow { color: var(--lilac); }

/* Clientas y reseña */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 44px; }
.clients figure { margin: 0; }
.clients .ph, .clients img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.clients figcaption { margin-top: 14px; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.review { margin: 72px auto 0; max-width: 820px; text-align: center; }
.review p { margin: 24px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; }
.review footer { margin-top: 18px; font-size: 12.5px; letter-spacing: 0.18em; color: var(--ink-soft); text-transform: uppercase; }

/* Boutiques */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 44px; }
.store { border: 1px solid var(--line-strong); }
.store .ph { height: 240px; }
.store-body { padding: 40px; }
.store h3 { font-size: 44px; line-height: 1; }
.store-tag { font-size: 11.5px; letter-spacing: 0.2em; font-weight: 600; color: var(--accent); text-transform: uppercase; }
.store-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.hours { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-size: 15px; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 500; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; align-items: center; }

/* Página Agendar */
.book-card { border: 1px solid var(--ink); padding: 48px; display: flex; flex-direction: column; }
.book-card h2 { font-size: 48px; line-height: 1; }
.book-actions { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.book-actions .btn { padding-top: 12px; padding-bottom: 12px; text-align: center; line-height: 1.4; }

/* Preguntas */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.faq-wrap > div:first-child { flex: 1 1 280px; }
.faq { flex: 2 1 560px; min-width: 0; }
.faq details { border-top: 1px solid var(--line-strong); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Novias (franja) */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }

/* ---------- Pie de página ---------- */

.site-footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.footer-grid h4 { margin: 0 0 10px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; font-weight: 500; color: var(--lilac); text-transform: uppercase; }
.footer-grid a, .footer-grid span { display: block; color: #fff; margin-bottom: 6px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin: 14px 0 0; font-size: 12px; letter-spacing: 0.3em; color: var(--lilac); }
.footer-legal { border-top: 1px solid #4A464C; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: #CFC7CE; }
.footer-legal a { color: #fff; }

/* Barra fija para agendar (solo celular) */
.book-bar { display: none; }

/* ---------- Celular y tableta ---------- */

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 34px; }
  .filter-bar { top: 61px; }

  .mobile-nav {
    position: fixed; inset: 61px 0 0 0; z-index: 30;
    background: #fff; padding: 24px var(--gutter) 120px;
    flex-direction: column; overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { font-family: var(--serif); font-size: 34px; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .mobile-meta { margin-top: 24px; font-size: 15px; color: var(--ink-soft); }
  .mobile-nav .mobile-meta a { font-family: var(--sans); font-size: 15px; border: 0; padding: 4px 0; color: var(--accent); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { padding-bottom: 84px; }
  .topbar .wrap { justify-content: center; text-align: center; font-size: 10.5px; }
  .topbar .wrap a, .hide-sm { display: none; }

  .hero { min-height: 0; flex-direction: column; align-items: stretch; background: #fff; color: var(--ink); }
  .hero-media { position: relative; height: 360px; background: var(--ph-dark); }
  .hero-media::after { display: none; }
  .hero .ph-label { top: 40%; right: 10%; left: 10%; width: auto; }
  .hero .wrap { padding-top: 28px; padding-bottom: 48px; }
  .hero .eyebrow { color: var(--accent); }
  .hero .h-xl { font-size: 56px; }
  .hero p.sub { font-size: 17px; color: var(--ink-soft); }
  .hero-actions { display: none; }

  .section { padding-top: 72px; padding-bottom: 72px; }
  .story-grid .ph { height: 380px; }
  .callout, .book-card, .store-body { padding: 28px; }
  .count { margin-left: 0; width: 100%; }
  .filter-bar { position: static; }

  .book-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .book-bar .btn { flex: 1 1 auto; min-height: 54px; }
  .book-bar .icon-btn { flex: 0 0 54px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Portada clara con foto real + capa juvenil (dibujos a mano) ---------- */
:root { --pop: #B3124F; }  /* frambuesa: dibujos y letra a mano, legible sobre la pared */
.hand { font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 700; color: var(--pop); line-height: 1; margin: 0; }
.doodle { color: var(--pop); display: block; }

.hero-light { background: #E9DDCD; color: var(--ink); align-items: center; }
.hero-light .hero-media::after { display: none; }
.hero-light .hero-media img { object-position: 35% 50%; }
.hero-light .wrap { padding-top: 120px; padding-bottom: 96px; }
.hero-light .eyebrow { color: var(--accent); }
.hero-light .hero-copy { position: relative; max-width: 480px; }
.hero-light .eyebrow { margin-bottom: 48px; }
.hero-light p.sub { max-width: 420px; }
.hero-light .hero-actions .link-caps { color: var(--ink); }
.hero-light p.sub { color: #3E3A3F; }

.hero-title .xv { position: relative; display: inline-block; }
.hero-title .crown { position: absolute; left: 4%; top: -0.34em; width: 0.92em; height: auto; transform: rotate(-8deg); }
.hand-hero { font-size: clamp(48px, 5.6vw, 76px); margin-top: 2px; transform: rotate(-3deg); transform-origin: left; }
.swirl { width: 280px; max-width: 70%; height: 22px; margin-top: 2px; }
.spark-1 { position: absolute; width: 44px; height: 44px; right: 10px; top: 70px; }
.spark-2 { position: absolute; width: 24px; height: 24px; right: 60px; top: 140px; }

@media (max-width: 1020px) {
  .hero-light .hero-copy { max-width: 460px; }
  .spark-1, .spark-2 { display: none; }
}
@media (max-width: 720px) {
  .hero-light { background: #fff; }
  .hero-light .hero-media { height: auto; aspect-ratio: 4 / 5; }
  .hero-light .hero-media img { object-position: 50% 50%; }
  .hero-light .wrap { padding-top: 20px; padding-bottom: 40px; }
  .hero-light .eyebrow { margin-bottom: 26px; }
  .hero-light .hero-media { aspect-ratio: 5 / 6; }
  .hand-hero { font-size: 46px; }
  .swirl { width: 200px; }
}

/* Celular: la foto de portada se desvanece hacia el titular */
@media (max-width: 720px) {
  .hero-light .hero-media { aspect-ratio: 4 / 5; }
  .hero-light .hero-media::after {
    display: block; content: ""; position: absolute;
    inset: auto 0 0 0; height: 34%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 70%, #fff 100%);
  }
  .hero-light .wrap { margin-top: -104px; position: relative; z-index: 1; padding-top: 0; }
}

/* Tarjetas: fondo del estudio La Popular + etiqueta escrita a mano */
.card .ph { background: #E9DACB; color: #6E5F55; }
.card-media { overflow: visible; }
.sticker { position: absolute; top: -14px; right: -8px; background: #fff; border: 2px solid var(--pop); color: var(--pop);
  font-size: 24px; padding: 2px 14px 4px; border-radius: 999px; transform: rotate(6deg); box-shadow: 0 2px 6px rgba(47,45,48,.08); }

/* Celular: dos vestidos por fila */
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .card-name { font-size: 19px; margin-top: 10px; }
  .card-meta { flex-direction: column; gap: 0; font-size: 11px; }
  .card .tag { top: 8px; left: 8px; font-size: 9px; padding: 3px 7px; }
  .card .ph { font-size: 11px; padding: 10px; }
  .sticker { font-size: 18px; top: -10px; right: -4px; padding: 1px 10px 3px; }
  .callout { margin: 40px 0; }
}

/* Segunda foto del vestido al pasar el cursor (solo escritorio) */
.card-media img.alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) { .card:hover .card-media img.alt, .card:focus-visible .card-media img.alt { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card-media img.alt { transition: none; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: var(--ink); text-decoration: none; font: inherit; }
a.tile { cursor: pointer; }
.tile-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #E9DACB; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tile-media { overflow: visible; }
.tile-media::before { content: ""; position: absolute; inset: 0; overflow: hidden; }
.tile:hover .tile-media img { transform: scale(1.015); }
.tile-cap { display: block; margin-top: 14px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(28, 24, 27, .94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(28, 24, 27, .94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 80vh; max-width: min(88vw, 760px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #E2D8E0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--serif); line-height: 1; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.lb-close { top: 16px; right: 16px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-book { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); }

@media (max-width: 1020px) { .gallery, .gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .gallery, .gallery-4 { gap: 28px 12px; }
  .tile-cap { font-size: 11px; margin-top: 8px; }
  .lightbox img { max-height: 70vh; }
  .lb-prev, .lb-next { top: auto; bottom: 84px; transform: none; font-size: 52px; }
  .lb-book { bottom: 20px; width: calc(100% - 40px); }
}

/* Colección: tarjetas reales (botón que abre las fotos) */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
button.card { width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: zoom-in; }
.card .card-media img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; display: block; background: #E9DACB; }
.card .card-media img.alt { height: 100%; }
.photo-count { position: absolute; bottom: 12px; right: 12px; background: rgba(47,45,48,.82); color: #fff; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; }
.lightbox [hidden] { display: none; }
@media (max-width: 1020px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .photo-count { bottom: 8px; right: 8px; font-size: 9px; padding: 3px 7px; } }

/* Colores de cada modelo */
.card-meta .dots { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.card-meta .dots .dot { width: 12px; height: 12px; }
.dots-more { font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); }
.card-meta { align-items: center; margin-top: 8px; }
.lb-colors { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 88vw; }
.lightbox .lb-colors button { position: static; width: 34px; height: 34px; border-radius: 999px; border: 1px solid transparent; }
.lightbox .lb-colors button[aria-pressed="true"] { border-color: #fff; }
.lb-colors .dot { width: 18px; height: 18px; border-color: rgba(255,255,255,.4); }
@media (max-width: 720px) {
  .card-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
  .card-meta .dots .dot { width: 10px; height: 10px; }
  .lightbox .lb-colors button { width: 30px; height: 30px; }
}

/* Líneas de La Popular: POP, Atelier, Black Label y Única */
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 44px; }
.line-tile { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 28px 26px 26px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; min-width: 0; transition: border-color .2s, transform .2s; }
.line-tile:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.line-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.line-tile.is-soon { cursor: default; background: var(--mist); border-style: dashed; }
.line-tile.is-soon:hover { transform: none; border-color: var(--line-strong); }
.line-name { font-size: 34px; line-height: 1; font-weight: 600; }
.line-pop { font-family: var(--sans); font-weight: 700; letter-spacing: .02em; color: var(--pop); }
.line-pop::after { content: '✦'; font-size: .5em; vertical-align: super; margin-left: 4px; }
.line-atelier { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 38px; }
.line-black-label { font-family: var(--sans); font-size: 20px; letter-spacing: .32em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 9px 12px 8px; align-self: flex-start; }
.line-unica { font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 700; font-size: 42px; color: var(--accent); }
.line-price { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.line-story { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.line-count { margin-top: auto; padding-top: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.line-count.soon { color: var(--accent); font-weight: 500; }
.tile-unica { background: var(--mist); }
.unica-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; padding: 18px 26px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.unica-strip:hover { border-color: var(--ink); color: var(--ink); }
.unica-strip .line-unica { font-size: 34px; }
.unica-strip > span:nth-child(2) { flex: 1 1 280px; color: var(--ink-soft); }

/* Insignia de exclusiva en tarjetas */
.badge-excl { position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff; font-size: 10.5px; letter-spacing: .16em; font-weight: 600; text-transform: uppercase; padding: 5px 10px; }
@media (max-width: 720px) { .badge-excl { top: auto; bottom: 8px; left: 8px; right: auto; font-size: 9px; padding: 3px 7px; } .photo-count { display: none; } }

/* Página Única */
.unica-hero { padding-bottom: 64px; }
.unica-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hand-inline { font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 700; color: var(--pop); }
.sketch-wrap { position: relative; color: var(--accent); max-width: 360px; justify-self: center; width: 100%; }
.sketch { width: 100%; height: auto; }
.sketch-note { position: absolute; bottom: 4%; right: -2%; font-size: 30px; transform: rotate(-6deg); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.unica-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.choose-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.choose-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; display: flex; gap: 14px; }
.choose-list li::before { content: '✦'; color: var(--pop); font-size: 14px; padding-top: 4px; }
@media (max-width: 820px) {
  .unica-grid, .unica-split { grid-template-columns: 1fr; gap: 28px; }
  .sketch-wrap { max-width: 240px; }
  .line-name { font-size: 30px; }
}
.line-black-label { white-space: nowrap; }
@media (max-width: 720px) {
  .lines { gap: 10px; margin-top: 32px; }
  .line-tile { padding: 20px 18px; gap: 6px; }
  .line-black-label { font-size: 16px; letter-spacing: .22em; padding: 7px 10px 6px; }
  .line-story { font-size: 14.5px; }
}

/* Hero de inicio en computadora: velo crema a la izquierda para que el texto se lea sobre la foto */
@media (min-width: 721px) {
  .hero-light .hero-media::after { display: block; background: linear-gradient(90deg, rgba(246,239,229,.94) 0%, rgba(246,239,229,.8) 30%, rgba(246,239,229,.35) 46%, rgba(246,239,229,0) 58%); }
  .hero-light .eyebrow { color: #4A2F52; font-weight: 600; }
  .hero-light p.sub { max-width: 400px; color: var(--ink); }
  .hero-light .hero-actions .link-caps { color: var(--ink); font-weight: 600; }
}

/* Agenda tu cita: elegir boutique y solicitar cita (formulario de BridalLive) */
.book-wrap { padding-bottom: 80px; }
.store-tabs { display: flex; justify-content: center; gap: 0; margin: 0 auto 40px; border: 1px solid var(--ink); width: max-content; max-width: 100%; }
.store-tab { font: 600 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 18px 34px; background: transparent; color: var(--ink); border: 0; cursor: pointer; min-height: 52px; }
.store-tab + .store-tab { border-left: 1px solid var(--ink); }
.store-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.store-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.book-panel { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
.book-panel + .book-panel { margin-top: 64px; }
.book-panel[hidden] { display: none; }
.book-info h2 { font-size: 48px; line-height: 1; margin: 0; }
.book-info .store-head { margin-bottom: 16px; }
.book-info .hours a { color: inherit; }
.book-form { border: 1px solid var(--line-strong); background: #fff; padding: 8px 8px 0; min-width: 0; }
.book-form iframe { display: block; width: 100%; height: 820px; border: 0; }
.book-fallback { grid-column: 2; margin: -40px 0 0; font-size: 14px; }
.book-soon { border: 1px solid var(--line-strong); background: var(--mist); padding: 48px; }
.book-soon h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0 0 12px; }
.book-soon p { margin: 0 0 28px; }
.book-soon .book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .book-panel { grid-template-columns: 1fr; gap: 28px; }
  .book-fallback { grid-column: 1; margin-top: -16px; }
  .book-form { padding: 0; border-left: 0; border-right: 0; margin: 0 calc(-1 * var(--gutter)); }
  .book-form iframe { height: 960px; }
  .book-soon { padding: 28px; }
}
@media (max-width: 720px) {
  .store-tabs { width: 100%; }
  .store-tab { flex: 1; padding: 16px 10px; }
}

/* Ver más vestidos */
.more { display: grid; justify-items: center; gap: 14px; margin-top: 56px; text-align: center; }
.more-count { margin: 0; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }

/* Lightbox: el botón de cita va debajo de los colores, nunca encima */
.lightbox img { max-height: calc(100vh - 220px); }
.lightbox .lb-book { position: static; transform: none; margin-top: 6px; width: auto; height: auto; font-family: inherit; }
@media (max-width: 720px) {
  .lightbox img { max-height: calc(100vh - 250px); }
  .lb-prev, .lb-next { top: 38%; bottom: auto; }
  .lightbox .lb-book { width: calc(100vw - 40px); }
}

/* Direcciones que abren Google Maps */
a.addr { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.addr:hover { color: var(--ink); }

/* Botón del chat: arriba de la barra "Agenda tu cita" cuando existe; en la esquina cuando no */
@media (max-width: 1100px) {
  body:has(.book-bar) .lpc-btn { bottom: calc(96px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
  body:not(:has(.book-bar)) .lpc-btn { bottom: calc(16px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
  body:not(:has(.book-bar)) .site-footer { padding-bottom: 88px; }
}
@media (min-width: 1101px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Compartir y favoritos ---------- */
.lightbox img { max-height: calc(100vh - 270px); }
.lb-actions { display: flex; gap: 10px; justify-content: center; }
.lightbox .lb-actions button { position: static; width: auto; height: 40px; padding: 0 18px; gap: 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
@media (hover: hover) { .lightbox .lb-actions button:hover { background: rgba(255,255,255,.12); } }
.lightbox .lb-actions .ic { font-size: 17px; letter-spacing: 0; }
.lightbox .lb-actions .lb-fav[aria-pressed="true"], .lightbox .lb-actions .lb-fav[aria-pressed="true"]:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lightbox .lb-fav[aria-pressed="true"] .ic { color: #B3124F; }
@media (max-width: 720px) {
  .lightbox img { max-height: calc(100vh - 300px); }
  .lightbox .lb-actions button { height: 38px; padding: 0 14px; font-size: 12px; }
}

.fav-pill { position: fixed; left: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(47,45,48,.22); }
.fav-pill span:first-child { color: #F2B8D2; font-size: 16px; letter-spacing: 0; }
.fav-pill .n { background: #fff; color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0; padding: 0 6px; }
.fav-pill[hidden] { display: none; }
@media (max-width: 1100px) {
  body:has(.book-bar) .fav-pill { bottom: calc(96px + env(safe-area-inset-bottom)); left: 16px; }
  body:not(:has(.book-bar)) .fav-pill { bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; }
}

.favs-dlg { border: 0; border-radius: 6px; padding: 40px 32px 28px; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); background: #fff; }
.favs-dlg::backdrop { background: rgba(28, 24, 27, .6); }
.favs-dlg .lb-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none; font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ink); cursor: pointer; }
.favs-dlg h2 { margin: 0 40px 8px 0; }
.fav-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.fav-item { position: relative; }
.fav-open { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--sans); color: var(--ink); }
.fav-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ph); }
.fav-name { font-family: var(--serif); font-size: 20px; line-height: 1.1; margin-top: 4px; }
.fav-color { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.fav-remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.fav-empty { margin: 20px 0 0; color: var(--ink-soft); }
.fav-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fav-actions:empty { display: none; }
@media (max-width: 720px) {
  .favs-dlg { padding: 36px 18px 20px; }
  .fav-grid { grid-template-columns: repeat(2, 1fr); }
  .fav-actions .btn { flex: 1 1 100%; justify-content: center; }
}

.lp-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; transition: opacity .25s, transform .25s; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-family: var(--sans); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
.lightbox .lp-toast { background: #fff; color: var(--ink); top: 24px; bottom: auto; }
.lp-toast.on { opacity: 1; transform: translate(-50%, 0); }

.fav-book { border: 1px solid var(--line-strong); border-radius: 6px; padding: 18px 20px; margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--mist); }
.fav-book[hidden] { display: none; }
.fav-book-head { display: flex; gap: 12px; flex: 1 1 320px; }
.fav-book-head .ic { color: #B3124F; font-size: 22px; line-height: 1.2; }
.fav-book-head p { margin: 4px 0 0; }
.fav-book .small { font-size: 13px; }
.fav-book-thumbs { display: flex; gap: 6px; }
.fav-book-thumbs img { width: 44px; height: 55px; object-fit: cover; border-radius: 3px; }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.fav-steps { margin: 10px 0 6px; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.fav-steps li { margin: 2px 0; }
.fav-book-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ---------- Ficha del vestido (reemplaza el visor oscuro) ---------- */
.arrow::after { content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11L11 3M5 3h6v6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11L11 3M5 3h6v6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; }

dialog.dv { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: var(--ink); }
.dv[open] { display: flex; align-items: center; justify-content: center; }
.dv::backdrop { background: rgba(246, 242, 246, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dv [hidden] { display: none !important; }
.dv-panel { position: relative; background: #fff; width: min(1080px, calc(100vw - 64px)); height: min(720px, calc(100vh - 64px)); display: grid; grid-template-columns: 1.15fr 1fr; box-shadow: 0 30px 80px rgba(47, 45, 48, .18); outline: none; }
.dv-media { position: relative; background: var(--mist); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dv-img { width: 100%; height: 100%; object-fit: cover; }
.dv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(47, 45, 48, .12); }
.dv-prev { left: 16px; } .dv-next { right: 16px; }
.dv-thumbs { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.dv-thumbs button { padding: 0; border: 1px solid #fff; background: none; cursor: pointer; opacity: .75; }
.dv-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }
.dv-thumbs img { display: block; width: 46px; height: 58px; object-fit: cover; }
.dv-dots { display: none; }
.dv-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dv-close:focus:not(:focus-visible), .dv-nav:focus:not(:focus-visible) { outline: none; }
.dv-info { padding: 56px 48px 36px; display: flex; flex-direction: column; overflow: auto; }
.dv-line { margin: 0; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); white-space: pre; }
.dv-name { font-family: var(--serif); font-weight: 500; font-size: 60px; line-height: 1; margin: 12px 0 0; }
.dv-color { margin: 22px 0 10px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: pre-wrap; }
.dv-color strong { color: var(--ink); font-weight: 500; }
.dv-sw { display: flex; gap: 10px; flex-wrap: wrap; }
.dv-sw button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid transparent; background: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dv-sw button[aria-pressed="true"] { border-color: var(--ink); }
.dv-sw span { width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(47, 45, 48, .15); }
.dv-acts { display: flex; gap: 28px; margin-top: 18px; }
.dv-act { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 1px solid transparent; padding: 8px 2px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .dv-act:hover { border-bottom-color: var(--ink); } }
.hrt path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.lb-fav[aria-pressed="true"] .hrt path { fill: #B3124F; stroke: #B3124F; }
.dv-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.dv-book { margin-top: 26px; width: 100%; }
.dv-help { margin: auto 0 0; padding-top: 22px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.dv-help a { color: var(--ink); }
.dv-bar { display: none; }
.dv .lp-toast { background: var(--ink); color: #fff; top: 24px; bottom: auto; }

@media (max-width: 720px) {
  .dv::backdrop { background: #fff; }
  .dv[open] { align-items: stretch; }
  .dv-panel { width: 100vw; height: 100%; display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: none; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .dv-media { aspect-ratio: 4 / 5; }
  .dv-img { object-fit: contain; }
  .dv-close { position: fixed; top: 12px; right: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 14px rgba(47, 45, 48, .12); }
  .dv-nav { width: 38px; height: 38px; }
  .dv-thumbs { display: none; }
  .dv-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 6px; justify-content: center; }
  .dv-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(47, 45, 48, .18); }
  .dv-dots i.on { background: var(--ink); }
  .dv-info { padding: 22px 20px 8px; overflow: visible; }
  .dv-name { font-size: 44px; margin-top: 8px; }
  .dv-color { margin-top: 16px; }
  .dv-acts { margin-top: 12px; gap: 22px; }
  .dv-note { margin-top: 16px; }
  .dv-book, .dv-help { display: none; }
  .dv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; gap: 10px; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .dv-bar .btn { flex: 1; min-height: 52px; padding: 0 14px; font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
  .dv-fav { width: 52px; min-width: 52px; height: 52px; border: 1px solid var(--ink); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .dv .lp-toast { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Políticas y aviso de privacidad ---------- */
.legal { max-width: 780px; padding-bottom: 72px; }
.legal-essential { background: var(--mist); border: 1px solid var(--line); padding: 26px 28px; margin-bottom: 28px; }
.legal-essential h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 14px; }
.legal-essential ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-essential li { display: grid; grid-template-columns: 220px 1fr; gap: 4px 18px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.legal-essential strong { color: var(--ink); font-weight: 500; }
.legal-toc ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-toc a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.legal-toc a:hover { background: var(--ink); color: #fff; }
.legal-sec { padding-top: 34px; scroll-margin-top: 90px; }
.legal-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0 0 12px; }
.legal-sec p, .legal-sec li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.legal-sec p { margin: 0 0 12px; }
.legal-sec ul { margin: 0 0 12px; padding-left: 20px; }
.legal-sec a, .legal-help a { color: var(--ink); }
.legal-help { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.7; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; }
.book-policy { font-size: 14px; text-align: center; padding-top: 4px; padding-bottom: 36px; }
.book-policy a { color: var(--ink); }
@media (max-width: 720px) {
  .legal-essential { padding: 20px 18px; }
  .legal-essential li { grid-template-columns: 1fr; }
  .legal-sec h2 { font-size: 27px; }
}

/* ---------- Búsqueda por nombre ---------- */
.search-row { flex-basis: 100%; width: 100%; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.search-box { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search-box input { width: 100%; height: 46px; border: 1px solid var(--line-strong); background: #fff; padding: 0 42px; font-family: var(--sans); font-size: 16px; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input:focus { outline: none; border-color: var(--ink); }
.search-box input::placeholder { color: #9A929B; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.search-clear[hidden] { display: none; }
.search-status { font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.search-status strong { color: var(--ink); font-weight: 500; }
.filters.searching .filter-group { opacity: .4; }
.search-empty { max-width: 560px; margin: 24px auto 40px; text-align: center; }
.search-empty[hidden] { display: none; }
.search-empty p { font-size: 16px; line-height: 1.6; margin: 12px auto 0; }
@media (max-width: 720px) { .search-box { flex-basis: 100%; max-width: none; } }
