/* ============================================================
   NMR Beauty Studio · Extramurs, València — demo de Rivero Studio
   Estilo "editorial de revista": crema, blush y el terracota de su
   rótulo, con Bodoni Moda, todo centrado y con mucho aire.
   ============================================================ */
@font-face { font-family: 'Inter var'; src: url('fuentes/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --teja: #6a3a24;
  --teja-cl: #8d5237;
  --blush: #e3c6b8;
  --blush-cl: #f2e2da;
  --crema: #fbf6f1;
  --crema2: #f3e9e1;
  --tinta: #2c1e17;
  --humo: #8a7367;
  --oro: #b08b5e;
  --s1: .5rem; --s2: 1rem; --s3: 1.75rem; --s4: 3rem; --s5: 6rem;
  --t-xl: clamp(2.5rem, 5.2vw, 4.6rem);
  --t-l: clamp(1.02rem, 1.3vw, 1.16rem);
  --radio: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--crema); color: var(--tinta);
  font-family: 'Inter var', Inter, system-ui, sans-serif;
  font-size: 17px; line-height: 1.68; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, .numero, .resumen-tit, .linea b, .cifras-portada b { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-weight: 400; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.1; }
h1 { font-size: var(--t-xl); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.7rem); }
p { margin: 0 0 var(--s2); }
.env { width: min(1160px, calc(100% - 2.6rem)); margin-inline: auto; }
.sobre { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); font-weight: 600; margin-bottom: .9rem; }
.entradilla { font-size: var(--t-l); color: var(--humo); max-width: 56ch; }
.seccion { padding: var(--s5) 0; }
.cabecera { margin-bottom: var(--s4); max-width: 58ch; }
.cabecera.centrada { margin-inline: auto; text-align: center; }
.cabecera.centrada .entradilla { margin-inline: auto; }
.letra-chica { font-size: .77rem; color: var(--humo); line-height: 1.5; display: block; }
.pista { font-size: .8rem; color: var(--humo); margin: .8rem 0 0; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--teja); color: var(--crema); border: 0; border-radius: var(--radio);
  padding: .88rem 1.9rem; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .25s, transform .25s;
}
.btn:hover { background: var(--teja-cl); transform: translateY(-2px); }
.btn:disabled { background: #d6c8bf; color: #98897f; cursor: not-allowed; transform: none; }
.btn-grande { padding: 1.05rem 2.4rem; font-size: .84rem; }
.btn-linea { background: transparent; color: var(--teja); border: 1px solid var(--teja); }
.btn-linea:hover { background: var(--teja); color: var(--crema); }
.btn-bloque { width: 100%; }
.enlace { color: var(--crema); text-decoration: none; font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; gap: .5rem; align-items: center; }
.enlace span { transition: transform .25s; }
.enlace:hover span { transform: translateX(5px); }

/* carga */
.carga { position: fixed; inset: 0; z-index: 90; background: var(--crema); display: grid; place-items: center; transition: opacity .7s, visibility .7s; }
.carga.fuera { opacity: 0; visibility: hidden; }
.carga-caja { text-align: center; display: grid; gap: 1.4rem; justify-items: center; }
.carga-caja img { width: 250px; height: auto; }
.carga-caja small { color: var(--humo); letter-spacing: .24em; text-transform: uppercase; font-size: .64rem; }
.raya { width: 140px; height: 1px; background: var(--blush); position: relative; overflow: hidden; }
.raya::after { content: ''; position: absolute; inset: 0; width: 36%; background: var(--teja); animation: pasa-raya 1.4s ease-in-out infinite; }
@keyframes pasa-raya { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* cabecera */
.cab { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .3s, box-shadow .3s; }
.cab-fila { display: flex; align-items: center; gap: var(--s3); padding: .7rem 0; }
.marca img { width: 168px; height: auto; }
.nav { display: flex; gap: 1.3rem; margin-left: auto; }
.nav a { color: var(--crema); text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .92; transition: color .3s; text-shadow: 0 1px 8px #00000055; }
.cab .btn { background: var(--crema); color: var(--teja); }
.cab.fija { background: #fbf6f1f2; backdrop-filter: blur(10px); box-shadow: 0 1px 0 #e7dad0; }
.cab.fija .nav a { color: var(--tinta); text-shadow: none; }
.cab.fija .btn { background: var(--teja); color: var(--crema); }

/* portada */
.portada { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 0; overflow: hidden; }
.portada-fondo { position: absolute; inset: -8% 0 0; z-index: 0; }
.portada-fondo video { width: 100%; height: 108%; object-fit: cover; }
.portada::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(#2c1e1755 0%, #2c1e1744 40%, #2c1e17e0 100%); }
.portada-cuerpo { position: relative; z-index: 2; color: var(--crema); text-align: center; max-width: 44rem; margin-inline: auto; padding-bottom: var(--s4); }
.portada-cuerpo .sobre { color: var(--blush); }
.portada-cuerpo h1 em { font-style: italic; color: var(--blush); }
.portada-cuerpo .entradilla { color: #f0e5ddd6; margin: var(--s2) auto var(--s3); }
.portada-botones { display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
.portada-botones .btn { background: var(--crema); color: var(--teja); }
.portada-botones .btn:hover { background: var(--blush-cl); }
.cifras-portada { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ffffff2e; }
.cifras-portada div { padding: 1.1rem .8rem; text-align: center; border-right: 1px solid #ffffff1c; }
.cifras-portada div:last-child { border-right: 0; }
.cifras-portada b { display: block; font-size: 1.5rem; color: var(--crema); }
.cifras-portada span { color: #e2d3c9b0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

/* cita */
.cita { background: var(--crema2); }
.cita-rej { display: grid; grid-template-columns: 1.5fr .8fr; gap: var(--s4); align-items: start; }
.pasos { display: grid; gap: var(--s3); }
.paso { background: var(--crema); padding: 1.7rem 1.6rem; border: 1px solid #e6d8cd; }
.numero { font-size: 1.15rem; color: var(--oro); letter-spacing: .02em; margin: 0 0 .3rem; font-variant: small-caps; }
.paso h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: .55rem; }
.fila { display: flex; gap: .5rem; flex-wrap: wrap; }
.op { text-align: left; background: var(--crema2); border: 1px solid transparent; border-radius: var(--radio); padding: .72rem .95rem; cursor: pointer; font: inherit; color: inherit; transition: all .2s; display: grid; gap: .08rem; }
.op:hover { border-color: var(--oro); transform: translateY(-2px); }
.op b { font-weight: 600; font-size: .92rem; }
.op small { color: var(--humo); font-size: .76rem; line-height: 1.35; }
.op[aria-pressed="true"] { background: var(--teja); border-color: var(--teja); color: var(--crema); }
.op[aria-pressed="true"] small { color: #f0e2d9bb; }
.dia { min-width: 76px; text-align: center; background: var(--crema2); border: 1px solid transparent; border-radius: var(--radio); padding: .5rem; cursor: pointer; font: inherit; color: inherit; transition: all .2s; }
.dia:hover { border-color: var(--oro); }
.dia small { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--humo); }
.dia b { display: block; font-family: 'Bodoni Moda', serif; font-size: 1.25rem; font-weight: 400; }
.dia[aria-pressed="true"] { background: var(--teja); border-color: var(--teja); color: var(--crema); }
.dia[aria-pressed="true"] small { color: #f0e2d9aa; }
.horas { display: flex; flex-wrap: wrap; gap: .4rem; }
.hora { border: 1px solid #e2d3c8; background: var(--crema); border-radius: var(--radio); padding: .4rem .85rem; font: inherit; font-size: .86rem; font-variant-numeric: tabular-nums; cursor: pointer; color: inherit; transition: all .18s; }
.hora:hover { border-color: var(--oro); }
.hora[aria-pressed="true"] { background: var(--teja); border-color: var(--teja); color: var(--crema); }
.hora:disabled { opacity: .32; text-decoration: line-through; cursor: not-allowed; }
.horas .vacio { color: var(--humo); font-size: .85rem; }

/* resumen */
.resumen { position: sticky; top: 92px; background: var(--teja); color: var(--crema); padding: 1.7rem 1.6rem; }
.resumen-tit { font-size: 1.5rem; margin: 0 0 1.2rem; color: var(--blush); }
.resumen-datos { margin: 0 0 1.4rem; display: grid; gap: .8rem; }
.resumen-datos div { display: grid; grid-template-columns: 74px 1fr; gap: .7rem; align-items: baseline; padding-bottom: .8rem; border-bottom: 1px solid #ffffff26; }
.resumen-datos dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #e2cec3aa; }
.resumen-datos dd { margin: 0; font-weight: 600; font-size: .95rem; }
.resumen .btn { background: var(--crema); color: var(--teja); }
.resumen .btn:disabled { background: #8b6350; color: #c6ab9d; }
.resumen .letra-chica { color: #e2cec3a0; margin-top: .8rem; }
.resumen-ok { text-align: center; display: grid; gap: .8rem; justify-items: center; }
.resumen-ok i { font-style: normal; font-size: 1.7rem; color: var(--blush); }
.resumen-ok b { font-family: 'Bodoni Moda', serif; font-size: 1.4rem; }
.resumen-ok p { color: #ecdfd7cc; font-size: .93rem; margin: 0; }

/* la carta */
.carta-lista { display: grid; gap: 0; max-width: 900px; margin-inline: auto; }
.linea { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .9rem; padding: 1.05rem 0; border-bottom: 1px solid #e6d8cd; }
.linea b { font-size: 1.3rem; font-weight: 400; }
.linea i { border-bottom: 1px dotted #cdb9ab; height: .6em; }
.linea span { color: var(--humo); font-size: .88rem; text-align: right; max-width: 40ch; }
.carta-pie { text-align: center; color: var(--humo); font-size: .84rem; margin-top: var(--s3); }

/* tu momento */
.momento { background: var(--blush-cl); }
.momento-rej { display: grid; grid-template-columns: 1fr .62fr; gap: var(--s4); align-items: center; }
.lista { list-style: none; margin: var(--s2) 0 var(--s3); padding: 0; display: grid; gap: .85rem; }
.lista li { display: grid; gap: .1rem; padding-left: 1.1rem; border-left: 1px solid var(--oro); }
.lista b { font-weight: 600; font-size: .98rem; }
.lista span { color: var(--humo); font-size: .9rem; }
.momento-video video { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; background: #2c1e17; }

/* trabajos */
.mosaico { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.mosaico figure { margin: 0; overflow: hidden; }
.mosaico img, .mosaico video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mosaico img { transition: transform .9s cubic-bezier(.22,1,.36,1); }
.mosaico figure:hover img { transform: scale(1.05); }
.video-mosaico video { background: #2c1e17; }

/* opiniones */
.opiniones { background: var(--crema2); }
.op-carrusel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.op-pista { display: flex; gap: 1rem; width: max-content; animation: pasa var(--dur, 60s) linear infinite; }
.op-carrusel:hover .op-pista { animation-play-state: paused; }
@keyframes pasa { to { transform: translateX(calc(-100% / 3)); } }
.op-tarjeta { width: 340px; background: var(--crema); border: 1px solid #e6d8cd; padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.estrellas { color: var(--oro); letter-spacing: .1em; font-size: .9rem; }
.op-tarjeta p { margin: 0; font-size: .92rem; color: #43332b; flex: 1; }
.op-tarjeta footer b { font-weight: 600; font-size: .9rem; display: block; }
.op-tarjeta footer small { color: var(--humo); font-size: .76rem; }

/* dónde */
.donde-rej { display: grid; grid-template-columns: 1fr .8fr; gap: var(--s4); align-items: center; }
.datos { margin: var(--s2) 0 var(--s3); display: grid; gap: .8rem; }
.datos div { display: grid; grid-template-columns: 138px 1fr; gap: .8rem; padding-bottom: .7rem; border-bottom: 1px solid #e6d8cd; }
.datos dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--humo); padding-top: .2rem; }
.datos dd { margin: 0; font-weight: 500; }
.datos a { color: var(--teja); font-weight: 600; }
.donde-foto { overflow: hidden; }
.donde-foto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* pie */
.pie { background: var(--teja); color: #e6d2c7; padding: var(--s4) 0 5.5rem; }
.pie-fila { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.pie-fila img { width: 200px; height: auto; }
.pie p { margin: 0; font-size: .92rem; }
.pie a { color: var(--blush); }
.pie small { color: #bfa294; font-size: .78rem; }

/* barra de demostración */
.barra-demo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--tinta); color: #e6d2c7; display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .55rem 1rem; font-size: .74rem; border-top: 2px solid var(--oro); }
.barra-demo b { color: var(--blush); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; }
.barra-demo a { color: var(--blush); }

/* animaciones al hacer scroll */
@supports (animation-timeline: view()) {
  .entra, .entra-escala { animation: sube linear both; animation-timeline: view(); animation-range: entry 4% entry 46%; }
  .entra-escala { animation-name: sube-escala; }
}
@keyframes sube { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes sube-escala { from { opacity: 0; transform: scale(.97) translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .entra, .entra-escala { animation: none !important; opacity: 1 !important; transform: none !important; }
  .op-pista, .raya::after { animation: none; }
}

/* pantallas medianas y móvil */
@media (max-width: 1000px) {
  .cita-rej, .momento-rej, .donde-rej { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .momento-video { max-width: 320px; margin-inline: auto; }
  .mosaico { grid-template-columns: repeat(3, 1fr); }
  .cifras-portada { grid-template-columns: 1fr 1fr; }
  .cifras-portada div:nth-child(2) { border-right: 0; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  :root { --s5: 3.8rem; --s4: 2.2rem; }
  .nav { display: none; }
  .cab .btn { margin-left: auto; font-size: .7rem; padding: .6rem 1rem; }
  .portada { min-height: auto; padding: 6.5rem 0 0; }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); overflow-wrap: anywhere; }
  .rejilla { grid-template-columns: 1fr; }
  .linea { grid-template-columns: 1fr; gap: .2rem; }
  .linea i { display: none; }
  .linea span { text-align: left; max-width: none; }
  .mosaico { grid-template-columns: 1fr 1fr; }
  .op-tarjeta { width: 280px; }
  .barra-demo span:last-child { display: none; }
}
