/* ============================================================
   Tiskalia Beauty Room — demo de renovación (heaptech)
   Identidad heredada de la web original (fucsia #ec4ba5)
   modernizada: 60 crema / 30 pluma / 10 fucsia.
   Tipografía: Marcellus (display) + Figtree (texto), Google Fonts.
   ============================================================ */

:root {
  /* Paleta 60-30-10 */
  --crema: #fdf7fa;
  --crema-2: #f7e9f1;
  --pluma: #2a1522;
  --pluma-2: #241019;
  --tinta-suave: #5d4455;
  --fucsia: #ec4ba5;
  --fucsia-oscuro: #b02c7c;      /* texto/CTA pequeño sobre claro: 5.8:1 */
  --rosa-texto: #f4dce8;         /* texto sobre pluma: ~12:1 */
  --rosa-muted: #d9c3d2;         /* texto secundario sobre pluma: ~10:1 */
  --linea: #ecd8e4;

  /* Tipografía */
  --display: 'Marcellus', Georgia, serif;
  --texto: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  /* Espaciado y forma */
  --max: 1180px;
  --radio-chip: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--texto);
  color: var(--pluma);
  background: var(--crema);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--fucsia-oscuro); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pluma); }

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

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: .01em; }

.contenedor { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fucsia-oscuro);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: inline-block; width: 2rem; height: 2px; background: var(--fucsia); vertical-align: middle; margin-right: .6rem; }

/* ---------- Cabecera ---------- */
.cabecera { background: var(--crema); border-bottom: 1px solid var(--linea); position: relative; z-index: 20; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }

.marca { text-decoration: none; color: var(--pluma); line-height: 1.05; }
.marca-nombre { font-family: var(--display); font-size: 1.55rem; letter-spacing: .04em; display: block; }
.marca-nombre em { font-style: normal; color: var(--fucsia-oscuro); }
.marca-sub { display: block; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--tinta-suave); }

.nav-lista { display: none; list-style: none; gap: 1.6rem; align-items: center; }
.nav-lista a { text-decoration: none; color: var(--pluma); font-weight: 600; font-size: .95rem; padding-block: .4rem; }
.nav-lista a:hover { color: var(--fucsia-oscuro); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--linea); border-radius: var(--radio-chip);
  padding: .6rem 1.05rem; font: 600 .9rem var(--texto); color: var(--pluma); cursor: pointer;
  min-height: 44px; min-width: 44px; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

.nav-movil { display: none; border-top: 1px solid var(--linea); background: var(--crema); }
.nav-movil.abierta { display: block; }
.nav-movil ul { list-style: none; padding: .6rem 1.25rem 1.2rem; }
.nav-movil a { display: block; padding: .85rem 0; font-weight: 600; color: var(--pluma); text-decoration: none; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
.nav-movil li:last-child a { border-bottom: 0; }

.cabecera-cta { display: none; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--fucsia); color: var(--pluma);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  border-radius: var(--radio-chip); padding: .95rem 1.7rem; min-height: 48px;
  text-decoration: none; border: 2px solid var(--fucsia);
  transition: background .2s, color .2s;
}
.boton:hover { background: var(--pluma); border-color: var(--pluma); color: #fff; }
.boton--claro { background: transparent; color: var(--pluma); border-color: var(--pluma); }
.boton--claro:hover { background: var(--pluma); color: #fff; }
.boton--sobre-oscuro { background: var(--fucsia); color: var(--pluma); border-color: var(--fucsia); }
.boton--sobre-oscuro:hover { background: #fff; border-color: #fff; color: var(--pluma); }

/* ---------- Hero collage (firma) ---------- */
.hero { background: var(--crema); padding-block: 2.2rem 3rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.3rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--fucsia-oscuro); }
.hero-texto p { font-size: 1.12rem; color: var(--tinta-suave); max-width: 34ch; margin-bottom: 1.7rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-ctas .tel { font-weight: 700; color: var(--pluma); text-decoration: none; font-size: 1.05rem; padding-block: .8rem; }
.hero-ctas .tel span { color: var(--fucsia-oscuro); }

.hero-sellos { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.9rem; padding: 0; list-style: none; }
.hero-sellos li {
  font-size: .82rem; font-weight: 600; color: var(--pluma);
  background: #fff; border: 1px solid var(--linea);
  border-radius: var(--radio-chip); padding: .45rem .95rem;
}

/* Collage: dos fotos apiladas con offset — firma del sitio */
.hero-fotos { position: relative; display: grid; gap: 1.1rem; }
.hero-fotos figure { margin: 0; }
.hero-foto-a {
  width: 78%; margin-left: auto;
  border-radius: 0 4.2rem 0 4.2rem;
  overflow: hidden;
}
.hero-foto-b {
  width: 62%; margin-top: -3.5rem;
  border-radius: 4.2rem 0 4.2rem 0;
  overflow: hidden;
  border: 6px solid var(--crema);
}
.hero-fotos img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-foto-b img { aspect-ratio: 4 / 3; }

.chip-flotante {
  position: absolute; left: 0; bottom: 1.4rem;
  background: var(--pluma); color: var(--rosa-texto);
  border-radius: 1rem; padding: .85rem 1.15rem; font-size: .85rem; line-height: 1.45;
  box-shadow: 0 10px 28px rgba(42, 21, 34, .25);
}
.chip-flotante strong { display: block; color: #fff; font-size: .95rem; }
.chip-flotante .hora { color: var(--fucsia); font-weight: 700; }

/* ---------- Bandas generales ---------- */
.banda { padding-block: 4.2rem; }
.banda--crema-2 { background: var(--crema-2); }
.banda--pluma { background: var(--pluma); color: var(--rosa-texto); }
.banda--pluma h2, .banda--pluma h3 { color: #fff; }
.banda--pluma p { color: var(--rosa-muted); }
.banda--fucsia { background: var(--fucsia); color: var(--pluma); }
.banda--fucsia h2 { color: var(--pluma); }
.banda--fucsia p { color: #3d1030; }

.cabecera-seccion { max-width: 46ch; margin-bottom: 2.6rem; }
.cabecera-seccion .eyebrow { color: var(--fucsia-oscuro); }
.cabecera-seccion h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: .8rem; }
.cabecera-seccion p { color: var(--tinta-suave); font-size: 1.05rem; }
.banda--pluma .cabecera-seccion p { color: var(--rosa-muted); }

/* ---------- Banda «El centro» ---------- */
.centro-grid { display: grid; gap: 2.2rem; }
.centro-texto p { font-size: 1.08rem; margin-bottom: 1.2rem; }
.centro-texto strong { color: #fff; }
.centro-datos { display: grid; gap: 1rem; }
.dato {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(244, 220, 232, .16);
  border-radius: 1.1rem; padding: 1.1rem 1.25rem;
}
.dato svg { width: 26px; height: 26px; flex: none; color: var(--fucsia); margin-top: .1rem; }
.dato h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.dato p { font-size: .95rem; }

/* ---------- Bandas de servicio (protagonista) ---------- */
.banda-servicio {
  display: grid;
  padding-block: 0;
  border-bottom: 1px solid var(--linea);
}
.banda-servicio:last-of-type { border-bottom: 0; }
.banda-servicio .svc-texto { padding: 3rem 1.25rem; }
.banda-servicio .svc-foto { position: relative; }
.banda-servicio .svc-foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
@media (min-width: 900px) {
  .banda-servicio .svc-foto img { aspect-ratio: auto; }
}
.svc-num {
  position: absolute; top: .4rem; left: 1.1rem; z-index: 2;
  font-family: var(--display); font-size: clamp(3.2rem, 9vw, 5.4rem); line-height: 1;
  color: #fff; text-shadow: 0 2px 18px rgba(42, 21, 34, .55);
}
.svc-num sup { font-size: .35em; }
.banda-servicio .svc-foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,21,34,.38), rgba(42,21,34,0) 45%);
}
/* Firma: esquina asimétrica según lado */
.banda-servicio--par .svc-foto img { border-radius: 0 0 4.5rem 0; }
.banda-servicio--impar .svc-foto img { border-radius: 0 0 0 4.5rem; }

.svc-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fucsia-oscuro); }
.banda-servicio h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: .5rem 0 .9rem; }
.banda-servicio p { color: var(--tinta-suave); max-width: 44ch; }
.svc-lista { list-style: none; margin: 1.2rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; }
.svc-lista li {
  font-size: .85rem; font-weight: 600;
  background: #fff; border: 1px solid var(--linea); color: var(--pluma);
  border-radius: var(--radio-chip); padding: .4rem .9rem;
}
.svc-enlace { font-weight: 700; color: var(--fucsia-oscuro); text-decoration: none; }
.svc-enlace::after { content: '→'; margin-left: .4rem; }
.svc-enlace:hover { color: var(--pluma); }

/* ---------- Aparatología (banda fucsia) ---------- */
.aparatologia .contenedor { display: grid; gap: 2rem; }
.aparatologia h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 1.6rem 0 2rem; }
.chips li {
  background: var(--pluma); color: var(--rosa-texto);
  font-weight: 600; font-size: .92rem;
  border-radius: var(--radio-chip); padding: .65rem 1.2rem;
}
.aparatologia .nota { font-size: .92rem; color: #3d1030; margin-bottom: 1.6rem; }

/* ---------- Galería scroll-snap ---------- */
.strip-cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.strip-cabecera p { color: var(--tinta-suave); max-width: 34ch; }
.strip {
  display: flex; gap: 1.1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-inline: 1.25rem 1.25rem;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: none;
  padding-bottom: .5rem;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure {
  flex: 0 0 min(72vw, 380px); scroll-snap-align: start; margin: 0;
}
.strip img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 0 2.6rem 0 2.6rem;
}
.strip--alterna figure:nth-child(even) img { border-radius: 2.6rem 0 2.6rem 0; }
.strip figcaption { font-size: .88rem; color: var(--tinta-suave); margin-top: .55rem; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--pluma-2); color: var(--rosa-texto); padding-block: 4.5rem 0; }
.cta-final h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }
.cta-final p { color: var(--rosa-muted); font-size: 1.08rem; margin: 1rem 0 2rem; max-width: 52ch; }
.cta-final .hero-ctas .tel { color: #fff; }
.cta-final .hero-ctas .tel span { color: var(--fucsia); }

/* ---------- Pie ---------- */
.pie { background: var(--pluma-2); color: var(--rosa-muted); border-top: 1px solid rgba(244,220,232,.14); }
.pie .contenedor { padding-block: 2.8rem 1.6rem; display: grid; gap: 2rem; }
.pie h3 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; letter-spacing: .06em; }
.pie ul { list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.pie a { color: var(--rosa-texto); }
.pie a:hover { color: var(--fucsia); }
.pie-direc { font-style: normal; }
.pie-horario strong { color: var(--rosa-texto); }
.pie-social { display: flex; gap: .6rem; margin-top: .9rem; }
.pie-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(244,220,232,.25); border-radius: 50%; color: var(--rosa-texto); }
.pie-social a:hover { border-color: var(--fucsia); color: var(--fucsia); }
.pie-social svg { width: 19px; height: 19px; }
.pie-legal { font-size: .8rem; color: var(--rosa-muted); padding-block: 1.1rem; }
.pie-legal .contenedor { padding-block: 1.1rem; }

/* ---------- CTA fija móvil ---------- */
.cta-movil {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(42, 21, 34, .96); backdrop-filter: blur(6px);
  transform: translateY(0); transition: transform .25s;
}
.cta-movil .boton { flex: 1; min-height: 48px; padding-block: .7rem; font-size: .95rem; }
.cta-movil .boton--claro { background: transparent; color: #fff; border-color: rgba(244,220,232,.4); }
.cta-movil .boton--claro:hover { border-color: #fff; }

body { padding-bottom: 0; }
.tiene-cta-movil { padding-bottom: 84px; }
@media (min-width: 900px) {
  .cta-movil { display: none; }
  .tiene-cta-movil { padding-bottom: 0; }
}

/* ---------- Formulario ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.campo { display: grid; gap: .35rem; }
.campo label { font-weight: 600; font-size: .95rem; color: var(--pluma); }
.campo .opcional { font-weight: 400; color: var(--tinta-suave); font-size: .85rem; }
.campo input, .campo select, .campo textarea {
  font: 500 1rem var(--texto); color: var(--pluma);
  background: #fff; border: 1.5px solid var(--linea); border-radius: .8rem;
  padding: .85rem 1rem; width: 100%;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 3px solid var(--fucsia); outline-offset: 1px; border-color: var(--fucsia-oscuro); }
.form-nota { font-size: .85rem; color: var(--tinta-suave); }
.form-ok {
  display: none; background: #fff; border: 1.5px solid var(--fucsia);
  border-radius: .9rem; padding: 1rem 1.2rem; font-weight: 600; color: var(--pluma);
}
.form-ok.visible { display: block; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; gap: 2.6rem; }
.contacto-form { background: #fff; border: 1px solid var(--linea); border-radius: 1.4rem; padding: 1.6rem 1.25rem; }
.contacto-form h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.contacto-form > p { color: var(--tinta-suave); font-size: .95rem; margin-bottom: 1.4rem; }
.contacto-datos h2 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin-bottom: 1rem; }
.contacto-datos > p { color: var(--tinta-suave); margin-bottom: 1.6rem; }
.tarjeta-dato {
  display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--linea);
}
.tarjeta-dato svg { width: 24px; height: 24px; flex: none; color: var(--fucsia-oscuro); margin-top: .15rem; }
.tarjeta-dato h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.tarjeta-dato p, .tarjeta-dato a { font-size: .98rem; color: var(--pluma); }
.tarjeta-dato a { font-weight: 600; }
.tarjeta-dato .suave { color: var(--tinta-suave); font-size: .92rem; }

/* ---------- Página servicios: cabecera ---------- */
.cabecera-pagina { background: var(--pluma); color: var(--rosa-texto); padding-block: 3.4rem 3rem; }
.cabecera-pagina h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 3.6rem); margin-bottom: .8rem; }
.cabecera-pagina p { color: var(--rosa-muted); max-width: 56ch; font-size: 1.05rem; }
.indice-servicios { background: var(--pluma); border-top: 1px solid rgba(244,220,232,.14); }
.indice-servicios ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; padding-block: 1.1rem;
}
.indice-servicios a {
  display: inline-block; font-size: .88rem; font-weight: 600; text-decoration: none;
  color: var(--rosa-texto); border: 1px solid rgba(244,220,232,.3);
  border-radius: var(--radio-chip); padding: .5rem 1rem;
}
.indice-servicios a:hover { border-color: var(--fucsia); color: var(--fucsia); }

.nota-precios { text-align: center; }
.nota-precios p { color: var(--tinta-suave); font-size: 1.02rem; max-width: 52ch; margin-inline: auto; }

/* ---------- Reveals (con criterio: nunca en el hero) ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal--d1 { transition-delay: .08s; }
html.js .reveal--d2 { transition-delay: .16s; }

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

/* ---------- ≥640px ---------- */
@media (min-width: 640px) {
  .banda-servicio .svc-texto { padding: 3.4rem 2.2rem; }
  .contacto-form { padding: 2.2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .campo--ancho { grid-column: 1 / -1; }
  .strip figure { flex-basis: 340px; }
}

/* ---------- ≥900px ---------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-lista { display: flex; }
  .cabecera-cta { display: inline-flex; }
  .nav-movil { display: none !important; }
  .hero { padding-block: 3.4rem 4.6rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.4rem; }
  .hero-fotos { grid-template-columns: 1fr 1fr; }
  .hero-foto-a { grid-column: 1 / 2; margin-top: 3.2rem; }
  .hero-foto-b { grid-column: 2 / 3; margin-top: 0; }
  .hero h1 { margin-bottom: 1.2rem; }
  .centro-grid { grid-template-columns: 1.1fr .9fr; gap: 3.2rem; align-items: start; }
  .banda-servicio { grid-template-columns: 1fr 1fr; min-height: 540px; }
  .banda-servicio--par .svc-foto { order: 2; }
  .banda-servicio--par .svc-texto { order: 1; padding: 4rem 2.4rem 4rem max(2.4rem, calc((100vw - var(--max)) / 2)); }
  .banda-servicio--impar .svc-texto { padding: 4rem 2.4rem 4rem 2.2rem; }
  .banda-servicio--par .svc-texto { padding-right: 2.4rem; }
  .banda-servicio .svc-texto { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .aparatologia .contenedor { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .contacto-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .pie .contenedor { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
  .banda { padding-block: 5.2rem; }
  .cta-final { padding-block: 5.6rem 0; }
  .indice-servicios ul { justify-content: center; }
  .chip-flotante { bottom: 2.2rem; }
}
