/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
section { scroll-margin-top: 88px; }

/* === FUENTES === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Shippori+Mincho:wght@400;500;600;700;800&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

/* === VARIABLES DE COLOR (tema washi por defecto) === */
:root {
  --bg: #f4efe4;
  --bg2: #ebe2d2;
  --ink: #2c2620;
  --muted: #7a6e5d;
  --accent: #b06a3c;
  --accentDeep: #8a4f29;
  --card: #fbf8f1;
  --line: rgba(44,38,32,.10);
  --nav-fg: rgba(251,246,238,.96);
  --nav-bg: transparent;
  --nav-shadow: none;
  --nav-border: transparent;
}

/* === TEMAS === */
:root.tema-arcilla {
  --bg: #ece0cb;
  --bg2: #dcc3a1;
  --ink: #3a2c1d;
  --muted: #7c6649;
  --accent: #9d5a2c;
  --accentDeep: #7a4420;
  --card: #f6ecdb;
  --line: rgba(58,44,29,.12);
}
:root.tema-sumi {
  --bg: #221d17;
  --bg2: #2c261d;
  --ink: #ece0cd;
  --muted: #a99a82;
  --accent: #cf9356;
  --accentDeep: #b07a3f;
  --card: #2d2720;
  --line: rgba(236,224,205,.13);
}

/* === ANIMACIÓN === */
@keyframes akFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* === LAYOUT GLOBAL === */
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

/* === NAV === */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,5vw,64px);
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  border-bottom: 1px solid var(--nav-border);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#nav a.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--nav-fg);
  transition: color .35s ease;
}
.logo-diamond {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.logo-diamond span {
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(-45deg);
}
.logo-text {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .04em;
}
.logo-text em { color: var(--accent); font-style: normal; }

#nav-links {
  display: flex;
  gap: clamp(20px,3vw,40px);
  color: var(--nav-fg);
  transition: color .35s ease;
}
#nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: .02em;
  opacity: .92;
}
#nav-links a:hover { opacity: 1; }

#nav-right {
  display: flex;
  align-items: center;
  gap: clamp(20px,3vw,44px);
}

#menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nav-fg);
  transition: color .35s ease;
}
#menu-btn span {
  height: 1.5px;
  background: currentColor;
  display: block;
  transform-origin: center;
  transition: transform .9s ease, opacity .6s ease, width .9s ease;
}
#menu-btn span:last-child { width: 70%; align-self: flex-end; }
/* Hamburguesa -> X al abrir */
#menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#menu-btn.is-open span:nth-child(2) { opacity: 0; }
#menu-btn.is-open span:last-child { width: 100%; transform: translateY(-6.5px) rotate(-45deg); }

/* Nav responsive: enlaces en escritorio, hamburguesa en móvil */
@media (max-width: 820px) { #nav-links { display: none; } }
@media (min-width: 821px) { #menu-btn { display: none; } }

/* === MENÚ OVERLAY === */
#menu-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20,16,12,.55);
  backdrop-filter: blur(4px);
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
#menu-overlay.open { opacity: 1; visibility: visible; }
#menu-panel {
  width: min(380px,86vw);
  height: 100%;
  background: var(--card);
  color: var(--ink);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
  transform: translateX(100%);
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
#menu-overlay.open #menu-panel { transform: translateX(0); }
#menu-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
#menu-panel-header span {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
}
#menu-close {
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink);
}
#menu-panel a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Shippori Mincho', serif;
  font-size: 25px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
#menu-panel p {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* === HERO === */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
#hero img {
  position: absolute;
  inset: -20% 0 -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  z-index: 1;
  will-change: transform;
}
/* Slideshow del hero: crossfade entre imágenes */
#hero img.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
#hero img.hero-slide.hero-active { opacity: 1; }

/* Selector de idioma */
.lang-switch { display: inline-flex; gap: 2px; align-items: center; margin-left: 6px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 13px; letter-spacing: .04em;
  color: var(--nav-fg, var(--ink)); opacity: .6; padding: 4px 5px;
  text-transform: uppercase; transition: opacity .2s;
}
.lang-btn:hover { opacity: .9; }
.lang-btn.active { opacity: 1; font-weight: 600; border-bottom: 1.5px solid var(--accent); }
.lang-sep { opacity: .4; color: var(--nav-fg, var(--ink)); font-size: 12px; }
#menu-panel .lang-switch { margin: 14px 0 0; }
#menu-panel .lang-btn { color: var(--ink); font-size: 15px; padding: 6px 8px; }
#hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10,8,5,.35) 0%,
    rgba(10,8,5,.10) 40%,
    rgba(10,8,5,.50) 75%,
    rgba(10,8,5,.80) 100%
  );
}
#hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,64px) clamp(70px,11vh,130px);
  color: #fbf6ee;
  text-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4);
}
#hero-content .inner { max-width: 760px; }
#hero-content .eyebrow {
  margin: 0 0 22px;
  font-family: 'Cormorant', serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(251,246,238,.82);
}
#hero-content h1 {
  margin: 0;
  font-family: 'Cormorant', serif;
  font-weight: 600;
  font-size: clamp(42px,6.4vw,86px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
#hero-content .subtitle {
  margin: 26px 0 0;
  max-width: 540px;
  font-size: clamp(16px,1.5vw,19px);
  line-height: 1.65;
  color: rgba(251,246,238,.86);
  font-weight: 300;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fbf6ee;
  color: #2c2620;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(251,246,238,.08);
  color: #fbf6ee;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(251,246,238,.45);
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(251,246,238,.18); }

/* === STATS === */
#stats {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(36px,5vw,52px) clamp(20px,5vw,64px);
}
#stats .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: clamp(28px,4vw,56px);
}
.stat { display: flex; flex-direction: column; gap: 7px; }
.stat-num {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(34px,4vw,46px);
  line-height: 1;
  color: var(--accent);
  filter: blur(10px);
  transition: filter 1s ease;
}
.stat-num.enfocado {
  filter: blur(0);
}
.stat-label { font-size: 14px; line-height: 1.5; opacity: .78; }

/* === PROPIEDADES === */
#propiedades {
  padding: clamp(64px,9vw,116px) clamp(20px,5vw,64px);
  background: var(--bg2);
}
#propiedades .inner { max-width: 1220px; margin: 0 auto; }
.section-eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-header { text-align: center; max-width: 680px; margin: 0 auto; }
.section-header h2 {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: clamp(34px,4.6vw,60px);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.section-header p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Selector Venta / Alquiler */
#op-switch {
  margin: 44px auto 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  width: fit-content;
}
#op-switch:empty { display: none; }
.op-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14.5px;
  color: var(--muted);
  padding: 9px 22px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.op-btn.active {
  background: var(--accent);
  color: #fbf6ee;
}

#filtros {
  margin: 20px auto 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }

.chip-region {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .2s ease;
}
.chip-region.active {
  background: var(--accent);
  color: #fbf6ee;
  border-color: var(--accent);
}

.chip-tipo {
  padding: 7px 15px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s ease;
}
.chip-tipo.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

#count-label {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 36px;
}

#grid-propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: clamp(22px,2.6vw,38px);
}

.card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: akFade .5s ease both;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(40,30,20,.16); }

.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--bg2) 0 12px, var(--card) 12px 24px);
}
.card-img-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .7;
}
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  background: rgba(20,16,12,.62);
  color: #fbf6ee;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.card-badge.badge-vendida {
  background: #8a2f1a;
}
.card-badge.badge-reservada {
  background: #b0742a;
}
.card.vendida .card-img img {
  filter: grayscale(.7);
  opacity: .78;
}
.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card-tipo {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-titulo {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.22;
}
.card-specs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
  padding-bottom: 4px;
}
.card-spec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.diamond {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.card-precio-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card-precio {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.1;
}
/* Equivalencia aproximada en € y $ bajo el precio en yenes. */
.card-equiv {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .01em;
}
.card-equiv:empty { display: none; }
.card-anio { font-size: 12.5px; color: var(--muted); }

.btn-ver-todas {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid var(--ink);
  padding: 14px 32px;
  border-radius: 999px;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.btn-ver-todas:hover {
  background: var(--ink);
  color: var(--bg);
}

#vacio {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 50px 0;
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
}

/* === PROCESO === */
.proceso-band {
  position: relative;
  height: clamp(300px, 50vh, 560px);
  overflow: hidden;
}
.proceso-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,5,.25) 0%, rgba(10,8,5,.55) 100%);
  z-index: 2;
}
.proceso-band-texto {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(20px,4vw,48px);
  color: rgba(255,255,255,0.72);
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px,4.5vw,58px);
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 3px rgba(0,0,0,.4);
  letter-spacing: -.01em;
}
.proceso-band img {
  position: absolute;
  inset: -20% 0 -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  will-change: transform;
}

#proceso {
  background: var(--bg);
  padding: clamp(64px,9vw,116px) clamp(20px,5vw,64px);
}
#proceso .inner { max-width: 1180px; margin: 0 auto; }
#proceso .intro { max-width: 620px; }
#proceso h2 {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: clamp(32px,4.4vw,56px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
#pasos {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: clamp(28px,3vw,48px);
}
.paso {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}
.paso-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: .04em;
}
.paso h3 {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.2;
}
.paso p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }

/* === NOSOTROS === */
#nosotros {
  background: var(--bg);
  padding: clamp(64px,9vw,116px) clamp(20px,5vw,64px);
}
#nosotros .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: clamp(40px,6vw,80px);
  align-items: center;
}
#nosotros h2 {
  margin: 0 0 22px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: clamp(30px,4vw,50px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
#nosotros p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.78; }
#nosotros a.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: gap .2s;
}
#nosotros a.cta-link:hover { gap: 16px; }
.nosotros-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.nosotros-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.nosotros-img span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .7;
}

/* === MAPA === */
#mapa {
  background: var(--bg2);
  padding: clamp(40px,5vw,64px) clamp(20px,5vw,64px);
}
#mapa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 640px) { #mapa-grid { grid-template-columns: 1fr; } }
#mapa-kansai { width: 100%; max-width: 480px; }
.map-pref {
  fill: var(--accent);
  opacity: .55;
  stroke: var(--bg2);
  stroke-width: 0.6;
  cursor: pointer;
  transition: opacity .2s;
}
.map-pref:hover, .map-pref.activa { opacity: 1; }
.map-label {
  fill: var(--card);
  font-size: 6px;
  font-weight: 600;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  pointer-events: none;
  text-anchor: middle;
}
#mapa-info { display: flex; flex-direction: column; gap: 20px; }
.mapa-hint { color: var(--muted); font-size: 15px; margin: 0; }
#mapa-detalle h3 { margin: 0 0 10px; font-family: 'Shippori Mincho', serif; font-size: 26px; }
#mapa-detalle p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.mapa-leyenda { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.leyenda-item { display: flex; align-items: center; gap: 6px; }

/* === ANTES/DESPUÉS === */
#antes-despues {
  background: var(--bg);
  padding: clamp(64px,9vw,116px) clamp(20px,5vw,64px);
}
.comparador {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  margin: 40px auto 0;
  border: 1px solid var(--line);
}
.comp-despues, .comp-antes {
  position: absolute;
  inset: 0;
}
.comp-despues img, .comp-antes img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.comp-antes {
  width: 50%;
  overflow: hidden;
}
.comp-antes img { width: auto; min-width: 100%; max-width: none; }
.comp-label {
  position: absolute;
  bottom: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
  padding: 4px 10px;
  text-transform: uppercase;
}
.comp-despues .comp-label { right: 14px; }
.comp-antes .comp-label { right: 14px; }
.comp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.comp-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
}
.comp-circle {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
  letter-spacing: -2px;
}

/* === FAQ === */
#faq {
  background: var(--card);
  padding: clamp(64px,9vw,116px) clamp(20px,5vw,64px);
}
#faq-lista {
  margin: 48px auto 0;
  max-width: 780px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* === TESTIMONIOS === */
#testimonios {
  background: var(--bg2);
  padding: clamp(64px,9vw,116px) clamp(20px,5vw,64px);
}
#testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.testimonio {
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.testimonio p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  font-style: italic;
}
.testimonio cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: .04em;
}
.testimonio cite strong { color: var(--ink); }

/* === CONTACTO === */
#contacto {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px,9vw,120px) clamp(20px,5vw,64px);
}
#contacto .inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: clamp(40px,6vw,72px);
}
#contacto h2 {
  margin: 0 0 20px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: clamp(30px,4vw,48px);
  line-height: 1.1;
}
#contacto .intro-text { margin: 0 0 28px; opacity: .78; font-size: 16px; line-height: 1.75; }
#contacto .datos { display: flex; flex-direction: column; gap: 12px; opacity: .85; font-size: 15px; }

#form-enviado {
  display: none;
  background: var(--accent);
  color: #fbf6ee;
  padding: 38px 30px;
  flex-direction: column;
  gap: 12px;
}
#form-enviado.visible { display: flex; }
#form-enviado span {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
}
#form-enviado p { margin: 0; line-height: 1.7; opacity: .95; }

#contacto form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#contacto input,
#contacto select,
#contacto textarea {
  background: rgba(251,246,238,.06);
  border: 1px solid rgba(251,246,238,.22);
  color: var(--bg);
  padding: 14px 16px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  outline: none;
  width: 100%;
}
#contacto select option { color: #2c2620; }
#contacto textarea { resize: vertical; }
/* Casilla de consentimiento (no debe heredar el width:100% de los inputs) */
#contacto .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: -2px;
}
#contacto .form-consent input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
#contacto .form-consent span {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(251,246,238,.75);
}
#contacto button[type="submit"] {
  background: var(--accent);
  color: #fbf6ee;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}
#contacto button[type="submit"]:hover { background: var(--accentDeep); }

/* === FOOTER === */
footer {
  background: var(--bg2);
  color: var(--ink);
  padding: clamp(40px,6vw,64px) clamp(20px,5vw,64px) 32px;
}
footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .logo-text { font-size: 21px; }
.footer-social {
  max-width: 1180px;
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}
.footer-social a:hover { color: var(--accent); }
.footer-social svg { flex: 0 0 auto; width: 20px; height: 20px; }
footer nav {
  display: flex;
  gap: clamp(26px,4vw,56px);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
footer nav a { color: inherit; text-decoration: none; }
footer nav a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,.30);
}
.whatsapp-btn svg { display: block; }

/* === SELECTOR DE ESTILO === */
#style-switcher {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(40,30,20,.18);
}
#style-switcher span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 2px;
}
.swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  border: 2px solid transparent;
  outline: 1px solid var(--line);
  transition: transform .2s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--accent); }
