/* ============================================================
   LÚMINA — Medicina Estética · "Porcelana precisa"
   Porzellan #F4F3F0 · Anthrazit #26262A · Salbei #8FA396 · Stein #DBD9D4
   ============================================================ */

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-italic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --porcelana: #F4F3F0;
  --tinta: #26262A;
  --salvia: #8FA396;
  --salvia-osc: #75897C;
  --piedra: #DBD9D4;
  --tinta-suave: rgba(38, 38, 42, .62);
  --hairline: 1px solid var(--piedra);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 950ms;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--porcelana);
  color: var(--tinta);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--salvia); color: var(--porcelana); }

.skip-link {
  position: fixed; left: 20px; top: -100px;
  background: var(--tinta); color: var(--porcelana);
  padding: .6rem 1rem; z-index: 200; font-size: .85rem;
}
.skip-link:focus { top: 15px; }

/* ---------- Tipografía base ---------- */

.etiqueta {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--salvia-osc);
  margin-bottom: 1.6rem;
}

.titulo-seccion {
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.titulo-seccion em,
.hero__titulo em,
.cita em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  letter-spacing: 0;
  color: inherit;
}

/* ---------- Enlaces con línea ---------- */

.link-linea {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.link-linea::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease);
}
.link-linea:hover::after,
.link-linea:focus-visible::after { transform: scaleX(1); }

/* ---------- Navegación ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 4rem);
  background: var(--porcelana);
  box-shadow: 0 10px 30px rgba(38, 38, 42, 0);
  transition: box-shadow 800ms var(--ease);
}
.nav.con-fondo { box-shadow: 0 10px 30px rgba(38, 38, 42, .07); }

main section[id] { scroll-margin-top: 5.5rem; }

.nav__brand {
  font-weight: 600;
  letter-spacing: .34em;
  font-size: 1.02rem;
  color: var(--tinta);
  text-decoration: none;
}
.nav__acento, .pie__acento { color: var(--salvia-osc); }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { font-size: .84rem; font-weight: 500; letter-spacing: .04em; }

.nav__burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--tinta);
  transition: transform 600ms var(--ease), top 600ms var(--ease);
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger.abierto span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger.abierto span:last-child { top: 20px; transform: rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 90;
  background: var(--porcelana);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}
.menu-movil.visible { opacity: 1; pointer-events: auto; }
.menu-movil[hidden] { display: none; }
.menu-movil nav { display: flex; flex-direction: column; gap: 1.4rem; }
.menu-movil a {
  color: var(--tinta); text-decoration: none;
  font-size: 2.1rem; font-weight: 500; letter-spacing: -.01em;
  padding-bottom: .4rem;
}
.menu-movil__pie { margin-top: 3rem; font-size: .85rem; color: var(--tinta-suave); line-height: 1.8; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  min-height: 100vh;
  padding-top: 4.5rem;
}
.hero__texto {
  padding: 3rem clamp(1.25rem, 4vw, 4rem);
  max-width: 40rem;
  justify-self: end;
  width: 100%;
}
.hero__titulo {
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.hero__titulo em { font-size: 1.06em; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--tinta-suave);
  margin-bottom: 3rem;
  max-width: 34ch;
}
.cta-linea {
  display: inline-block;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  padding-bottom: .45rem;
  position: relative;
}
.cta-linea::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--salvia-osc);
  transform-origin: left center;
  animation: none;
  transition: transform 700ms var(--ease);
}
.cta-linea:hover::after { transform: scaleX(.35); }
.cta-linea span { display: inline-block; transition: transform 700ms var(--ease); }
.cta-linea:hover span { transform: translateX(6px); }

.hero__figura {
  height: min(88vh, 60rem);
  overflow: hidden;
  align-self: stretch;
  margin: 4.5rem 0 0 0;
}
.hero__figura img {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: center 22%;
  will-change: transform;
}

/* ---------- Filosofía ---------- */

.filosofia {
  padding: clamp(6rem, 14vw, 12rem) clamp(1.25rem, 4vw, 4rem);
}
.filosofia__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.filosofia__item h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 1.1rem;
}
.filosofia__item p { font-size: .98rem; color: var(--tinta-suave); max-width: 34ch; }

/* ---------- Tratamientos ---------- */

.tratamientos {
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem);
  background: var(--piedra);
}
.tratamientos__cabecera {
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 3.2rem;
}
.tratamientos__cabecera .etiqueta { grid-column: 1 / -1; margin-bottom: .4rem; }
.tratamientos__hint {
  font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--tinta-suave);
  white-space: nowrap;
  padding-bottom: .4rem;
}
.hint-flecha { display: inline-block; animation: deslizar 2.6s var(--ease) infinite; }
@keyframes deslizar {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.rail {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 clamp(1.25rem, 4vw, 4rem) 1.5rem;
  scroll-padding-inline: clamp(1.25rem, 4vw, 4rem);
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.arrastrando { cursor: grabbing; scroll-snap-type: none; }
.rail:focus-visible { outline: 1px solid var(--salvia); outline-offset: 4px; }

.panel {
  flex: 0 0 min(74vw, 56rem);
  scroll-snap-align: start;
}
.panel__media {
  aspect-ratio: 1400 / 950;
  overflow: hidden;
  background: var(--porcelana);
  margin-bottom: 1.8rem;
  box-shadow: 0 34px 70px -38px rgba(38, 38, 42, .35);
}
.panel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.panel__cuerpo h3 {
  font-size: 1.22rem; font-weight: 600; letter-spacing: -.005em;
  margin-bottom: .55rem;
}
.panel__cuerpo p {
  font-size: .95rem; color: var(--tinta-suave);
  max-width: 52ch;
}
.panel__nota {
  margin-top: .9rem;
  font-size: .72rem !important;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--salvia-osc) !important;
}

/* ---------- Método ---------- */

.metodo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(6rem, 13vw, 11rem) clamp(1.25rem, 4vw, 4rem);
  background: var(--tinta);
  color: var(--porcelana);
}
.metodo__pegajoso {
  position: sticky;
  top: 7.5rem;
}
.metodo .etiqueta { color: var(--salvia); }
.metodo .titulo-seccion { color: var(--porcelana); }
.metodo__intro {
  margin-top: 1.8rem;
  color: rgba(244, 243, 240, .62);
  font-size: .98rem;
  max-width: 38ch;
}
.metodo__pasos { list-style: none; }
.paso {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.6rem;
  padding: clamp(1.8rem, 3vw, 2.8rem) 0;
}
.paso__num {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--salvia);
  padding-top: 0;
  line-height: 1.3;
}
.paso h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .7rem; color: var(--porcelana); }
.paso p { font-size: .96rem; color: rgba(244, 243, 240, .6); max-width: 48ch; }

/* ---------- Respiro (imagen a sangre) ---------- */

.respiro {
  height: clamp(20rem, 74vh, 46rem);
  overflow: hidden;
}
.respiro__figura { height: 100%; }
.respiro__figura img {
  width: 100%; height: 116%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}

/* ---------- Médicos ---------- */

.medicos {
  padding: clamp(6rem, 13vw, 11rem) clamp(1.25rem, 4vw, 4rem);
}
.medicos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.medico__figura {
  aspect-ratio: 1100 / 1320;
  overflow: hidden;
  background: var(--piedra);
  margin-bottom: 2rem;
  box-shadow: 0 34px 70px -38px rgba(38, 38, 42, .3);
}
.medico__figura img { width: 100%; height: 100%; object-fit: cover; }
.medico__ficha h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.005em; }
.medico__cargo {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--salvia-osc);
  margin: .5rem 0 1.1rem;
}
.medico__vita { font-size: .95rem; color: var(--tinta-suave); max-width: 46ch; }
.medico__registro {
  margin-top: 1.3rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--salvia-osc);
}

/* ---------- Cita ---------- */

.cita {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 4vw, 4rem) clamp(4rem, 9vw, 8rem);
  display: flex;
  justify-content: center;
}
.cita blockquote { max-width: 52rem; text-align: center; }
.cita p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.3;
  letter-spacing: -.005em;
}
.cita em { color: var(--salvia-osc); font-size: 1em; }
.cita cite {
  display: block;
  margin-top: 2.2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

/* ---------- Privacidad ---------- */

.privacidad {
  background: var(--piedra);
  padding: clamp(5rem, 11vw, 9rem) clamp(1.25rem, 4vw, 4rem);
  display: flex; justify-content: center;
}
.privacidad__marco {
  max-width: 52rem;
  text-align: center;
}
.privacidad__marco .etiqueta { margin-bottom: 1.6rem; }
.privacidad__texto {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  color: var(--tinta);
  max-width: 44ch;
  margin: 0 auto;
}

/* ---------- Contacto ---------- */

.contacto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 4vw, 4rem);
}
.contacto__parrafo {
  margin-top: 1.6rem;
  color: var(--tinta-suave);
  max-width: 42ch;
}
.contacto__datos {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: var(--hairline); /* uso deliberado n.º 1 de 2 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
}
.contacto__datos dt {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--salvia-osc);
  margin-bottom: .45rem;
}
.contacto__datos dd { font-size: .95rem; line-height: 1.7; }
.contacto__datos a { font-size: inherit; }
.campo { margin-bottom: 1.5rem; }
.campo label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.opcional { color: var(--tinta-suave); text-transform: none; letter-spacing: .02em; }
.campo input, .campo select, .campo textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--tinta);
  background: var(--piedra);
  border: 0;
  padding: .9rem 1.1rem;
  border-radius: 0;
  transition: box-shadow 500ms var(--ease), background 500ms var(--ease);
}
.campo input::placeholder, .campo textarea::placeholder { color: rgba(38, 38, 42, .38); }
.campo select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2375897C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--salvia-osc);
}
.campo textarea { resize: vertical; }

.boton {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--porcelana);
  background: var(--tinta);
  border: 1px solid var(--tinta);
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  transition: background 600ms var(--ease), color 600ms var(--ease);
  margin-top: .6rem;
}
.boton:hover, .boton:focus-visible { background: var(--salvia-osc); border-color: var(--salvia-osc); }
.form__nota {
  margin-top: 1.4rem;
  font-size: .82rem;
  color: var(--tinta-suave);
  max-width: 46ch;
}

/* ---------- Pie ---------- */

.pie {
  background: var(--tinta);
  color: rgba(244, 243, 240, .78);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem) 2.4rem;
}
.pie__marca {
  color: var(--porcelana);
  font-weight: 600;
  letter-spacing: .34em;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
.pie__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 243, 240, .14);
}
.pie__titulo {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--salvia);
  margin-bottom: .8rem;
}
.pie__cols p { font-size: .9rem; line-height: 1.8; }
.pie a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(244, 243, 240, .25); }
.pie a:hover { color: var(--porcelana); }
.pie__legal {
  padding-top: 2rem;
  font-size: .78rem;
  color: rgba(244, 243, 240, .45);
  max-width: 72ch;
}

/* ---------- WhatsApp ---------- */

.wsp {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 80;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tinta);
  color: var(--porcelana);
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(38, 38, 42, .22);
  transition: background 600ms var(--ease), transform 600ms var(--ease);
}
.wsp:hover { background: var(--salvia-osc); transform: translateY(-3px); }

/* ---------- Cursor ---------- */

.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--salvia);
    pointer-events: none;
    z-index: 300;
    transform: translate(-50%, -50%);
    transition: width 400ms var(--ease), height 400ms var(--ease), opacity 400ms;
    opacity: 0;
    mix-blend-mode: multiply;
  }
  .cursor.activo { opacity: .9; }
  .cursor.grande { width: 34px; height: 34px; }
}

/* ---------- Reveals (solo con JS) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html.js .reveal.d1 { transition-delay: 120ms; }
html.js .reveal.d2 { transition-delay: 240ms; }
html.js .reveal.d3 { transition-delay: 360ms; }
html.js .reveal.dentro { opacity: 1; transform: none; }

html.js .mask-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease);
}
html.js .mask-reveal img {
  transform: scale(1.06);
  transition: transform 1100ms var(--ease);
}
html.js .mask-reveal.dentro { clip-path: inset(0 0 0 0); }
html.js .mask-reveal.dentro img { transform: scale(1); }
html.js .hero__figura.mask-reveal.dentro img { transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero__texto { justify-self: start; min-width: 0; padding-top: 4.5rem; padding-bottom: 1rem; }
  .hero__figura { min-width: 0; height: 62vh; margin: 1.5rem 0 0; }
  .filosofia__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .metodo { grid-template-columns: 1fr; }
  .metodo__pegajoso { position: static; margin-bottom: 2.5rem; }
  .medicos__grid { grid-template-columns: 1fr; }
  .contacto { grid-template-columns: 1fr; }
  .panel { flex-basis: 84vw; }
  .respiro { height: 46vh; }
}

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero__titulo { font-size: clamp(2.55rem, 13vw, 3rem); }
  .panel { flex-basis: 86vw; }
  .contacto__datos { grid-template-columns: 1fr; }
  .pie__cols { grid-template-columns: 1fr; }
  .tratamientos__cabecera { grid-template-columns: 1fr; align-items: start; }
  .tratamientos__hint { padding-bottom: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js .reveal, html.js .mask-reveal { opacity: 1; transform: none; clip-path: none; }
  html.js .mask-reveal img { transform: none; }
}
