/*
 * DILOLA ES TU MODA · Estilos
 * --------------------------------------------------------------------------
 * Identidad visual PROVISORIA: los colores de abajo son una propuesta propia
 * hasta ver el Instagram y el logo reales. Para cambiar la paleta, editá solo
 * las variables de :root; el resto de la hoja las usa.
 * Tipografías incluidas en el proyecto (assets/fonts, licencia SIL OFL):
 * Cormorant Garamond para títulos y Jost para textos. No se descargan de
 * internet: funcionan también sin conexión.
 */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: Jost;
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #FBF7F2;          /* fondo general, crema cálido */
  --bg-alt: #F4ECE3;      /* secciones alternadas, arena */
  --blush: #F5E6E8;       /* rosa empolvado */
  --surface: #FFFFFF;     /* tarjetas y ventanas */
  --photo-bg: #F2ECE4;    /* fondo detrás de las fotos */
  --ink: #1F1A17;         /* texto principal */
  --muted: #645850;       /* texto secundario */
  --line: #E6DCD1;        /* bordes suaves */
  --accent: #8A2E4E;      /* color de marca (botones, detalles) */
  --accent-dark: #6E2240;
  --accent-ink: #FFFFFF;  /* texto sobre el color de marca */
  --accent-soft: #F4E4E9;
  --wa: #157A42;          /* verde para WhatsApp, con contraste AA */
  --wa-dark: #0F6234;
  --warn-bg: #FFF4D6;
  --warn-ink: #5C4300;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: Jost, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-small: 999px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 60px;
  --section: 56px;
  --shadow: 0 10px 30px rgba(31, 26, 23, .08);
}
@media (min-width: 768px) {
  :root { --gutter: 28px; --section: 88px; --header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Aviso para cuando index.html se abre sin sus carpetas: con estilos, nunca se ve. */
.aviso-sin-estilos { display: none; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Aviso de demostración ------------------------------------------------- */
.demo-banner {
  background: var(--warn-bg); color: var(--warn-ink);
  font-size: .875rem; text-align: center; padding: 8px var(--gutter);
  border-bottom: 1px solid #EBD9A6;
}

/* Textos comunes -------------------------------------------------------- */
.eyebrow {
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: .2em;
  font-size: .75rem; font-weight: 500; color: var(--accent);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2, .info h2, .contact h2, .instagram h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 7vw, 3.25rem); letter-spacing: -.01em;
}
.section-head-centro { justify-content: center; text-align: center; }
.section-note { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 8px 26px; line-height: 1.25; text-align: center;
  border-radius: var(--radius-small); border: 1.5px solid transparent;
  font-weight: 500; font-size: 1rem; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
/* WhatsApp sin número cargado: se ve terminado, pero al tocar avisa. */
.btn-pending { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-pending svg { color: var(--wa); }
.btn-pending:hover { border-color: var(--ink); }
.btn-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-claro:hover { background: #fff; color: var(--accent-dark); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn svg { flex: none; }

/* Encabezado ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { flex: none; white-space: nowrap; display: flex; align-items: baseline; gap: 8px; text-decoration: none; min-width: 0; padding: 8px 0; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.brand-main { font-family: var(--font-display); font-weight: 600; letter-spacing: .2em; font-size: 1.45rem; line-height: 1; }
.brand-sub { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--accent); font-size: 1.15rem; white-space: nowrap; line-height: 1; }
.header-nav { flex: none; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.header-nav > a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.header-nav > a:not(.btn):hover { color: var(--accent); }
.nav-amplia { display: none !important; }
@media (max-width: 479px) {
  .brand-sub { display: none; }
  .brand-main { font-size: 1.3rem; letter-spacing: .16em; }
}
@media (max-width: 359px) {
  .header-nav > a:not(.btn) { padding: 0 6px; }
  .header-nav .btn-small { padding: 0 14px; }
}
@media (min-width: 900px) {
  .nav-amplia { display: inline-flex !important; }
  .header-nav { gap: 8px; }
}

/* Portada --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 32px 0 var(--section);
  background:
    radial-gradient(60% 50% at 100% 0%, var(--blush) 0%, rgba(245, 230, 232, 0) 70%),
    radial-gradient(50% 40% at 0% 100%, var(--bg-alt) 0%, rgba(244, 236, 227, 0) 70%);
}
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.4rem, 17vw, 7rem); letter-spacing: .08em; line-height: .95;
}
.hero h1 span {
  display: block; font-style: italic; font-weight: 500; letter-spacing: 0; color: var(--accent);
  font-size: .5em; margin-top: 6px;
}
.hero-lead { font-size: 1.125rem; color: var(--muted); max-width: 34ch; margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-datos {
  list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .9375rem;
}
.hero-datos li { display: flex; align-items: center; gap: 8px; }
.hero-datos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Foto de portada cargada por el negocio. */
.hero-foto { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--photo-bg); box-shadow: var(--shadow); }
/* Collage con fotos del catálogo: mismas proporciones 3:4, sin recortar. */
.hero-collage { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; }
.hero-collage::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--blush); right: -12%; top: -8%;
}
.collage-item { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--photo-bg); box-shadow: var(--shadow); }
.collage-1 { grid-row: span 2; border-radius: 200px 200px var(--radius) var(--radius); }
.hero-collage-1 { grid-template-columns: 1fr; max-width: 420px; }
.hero-collage-2 .collage-2 { grid-row: span 2; align-self: center; }
.collage-item .ph { border-radius: 0; }
.collage-aviso {
  grid-column: 1 / -1; justify-self: end; margin-top: -2px;
  background: var(--warn-bg); color: var(--warn-ink); font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-small);
}
/* Sin fotos todavía: composición con la marca. */
.marca-panel {
  aspect-ratio: 4 / 5; max-height: 520px; width: 100%;
  border-radius: 200px 200px var(--radius) var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .55) 0 30%, transparent 31%),
    linear-gradient(160deg, var(--blush), var(--bg-alt));
  color: var(--accent);
}
.marca-letra { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(7rem, 30vw, 13rem); line-height: 1; }
.marca-sub { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--muted); }

@media (min-width: 768px) {
  .hero { padding: 64px 0 var(--section); }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-collage { gap: 16px; }
  .hero-media { width: 100%; max-width: 560px; justify-self: center; }
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .hero h1 { font-size: clamp(4.5rem, 8vw, 7rem); }
  .hero-media { max-width: none; }
}

/* Marcador de foto pendiente ------------------------------------------- */
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px; text-align: center; color: var(--muted);
  background: linear-gradient(160deg, var(--blush), var(--bg-alt));
}
.ph-monograma { font-family: var(--font-display); font-style: italic; font-size: 3.5rem; line-height: 1; color: var(--accent); opacity: .55; }
.ph-texto { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Categorías ------------------------------------------------------------ */
.categorias { padding: var(--section) 0 0; }
.cat-lista {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.cat-lista::-webkit-scrollbar { display: none; }
.cat-lista li { flex: 0 0 132px; scroll-snap-align: start; }
.cat-tile {
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: var(--radius);
}
.cat-foto {
  display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 8px;
  border-radius: 100px 100px var(--radius) var(--radius); background: var(--photo-bg);
}
.cat-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-foto img.img-horizontal { object-fit: contain; }
.cat-tile:hover .cat-foto img { transform: scale(1.04); }
.cat-nombre { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.cat-cantidad { font-size: .8125rem; color: var(--muted); }
@media (min-width: 1024px) {
  .cat-lista { margin: 0; padding: 4px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); overflow: visible; }
}

/* Catálogo -------------------------------------------------------------- */
.catalog { padding: 32px 0 56px; }
.catalog-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
.buscar input, .ordenar select {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-small);
  background: var(--surface); color: var(--ink); font-size: 1rem;
}
.buscar input {
  padding: 0 18px 0 46px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23645850' stroke-width='2' stroke-linecap='round' d='M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zM16 16l5 5'/%3E%3C/svg%3E") no-repeat 16px center / 20px;
}
.buscar input::placeholder { color: #8A7D74; }
.buscar input:focus, .ordenar select:focus { border-color: var(--ink); outline: none; }
.buscar input:focus-visible, .ordenar select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ordenar { display: flex; align-items: center; gap: 8px; }
.ordenar-texto { font-size: .875rem; color: var(--muted); display: none; }
.ordenar select {
  padding: 0 40px 0 16px; appearance: none; cursor: pointer; max-width: 170px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231F1A17' stroke-width='2' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
@media (min-width: 640px) {
  .catalog-tools { grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; }
  .ordenar-texto { display: inline; }
}

.filters {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 24px; padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: var(--radius-small);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 500; font-size: .9375rem; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 768px) {
  .filters { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-link {
  display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
  border-radius: var(--radius);
}
.card-photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .4s; }
.card-photo img.img-horizontal { object-fit: contain; }
.card-link:hover .card-photo img { transform: scale(1.03); }
.foto-alterna { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card-link:hover .con-alterna .foto-alterna { opacity: 1; }
}
.card-ver {
  position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .8125rem; font-weight: 500; letter-spacing: .06em;
  padding: 6px 14px; border-radius: var(--radius-small); white-space: nowrap; transition: opacity .25s, transform .25s; pointer-events: none;
}
@media (hover: hover) {
  .card-link:hover .card-ver, .card-link:focus-visible .card-ver { opacity: 1; transform: translate(-50%, 0); }
}
.badges { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 1; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.badge {
  background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-small);
}
.badge-demo { background: var(--warn-bg); color: var(--warn-ink); margin-left: auto; }
.card-agotada .card-photo img { opacity: .75; }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-cat { margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.card-name {
  margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em; }
.price-ask { color: var(--accent); font-weight: 500; font-size: .9375rem; }
.card-meta { margin: 0; font-size: .8125rem; color: var(--muted); }
.card .btn { margin-top: 12px; min-height: 44px; padding: 0 12px; font-size: .9375rem; width: 100%; }
@media (min-width: 640px) { .card-name { font-size: 1.35rem; } }

.sin-resultados, .empty {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted);
  background: var(--surface);
}
.sin-resultados p { margin: 0 0 16px; }
.empty h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--ink); margin-bottom: 6px; }
.empty p { margin: 0 0 20px; }
.empty-monograma { display: block; font-family: var(--font-display); font-style: italic; font-size: 4rem; line-height: 1; color: var(--accent); opacity: .6; }

/* Cómo comprar ---------------------------------------------------------- */
.pasos { padding: var(--section) 0; background: var(--bg-alt); }
.pasos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pasos-lista li {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 24px 22px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start;
}
.paso-icono {
  grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--blush); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.pasos-lista h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.paso-num { color: var(--accent); font-style: italic; font-weight: 500; margin-right: 2px; }
.pasos-lista p { margin: 0; color: var(--muted); }
@media (min-width: 768px) {
  .pasos-lista { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pasos-lista li { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 28px; }
  .paso-icono { grid-row: auto; margin-bottom: 12px; width: 64px; height: 64px; }
}

/* Información útil ------------------------------------------------------ */
.info { padding: var(--section) 0; }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; } }
.info-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 10px; }
.info-card ul { margin: 0; padding-left: 1.1em; }
.info-card p { margin: 0 0 8px; }
.info-card a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 500; }

/* Instagram ------------------------------------------------------------- */
.instagram { padding: var(--section) 0; background: var(--blush); }
.instagram-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.instagram-icono {
  width: 64px; height: 64px; border-radius: 50%; background: var(--surface); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: var(--shadow);
}
.instagram h2 { overflow-wrap: anywhere; }
.instagram-texto { color: var(--muted); margin: 8px 0 22px; }

/* Contacto -------------------------------------------------------------- */
.contact { padding: var(--section) 0; background: var(--accent-dark); color: #fff; }
.contact .eyebrow { color: #F3CBD8; }
.contact-inner { display: grid; gap: 24px; }
.contact-lead { color: #F1DCE3; margin: 12px 0 0; max-width: 40ch; font-size: 1.0625rem; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact .btn-pending { border-color: #fff; }
@media (min-width: 768px) {
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr auto; align-items: center; }
  .contact-actions { justify-content: flex-end; }
}

/* Pie ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #DCD3CA; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer-inner { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: .14em; color: #fff; }
.footer-tag { margin: 4px 0 0; color: #B9ADA3; }
.footer-titulo { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: #B9ADA3; }
.site-footer a, .footer-wa {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #fff; text-decoration: none;
}
.site-footer a:hover, .footer-wa:hover { color: #F3CBD8; text-decoration: underline; }
.footer-wa { padding: 0; border: 0; background: none; cursor: pointer; font-size: inherit; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact p { margin: 8px 0; }
.footer-legal p { margin: 20px 0 0; font-size: .8125rem; color: #B9ADA3; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

/* Botón flotante de WhatsApp ------------------------------------------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(15, 98, 52, .35);
  animation: aparecer .25s ease-out;
}
.wa-flotante:hover { background: var(--wa-dark); }
.wa-flotante-pendiente { background: var(--surface); color: var(--wa); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.wa-flotante-pendiente:hover { background: var(--surface); border-color: var(--ink); }
body.dialog-open .wa-flotante { display: none; }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Detalle de producto (dialog) ----------------------------------------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(31, 26, 23, .55); }
body.dialog-open { overflow: hidden; }

.detail {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
}
.detail-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; align-content: start; }
.detail-close {
  position: sticky; top: 10px; z-index: 2; justify-self: end; grid-row: 1; grid-column: 1;
  margin: 10px 10px 0 0; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer; color: var(--ink);
}
.detail-media { grid-row: 1; grid-column: 1; background: var(--photo-bg); min-width: 0; }
.detail-photo { aspect-ratio: 3 / 4; max-height: 58vh; margin: 0 auto; width: 100%; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbs { display: flex; gap: 8px; padding: 8px var(--gutter) 12px; overflow-x: auto; }
.detail-thumbs:empty { display: none; }
.thumb {
  flex: none; width: 64px; height: 84px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface);
}
.thumb[aria-current="true"] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-body { grid-row: 2; padding: 24px var(--gutter) 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.detail-cat { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 500; }
.detail-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.6rem); }
.detail-price { margin: 0; font-size: 1.4rem; font-weight: 600; }
.detail-price .price-ask { font-size: 1.1rem; }
.detail-desc { margin: 0; color: var(--muted); }
.detail-desc:empty { display: none; }
.detail-specs { margin: 4px 0 8px; display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-specs:empty { display: none; }
.detail-specs dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.detail-specs dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 44px; padding: 0 14px; border-radius: var(--radius-small); border: 1.5px solid var(--line); font-size: .9375rem; font-weight: 500; }
.detail-hint { margin: 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.stock-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 500; font-size: .9375rem; }

.detail-relacionados { grid-row: 3; grid-column: 1; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line); background: var(--bg); min-width: 0; }
.detail-relacionados h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 14px; }
.detail-relacionados ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.relacionado {
  width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
  display: flex; flex-direction: column; gap: 2px; border-radius: 12px;
}
.relacionado-foto { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--photo-bg); margin-bottom: 6px; }
.relacionado-foto img { width: 100%; height: 100%; object-fit: cover; }
.relacionado-foto img.img-horizontal { object-fit: contain; }
.relacionado-foto .ph-monograma { font-size: 2.5rem; }
.relacionado-nombre { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.relacionado-precio { font-size: .875rem; color: var(--muted); }
@media (min-width: 640px) { .detail-relacionados ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (min-width: 768px) {
  .detail { width: min(1000px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px); margin: auto; border-radius: 22px; }
  .detail-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
  .detail-close { grid-column: 2; }
  .detail-media { grid-row: 1 / span 2; }
  .detail-photo { max-height: 76vh; }
  .detail-body { grid-column: 2; grid-row: 1 / span 2; padding: 64px 36px 36px; justify-content: center; }
  .detail-relacionados { grid-column: 1 / -1; padding: 28px 36px 36px; }
}

/* Aviso de WhatsApp no configurado ------------------------------------- */
.notice { width: min(440px, calc(100% - 32px)); border-radius: 20px; padding: 26px; margin: auto; }
.notice h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 10px; }
.notice p { margin: 0 0 12px; color: var(--muted); }
.notice blockquote { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid var(--wa); background: #EEF6F1; border-radius: 6px; }

.noscript { padding: 16px; text-align: center; background: var(--warn-bg); color: var(--warn-ink); }
