/* ============================================================
   NiM Salón — demo de renovación (heaptech)
   Identidad original conservada y modernizada:
   aire editorial, serif + sans ligeras, acentos menta/rosa/lavanda.
   ============================================================ */

:root {
  /* Paleta (60-30-10) */
  --ivory:   #FAF9F6;  /* 60% fondo */
  --ink:     #141414;  /* texto */
  --ink-70:  rgba(20, 20, 20, .74);
  --menta:   #B6D2D0;  /* 30% banda */
  --rosa:    #FFBBCB;  /* 10% acento CTA */
  --lavanda: #AE96F2;  /* acento secundario */
  --line:    rgba(20, 20, 20, .14);
  --overlay: rgba(15, 15, 15, .55);

  /* Tipografía */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Espaciado / radio */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2.5rem; --sp-5: 4.5rem;
  --wrap: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--f-display); font-weight: 550; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 var(--sp-2); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 var(--sp-2); }
a { color: inherit; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.eyebrow {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-70); margin-bottom: var(--sp-2); font-weight: 600;
}
.eyebrow .n { font-family: var(--f-display); font-style: italic; margin-right: .5em; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.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;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--f-body); text-decoration: none;
  padding: 1rem 1.6rem; min-height: 48px; border: 2px solid var(--ink);
  border-radius: 999px; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; }
.btn-rosa { background: var(--rosa); color: var(--ink); border-color: var(--ink); }
.btn-rosa:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn svg { flex: none; }

/* ---------- Cabecera ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory); border-bottom: 1px solid var(--line);
}
.site-head .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}
.logo { font-family: var(--f-display); font-weight: 600; font-size: 1.55rem; text-decoration: none; letter-spacing: -.02em; }
.logo em { font-style: italic; font-weight: 480; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 12px; cursor: pointer; min-width: 44px; min-height: 44px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; gap: .2rem; }
.site-nav a {
  display: block; padding: .8rem .4rem; text-decoration: none;
  font-size: 1.15rem; font-family: var(--f-display);
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { font-style: italic; }
.site-head.open .site-nav { display: block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-head .bar { padding: 1rem 0; }
  .site-nav { display: block !important; }
  .site-nav ul { display: flex; gap: 2rem; padding: 0; }
  .site-nav a { border: 0; padding: .3rem 0; font-size: 1.02rem; font-family: var(--f-body); font-weight: 500; }
  .site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
}

/* ---------- Hero editorial tipográfico ---------- */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 0; }
.hero .eyebrow { margin-bottom: var(--sp-3); }
.hero h1 {
  font-size: clamp(2.9rem, 9.5vw, 7.6rem);
  font-weight: 560; margin-bottom: var(--sp-3);
  max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 430; }
.hero .lede { max-width: 46ch; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-70); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-4); }

/* Tira de fotos horizontal */
.strip {
  display: flex; gap: var(--sp-2);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 4vw var(--sp-3);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 auto; scroll-snap-align: center; margin: 0; position: relative; }
.strip img { border-radius: var(--radius); object-fit: cover; }
.strip .tall { width: min(64vw, 340px); }
.strip .tall img { width: 100%; height: min(62vh, 480px); }
.strip .wide { width: min(86vw, 560px); }
.strip .wide img { width: 100%; height: min(62vh, 480px); }

/* ---------- Secciones de contenido ---------- */
.section { padding: var(--sp-5) 0; }
.section-head { max-width: 30ch; margin-bottom: var(--sp-4); }
.section-head p { color: var(--ink-70); max-width: 52ch; }

/* Sellos de confianza */
.sellos { display: grid; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.sellos li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.sellos svg { flex: none; margin-top: .15rem; }
.sellos strong { display: block; font-family: var(--f-display); font-size: 1.12rem; font-weight: 560; }
.sellos span { color: var(--ink-70); font-size: .97rem; }
@media (min-width: 760px) { .sellos { grid-template-columns: repeat(3, 1fr); } }

.dos-col { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 900px) { .dos-col { grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); } }

/* ---------- Bandas verticales texto/foto (protagonista) ---------- */
.band { display: grid; min-height: min(88vh, 780px); }
.band .band-media { position: relative; overflow: hidden; min-height: 62vw; }
.band .band-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.band .band-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 5.5rem);
}
.band .num {
  font-family: var(--f-display); font-style: italic; font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1; opacity: .5; display: block; margin-bottom: .6rem;
}
.band h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.band p { max-width: 42ch; }
.band .band-text > * { max-width: 34rem; }
.band .cta-row { margin-top: var(--sp-2); display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.band--menta  .band-text { background: var(--menta); }
.band--rosa   .band-text { background: var(--rosa); }
.band--lavanda .band-text { background: var(--lavanda); }
@media (min-width: 860px) {
  .band { grid-template-columns: 1fr 1fr; min-height: min(92vh, 820px); }
  .band .band-media { min-height: 100%; }
  .band--flip .band-media { order: 2; }
  .band--flip .band-text { order: 1; }
}
@media (max-width: 859px) {
  .band .band-media { min-height: 96vw; }
}

/* Parallax sutil en fotos de banda (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band .band-media img {
      animation: bandpar linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    @keyframes bandpar { from { transform: scale(1.1); } to { transform: scale(1); } }
  }
}

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--rosa); padding: var(--sp-5) 0; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 52ch; }
.cta-band .cta-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }

/* ---------- Galería horizontal ---------- */
.gallery {
  display: flex; gap: var(--sp-2); overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0 4vw;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; position: relative; }
.gallery img { width: min(72vw, 320px); height: min(74vh, 460px); object-fit: cover; border-radius: var(--radius); }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .08em;
  padding: .35rem .7rem; border-radius: 999px;
}
.scroll-hint { color: var(--ink-70); font-size: .9rem; padding: .8rem 4vw 0; }

/* ---------- Testimonios ---------- */
.testi { display: grid; gap: var(--sp-3); }
.testi blockquote {
  margin: 0; padding: var(--sp-3) 0 0; border-top: 2px solid var(--ink);
}
.testi blockquote p { font-family: var(--f-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; }
.testi footer { font-size: .92rem; color: var(--ink-70); }
@media (min-width: 900px) { .testi { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bono regalo / cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; height: 320px; object-fit: cover; }
.card .card-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: auto; }
.cards { display: grid; gap: var(--sp-3); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lista de servicios (página servicios) ---------- */
.svc-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; }
.svc-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .8rem; align-items: baseline; }
.svc-list li::before { content: "→"; font-family: var(--f-display); font-style: italic; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--sp-5); } }

.datos { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.datos li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.datos svg { flex: none; margin-top: .2rem; }
.datos a { text-decoration: none; font-weight: 600; }
.datos a:hover { text-decoration: underline; }
.datos .lbl { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); margin-bottom: .2rem; }
address { font-style: normal; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); }
.form .row { display: grid; gap: var(--sp-2); }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: var(--sp-2); }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: 1rem var(--f-body); padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--ivory); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.form .micro { font-size: .88rem; color: var(--ink-70); margin: .6rem 0 0; }
.form-ok {
  display: none; padding: 1rem 1.2rem; border-radius: 10px;
  background: var(--menta); font-weight: 600; margin-top: var(--sp-2);
}
.form-ok.visible { display: block; }

/* ---------- Pie ---------- */
.site-foot { background: var(--menta); padding: var(--sp-5) 0 calc(var(--sp-4) + env(safe-area-inset-bottom)); }
.site-foot .cols { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot .logo { font-size: 2rem; }
.site-foot p { color: var(--ink-70); }
.site-foot h2 { font-size: 1rem; font-family: var(--f-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot a { text-decoration: none; font-weight: 600; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { margin-top: var(--sp-4); padding-top: var(--sp-2); border-top: 1px solid rgba(20,20,20,.2); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--ink-70); }

/* ---------- CTA sticky móvil ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; gap: 1px; background: var(--ink); border-top: 1px solid var(--ink);
  transform: translateY(0);
}
.cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; font-weight: 600; text-decoration: none;
}
.cta-bar .call { background: var(--ivory); color: var(--ink); }
.cta-bar .book { background: var(--rosa); color: var(--ink); }
@media (min-width: 900px) { .cta-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 57px; } .site-foot { padding-bottom: calc(var(--sp-4) + 57px); } }

/* ---------- Revelado al scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; }
}
