/* Confortia: hoja de estilos de la web pública */

:root {
  --bg: #f4eeea;
  --surface: #fbf8f6;
  --rose: #e8c9c1;
  --rose-soft: #efdcd6;
  --wine: #6e1f2e;
  --wine-strong: #571624;
  --brass: #a57c3a;
  --ink: #2a1a1e;
  --muted: #66545a;
  --line: rgba(42, 26, 30, 0.16);
  --btn-bg: #6e1f2e;
  --btn-fg: #fbf3f1;
  --btn-bg-hover: #571624;
  --band: #3a141d;
  --band-ink: #f6ebe8;
  --band-muted: #d8bfc3;
  --sofa-fill: #7a2433;
  --sofa-line: rgba(255, 244, 240, 0.7);
  --focus: #a57c3a;

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1315;
    --surface: #251a1d;
    --rose: #3b272c;
    --rose-soft: #2f2024;
    --wine: #d58a98;
    --wine-strong: #e7a9b4;
    --brass: #cfa865;
    --ink: #f2e7e3;
    --muted: #bba7ac;
    --line: rgba(242, 231, 227, 0.16);
    --btn-bg: #9a3448;
    --btn-fg: #fff6f4;
    --btn-bg-hover: #b0405a;
    --band: #12090b;
    --band-ink: #f6ebe8;
    --band-muted: #c7b0b5;
    --focus: #cfa865;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 34em;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; text-underline-offset: 0.4em; }

/* ---------- Cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover { border-bottom-color: var(--brass); }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .header-wa .label { display: none; }
  .header-wa { width: 44px; min-height: 44px; padding: 0; }
  .header-inner { gap: 0.75rem; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a {
    display: block;
    padding: 0.95rem 0;
    font-family: var(--serif);
    font-size: 1.6rem;
    border-bottom: 1px solid var(--line);
  }
}

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

main { padding-top: var(--header-h); }

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-copy { padding-bottom: clamp(0rem, 2vw, 2rem); }
.hero h1 { max-width: 12.5em; }
.hero .lead { margin-top: 1.75rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}
.hero-cities {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-cities svg { width: 18px; height: 18px; fill: none; stroke: var(--brass); stroke-width: 1.5; }

.hero-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
  background: var(--rose);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 5 / 4; border-radius: 280px 280px 4px 4px; max-height: 62vh; width: 100%; }
}

/* ---------- Plano técnico ---------- */

.plano {
  background: var(--rose-soft);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-block: 1px solid var(--line);
}
.plano-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1.5rem 4rem;
  align-items: end;
}
.plano-head .lead { justify-self: end; }
.plano-figure { margin: clamp(2rem, 4vw, 3.5rem) 0 0; }
.drawing { width: 100%; height: auto; overflow: visible; }

.drawing .ln { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.drawing .ln-thin { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.45; }
.drawing .hidden-ln { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 6 5; opacity: 0.5; }
.drawing .uph { fill: var(--sofa-fill); stroke: var(--sofa-line); stroke-width: 1.4; stroke-linejoin: round; transition: fill 0.45s ease, stroke 0.45s ease; }
.drawing .uph-edge { fill: var(--sofa-fill); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.45s ease; }
.drawing .wood { fill: var(--ink); }
.drawing .cota { fill: none; stroke: var(--brass); stroke-width: 1.3; stroke-linecap: round; }
.drawing .ext { fill: none; stroke: var(--brass); stroke-width: 0.9; opacity: 0.75; }
.drawing .cota-num { fill: var(--brass); font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: 0.02em; }
.drawing .cota-unit { font-size: 15px; font-weight: 400; }
.drawing .view-label { fill: var(--muted); font-family: var(--sans); font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .js .drawing .cota,
  .js .drawing .ext {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: trazar 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: calc(0.35s + var(--i, 0) * 0.18s);
  }
  .js .drawing .cota-num {
    opacity: 0;
    animation: aparecer 0.6s ease forwards;
    animation-delay: calc(1.1s + var(--i, 0) * 0.18s);
  }
}
@media (max-width: 560px) {
  .drawing .cota-num { font-size: 30px; }
  .drawing .cota-unit { font-size: 20px; }
  .drawing .view-label { font-size: 24px; }
}
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }

.swatch-bar {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.swatch-bar > p { color: var(--muted); font-size: 0.98rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0.3rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
}
.swatch-btn .chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px var(--rose-soft);
  transition: box-shadow 0.2s ease;
}
.swatch-btn[aria-pressed='true'] .chip { box-shadow: inset 0 0 0 3px var(--rose-soft), 0 0 0 2px var(--ink); }
.swatch-btn[aria-pressed='true'] { font-weight: 500; }

@media (max-width: 760px) {
  .plano-head { grid-template-columns: 1fr; }
  .plano-head .lead { justify-self: start; }
  .plano-figure { margin-inline: calc(var(--gutter) * -0.5); }
}

/* ---------- Secciones ---------- */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { max-width: 30em; }

/* Categorías */
.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(190px, 19vw, 270px));
  grid-template-areas:
    'sofas sofas camas camas'
    'sofas sofas mesas armarios'
    'canapes canapes otros otros';
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.cat {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rose);
  text-decoration: none;
  color: var(--ink);
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cat:hover img { transform: scale(1.035); }
.cat-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: var(--bg);
  padding: 0.6rem 1rem 0.65rem;
  border-radius: 3px;
  display: grid;
  gap: 0.1rem;
}
.cat-name { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; font-weight: 500; }
.cat-count { font-size: 0.85rem; color: var(--muted); }
.cat[data-cat='Sofás'] { grid-area: sofas; }
.cat[data-cat='Camas'] { grid-area: camas; }
.cat[data-cat='Mesas'] { grid-area: mesas; }
.cat[data-cat='Armarios'] { grid-area: armarios; }
.cat[data-cat='Canapés'] { grid-area: canapes; }
.cat[data-cat='Otros muebles'] { grid-area: otros; }
.cat[data-cat='Sofás'] .cat-name { font-size: clamp(1.8rem, 3vw, 2.6rem); }

@media (max-width: 760px) {
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 300px repeat(3, 190px);
    grid-template-areas:
      'sofas sofas'
      'camas mesas'
      'armarios otros'
      'canapes canapes';
  }
}

/* Colección */
.coleccion { background: var(--surface); border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.filter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter .n { color: var(--muted); font-size: 0.85rem; }
.filter[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter[aria-pressed='true'] .n { color: inherit; opacity: 0.75; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.75rem);
}
.card { text-decoration: none; color: var(--ink); display: grid; gap: 1rem; align-content: start; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--rose-soft);
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card-media .alt { opacity: 0; }
.card:hover .card-media .alt { opacity: 1; }
.card:hover .card-media img:only-of-type { transform: scale(1.03); }
.card-media .placeholder { position: absolute; inset: 18% 12%; width: 76%; height: auto; color: var(--muted); opacity: 0.6; }
.card-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--bg);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
}
.card h3 { font-size: 1.6rem; transition: color 0.2s ease; }
.card:hover h3 { color: var(--wine); }
.card-meta { font-size: 0.92rem; color: var(--muted); margin-top: 0.3rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.card-price { font-weight: 500; font-size: 1rem; }
.card-price.ask { font-weight: 400; color: var(--wine); }
.dots { display: flex; gap: 4px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.dots .more { width: auto; height: auto; border: 0; font-size: 0.8rem; color: var(--muted); padding-left: 2px; }

.empty {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--bg);
}
.empty > svg { width: 100%; max-width: 420px; height: auto; color: var(--ink); justify-self: center; }
.empty h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.empty p { margin-top: 0.9rem; color: var(--muted); max-width: 32em; }
.empty .btn { margin-top: 1.6rem; }
@media (max-width: 760px) { .empty { grid-template-columns: 1fr; } .empty > svg { max-width: 300px; } }

/* Zonas */
.zonas { position: relative; color: #fff7f3; background: #2b1a1d; overflow: hidden; }
.zonas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.zonas-inner { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.zonas p { color: #f1dfdc; font-size: 1.1rem; max-width: 30em; }
.zonas h2 { color: #fff7f3; }
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; justify-items: end; }
.cities li { font-family: var(--serif); font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1; font-weight: 500; letter-spacing: -0.015em; }
.cities li:nth-child(2) { color: #e8c9c1; }
.zonas .btn { margin-top: 2rem; background: #fbf3f1; color: #3a141d; }
.zonas .btn:hover { background: #ffffff; }
@media (max-width: 760px) {
  .zonas-inner { grid-template-columns: 1fr; }
  .cities { justify-items: start; }
}

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.review { grid-column: span 4; margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border-radius: 4px; border: 1px solid var(--line); display: grid; gap: 1.25rem; align-content: space-between; }
.review:first-child { grid-column: span 8; grid-row: span 2; background: var(--rose-soft); }
.review:first-child blockquote p { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.review figcaption { display: flex; align-items: center; gap: 0.9rem; font-size: 0.95rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 500; display: block; }
.review img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.reviews.count-1 .review:first-child { grid-column: 1 / -1; grid-row: auto; }
.reviews.count-2 .review { grid-column: span 6; grid-row: auto; }
@media (max-width: 860px) { .review, .review:first-child, .reviews.count-2 .review { grid-column: 1 / -1; grid-row: auto; } }

/* Preguntas frecuentes */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-grid .lead { margin-top: 1.25rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--brass), var(--brass)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) center / 1.5px 14px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 40em; white-space: pre-line; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Contacto */
.contacto { background: var(--band); color: var(--band-ink); }
.contacto-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.contacto h2 { color: var(--band-ink); }
.tip { color: var(--band-muted); font-size: 1.08rem; max-width: 30em; justify-self: end; padding-left: 1.25rem; border-left: 1px solid #a57c3a; }
.contact-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(246, 235, 232, 0.2); }
.contact-rows a {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.4rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid rgba(246, 235, 232, 0.2);
  text-decoration: none;
  color: var(--band-ink);
  transition: background-color 0.25s ease, padding 0.25s ease;
}
.contact-rows a:hover { background: rgba(246, 235, 232, 0.05); padding-inline: 1rem; }
.contact-rows .what { color: var(--band-muted); font-size: 1rem; }
.contact-rows .value { font-family: var(--serif); font-size: clamp(1.3rem, 5.4vw, 3.2rem); line-height: 1.1; font-weight: 500; overflow-wrap: break-word; min-width: 0; }
.contact-rows .go {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--band-muted);
}
.contact-rows .go .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid rgba(246, 235, 232, 0.3); fill: var(--band-ink); }
@media (max-width: 760px) {
  .contacto-head { grid-template-columns: 1fr; }
  .tip { justify-self: start; }
  .contact-rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .contact-rows .what { grid-column: 1 / -1; }
  .contact-rows .go .txt { display: none; }
}

/* Pie */
.site-footer { background: var(--band); color: var(--band-muted); border-top: 1px solid rgba(246, 235, 232, 0.12); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.footer-logo img { width: 230px; height: auto; }
.footer-logo p { margin-top: 1.25rem; max-width: 24em; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--band-ink); letter-spacing: 0; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 235, 232, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-logo { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f7a4d;
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(30, 10, 14, 0.55);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); background: #17663f; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Ficha de producto ---------- */

.crumbs { padding: 1.75rem 0 0; font-size: 0.92rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line); }
.crumbs a { color: var(--muted); }

.product { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 8vw, 6rem); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--rose-soft);
  border-radius: 4px;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .placeholder { position: absolute; inset: 20% 10%; width: 80%; height: auto; color: var(--muted); opacity: 0.6; }
.gallery-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.92;
}
.gallery-nav:hover { opacity: 1; }
.gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gallery-nav.prev { left: 0.75rem; }
.gallery-nav.next { right: 0.75rem; }
.gallery-count { position: absolute; right: 0.75rem; bottom: 0.75rem; background: var(--bg); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.85rem; }
.thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; padding: 3px; }
.thumbs button {
  flex: none;
  width: 76px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: var(--rose-soft);
  opacity: 0.6;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.thumbs button:hover { opacity: 0.9; }
.thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.info .cat-line { color: var(--muted); font-size: 0.98rem; }
.info h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin-top: 0.4rem; }
.price { margin-top: 1rem; font-size: 1.35rem; font-weight: 500; }
.price.ask { font-weight: 400; color: var(--wine); font-size: 1.15rem; }
.info .desc { margin-top: 1.5rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; white-space: pre-line; max-width: 34em; }

.opt { border: 0; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); min-width: 0; }
.opt legend { padding: 0; font-weight: 500; font-size: 1rem; margin-bottom: 0.9rem; float: left; width: 100%; }
.opt legend .sel { font-weight: 400; color: var(--muted); }
.opt .choices { clear: both; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.colors .choices { gap: 1rem 1.1rem; }
.color-choice { display: grid; justify-items: center; gap: 0.45rem; width: 76px; text-align: center; cursor: pointer; }
.color-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.color-choice .chip {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px var(--bg);
  transition: box-shadow 0.2s ease;
}
.color-choice input:checked + .chip { box-shadow: inset 0 0 0 4px var(--bg), 0 0 0 2px var(--ink); }
.color-choice input:focus-visible + .chip { outline: 2px solid var(--focus); outline-offset: 4px; }
.color-choice .name { font-size: 0.85rem; line-height: 1.25; color: var(--muted); }
.color-choice input:checked ~ .name { color: var(--ink); font-weight: 500; }

.materials { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.materials h2 { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.materials p { margin-top: 0.5rem; color: var(--muted); white-space: pre-line; }

.ask-box { margin-top: 2.25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.ask-box .summary { font-size: 0.95rem; color: var(--muted); }
.ask-box .summary strong { color: var(--ink); font-weight: 500; }
.ask-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.ask-actions .btn { width: 100%; white-space: nowrap; }

.related { border-top: 1px solid var(--line); }

.notfound { padding: clamp(4rem, 10vw, 8rem) 0; max-width: 36em; }
.notfound p { margin-top: 1rem; color: var(--muted); }
.notfound .btn { margin-top: 2rem; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
