/* ============================================================
   Destellos Peluqueros — demo de renovación (heaptech)
   Concepto: «Belleza saludable» — cálido, luminoso, de barrio.
   60% crema · 30% espresso · 10% ámbar (destellos)
   Tipografía: Playfair Display (display) + Poppins (texto)
   ============================================================ */

:root {
  /* paleta 60-30-10 */
  --cream:  #faf5ef;   /* 60 fondo principal */
  --sand:   #f3e2cf;   /* banda alternativa cálida */
  --ink:    #2b2119;   /* 30 espresso: texto y bandas oscuras */
  --ink-2:  #4a3a2c;   /* overlay sobre foto */
  --muted:  #5c5248;   /* texto secundario sobre crema (7.03:1) */
  --glow:   #ffbc7d;   /* 10 acento destello (sobre ink: 9.55:1) */
  --accent: #8a5a2e;   /* acento sobre crema (5.41:1) */
  --line:   rgba(43,33,25,.16);
  --cream-2:#e9dccd;   /* texto secundario sobre ink (11.68:1) */

  --font-display: "Playfair Display", Georgia, serif;
  --font-text: "Poppins", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 14px 34px rgba(43,33,25,.14);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--accent); }

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

.salto {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0;
}
.salto:focus { left: 0; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* ---------- bandas a ancho completo ---------- */
.band { padding-block: clamp(3.2rem, 8vw, 6.2rem); }
.band--crema  { background: var(--cream); }
.band--arena  { background: var(--sand); }
.band--tinta  { background: var(--ink); color: var(--cream); }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.9rem, 7.5vw, 5.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.band--tinta .eyebrow { color: var(--glow); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.band--tinta .lead { color: var(--cream-2); }

/* motivo destello */
.spark { display: inline-block; width: .7em; height: .7em; flex: none; }
.spark svg { display: block; width: 100%; height: 100%; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.7em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--tinta  { background: var(--ink); color: var(--cream); }
.btn--tinta:hover { background: #3d2f22; }
.btn--claro  { background: var(--cream); color: var(--ink); }
.btn--claro:hover { background: #fff; }
.btn--glow   { background: var(--glow); color: var(--ink); }
.btn--glow:hover { background: #ffc98f; }
.btn--linea  { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--linea:hover { background: var(--ink); color: var(--cream); }

/* ---------- cabecera ---------- */
.cabecera { background: var(--cream); border-bottom: 1px solid var(--line); }
.cabecera .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
}
.marca { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.marca img { width: 46px; height: 46px; border-radius: 50%; }
.marca strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.marca small { display: block; font-family: var(--font-text); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }
.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); }

.menu { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.menu a {
  display: block; padding: .8rem 1rem; text-decoration: none;
  color: var(--ink); font-weight: 500; border-radius: 8px;
}
.menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu a:hover { background: var(--sand); }
.menu .btn { margin: .6rem 1rem .9rem; }
.menu.open { display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.cabecera { position: relative; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .menu { display: block !important; }
  .menu ul { flex-direction: row; align-items: center; gap: .4rem; }
  .menu a { padding: .55rem .9rem; }
  .menu .btn { margin: 0 0 0 .6rem; }
  .menu.open { position: static; box-shadow: none; border: 0; }
}

/* ---------- hero editorial ---------- */
.hero { background: var(--cream); padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 .spark { width: .38em; height: .38em; vertical-align: .5em; margin-left: .12em; }
.hero h1 .spark svg { fill: var(--accent); }
.hero .claim { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink); }
.hero .claim em { font-family: var(--font-display); font-style: italic; color: var(--accent); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-block: 1.8rem 1.6rem; }

.sellos { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: 0; margin: 0; list-style: none; }
.sellos li { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; color: var(--muted); }
.sellos .spark svg { fill: var(--accent); }

.hero-foto { margin-top: clamp(2.4rem, 6vw, 4rem); }
.hero-foto .container { width: min(var(--maxw), 92%); margin-inline: auto; }
.hero-foto.fullbleed { width: 100%; }
.hero-foto.fullbleed .container { width: 100%; max-width: none; padding-inline: 0; }
.hero-foto.fullbleed figcaption { padding-inline: max(4%, calc((100vw - var(--maxw)) / 2)); }
.hero-foto figure { margin: 0; }
.hero-foto img { width: 100%; height: clamp(240px, 48vw, 560px); object-fit: cover; }
.hero-foto figcaption { font-size: .85rem; color: var(--muted); padding-top: .7rem; }

/* ---------- banda historia ---------- */
.historia-grid { display: grid; gap: 2.2rem; }
@media (min-width: 860px) {
  .historia-grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.cifras { display: flex; gap: 2.4rem; }
.cifras div { border-left: 3px solid var(--glow); padding-left: 1rem; }
.cifras strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--glow); }
.cifras span { font-size: .85rem; color: var(--cream-2); }

/* ---------- servicios: bandas verticales alternas ---------- */
.svc-banda { display: grid; }
.svc-banda + .svc-banda { border-top: 1px solid var(--line); }
.svc-foto { min-height: 300px; }
.svc-foto img { width: 100%; height: 100%; object-fit: cover; }
.svc-texto { padding: clamp(2rem, 5vw, 4rem) 0; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.svc-texto .container { width: min(var(--maxw), 92%); margin-inline: auto; }
.svc-num { font-family: var(--font-display); font-size: .95rem; color: var(--accent); letter-spacing: .1em; }

@media (min-width: 860px) {
  .svc-banda { grid-template-columns: 1fr 1fr; }
  .svc-banda .svc-foto { order: 0; min-height: 520px; height: 100%; }
  .svc-banda .svc-texto { order: 1; padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 5.5rem); }
  .svc-banda--flip .svc-foto { order: 1; }
  .svc-banda--flip .svc-texto { order: 0; }
  .svc-texto { padding-inline: clamp(2rem, 5vw, 4.5rem); }
}

.icono-svc { width: 52px; height: 52px; margin-bottom: .4rem; }

.lista-svc { list-style: none; margin: .4rem 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.lista-svc li {
  background: var(--sand); border: 1px solid var(--line); color: var(--ink);
  font-size: .88rem; font-weight: 500; padding: .35rem .85rem; border-radius: 999px;
}

/* ---------- reseñas ---------- */
.resenas { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .resenas { grid-template-columns: repeat(3, 1fr); } }
.resena {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow); margin: 0;
  display: flex; flex-direction: column; gap: .8rem;
}
.resena blockquote { margin: 0; font-family: var(--font-display); font-size: 1.06rem; line-height: 1.5; color: var(--ink); }
.resena footer { margin-top: auto; font-size: .85rem; color: var(--muted); }
.resena footer strong { color: var(--ink); font-weight: 600; }
.resenas .spark svg { fill: var(--glow); }

/* ---------- galería scroll-snap ---------- */
.galeria {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px);
  gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(4%, calc((100vw - var(--maxw)) / 2));
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.galeria figure { margin: 0; scroll-snap-align: center; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.galeria figcaption { font-size: .82rem; color: var(--muted); padding-top: .55rem; }

/* ---------- CTA bandas ---------- */
.cta-band { text-align: center; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.6rem; }
.cta-band .spark svg { fill: var(--glow); }
.cta-band h2 .spark { width: .45em; height: .45em; vertical-align: .55em; }

/* ---------- pie ---------- */
.pie { background: var(--ink); color: var(--cream-2); padding-block: clamp(2.6rem, 6vw, 4rem) 1.6rem; }
.pie-grid { display: grid; gap: 2.2rem; }
@media (min-width: 860px) { .pie-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.pie h3 { color: var(--cream); font-size: 1.05rem; font-family: var(--font-text); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pie a { color: var(--cream-2); text-decoration: none; }
.pie a:hover { color: var(--glow); text-decoration: underline; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pie .marca strong { color: var(--cream); }
.pie .marca small { color: var(--cream-2); }
.pie-legal { border-top: 1px solid rgba(250,245,239,.18); margin-top: 2.4rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .78rem; }
.pie-legal p { margin: 0; }

/* ---------- barra CTA móvil ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--ink); border-top: 1px solid rgba(250,245,239,.2);
}
.cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; font-weight: 600; text-decoration: none; font-size: .95rem;
}
.cta-bar .llamar { color: var(--cream); background: var(--ink); }
.cta-bar .reservar { color: var(--ink); background: var(--glow); }
@media (min-width: 860px) { .cta-bar { display: none; } }
@media (max-width: 859px) { body { padding-bottom: 56px; } }

/* ---------- formulario ---------- */
.contacto-grid { display: grid; gap: 2.6rem; }
@media (min-width: 900px) { .contacto-grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }

.formulario {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.4rem);
}
.formulario p { margin: 0 0 1.1rem; }
.formulario label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .3rem; }
.formulario input, .formulario select, .formulario textarea {
  width: 100%; padding: .75rem .9rem; min-height: 46px;
  border: 1px solid rgba(43,33,25,.3); border-radius: 10px;
  font-family: var(--font-text); font-size: 1rem; color: var(--ink); background: var(--cream);
}
.formulario textarea { min-height: 120px; resize: vertical; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-fila { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-fila { grid-template-columns: 1fr 1fr; } }
.form-ok {
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px;
  background: var(--sand); border: 1px solid var(--accent); color: var(--ink); font-size: .95rem;
}

.dato-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.dato-lista li { display: grid; gap: .15rem; }
.dato-lista .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.dato-lista .v { font-size: 1.02rem; }
.dato-lista .v a { text-decoration: none; }
.dato-lista .v a:hover { text-decoration: underline; }

/* ---------- animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }

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

/* ---------- varias ---------- */
.band--arena .lista-svc li { background: #fff; }
.margen-final { margin-bottom: 0; }
.sin-hueco { padding-bottom: 0 !important; }
.notita { font-size: .85rem; color: var(--muted); }
