/* Web de uñas · No hace falta tocar este archivo. Los datos están en config.js
   Colores: violeta como único acento, lila para fondos suaves. Modo claro y oscuro según el móvil.
   Formas: botones y chips en píldora; fotos y tarjetas con 28px de radio. */
:root {
  --fondo: #fbf8ff;
  --superficie: #ffffff;
  --lila: #f1e9ff;
  --lila-2: #e4d6fb;
  --tinta: #221830;
  --suave: #645a72;
  --linea: #e9e0f5;
  --violeta: #6a2fbf;
  --violeta-hover: #5a24a8;
  --sobre-violeta: #ffffff;
  --sombra: 0 24px 60px -28px rgb(74 32 140 / .35);
  --curva: cubic-bezier(.16, 1, .3, 1);
  --radio: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #15101d;
    --superficie: #1e1729;
    --lila: #261d35;
    --lila-2: #33264a;
    --tinta: #f4eefb;
    --suave: #b9adc9;
    --linea: #33294a;
    --violeta: #b48cff;
    --violeta-hover: #c6a6ff;
    --sobre-violeta: #1a1026;
    --sombra: 0 24px 60px -28px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { background: var(--fondo); color: var(--tinta); font: 400 17px/1.55 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
h1, h2, h3, .marca, .nota-grande { font-family: "Unbounded", system-ui, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; line-height: 1.08; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.suave { color: var(--suave); }
.caja { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
section { padding-block: clamp(56px, 9vw, 112px); }
:focus-visible { outline: 3px solid var(--violeta); outline-offset: 3px; border-radius: 8px; }

.aviso { background: var(--tinta); color: var(--fondo); font-size: 13px; text-align: center; padding: 8px 16px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--curva), background .2s, box-shadow .25s;
}
.boton:active { transform: scale(.97); }
.boton-violeta { background: var(--violeta); color: var(--sobre-violeta); box-shadow: 0 12px 28px -14px var(--violeta); }
.boton-violeta:hover { background: var(--violeta-hover); transform: translateY(-2px); }
.boton-borde { border: 1.5px solid var(--linea); background: var(--superficie); }
.boton-borde:hover { border-color: var(--violeta); color: var(--violeta); }
.boton-claro { background: var(--lila); color: var(--violeta); min-height: 44px; padding: 0 20px; }
.boton-claro:hover { background: var(--lila-2); }
.boton-peq { min-height: 42px; padding: 0 18px; font-size: 15px; }
.boton-grande { min-height: 60px; padding: 0 34px; font-size: 18px; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fondo) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top, 0px); }
.nav-dentro { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.marca { font-size: 19px; font-weight: 700; text-decoration: none; }
.nav-enlaces { display: flex; gap: 28px; font-weight: 500; }
.nav-enlaces a { text-decoration: none; color: var(--suave); transition: color .2s; }
.nav-enlaces a:hover { color: var(--violeta); }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 48px 88px; }
.nota-google { display: inline-flex; align-items: center; gap: 6px; background: var(--lila); color: var(--tinta); border-radius: 999px; padding: 7px 14px; font-size: 15px; }
.nota-google i { color: var(--violeta); }
.nota-google span { color: var(--suave); }
h1 { font-size: clamp(44px, 7.2vw, 88px); font-weight: 700; line-height: 1.02; margin-top: 22px; }
h1 .linea { display: inline; }
h1 .destacada { color: var(--violeta); font-weight: 400; }
.hero-eslogan { font-size: 19px; color: var(--suave); max-width: 34ch; margin-top: 22px; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-foto { position: relative; justify-self: center; width: min(100%, 420px); }
.una-marco { aspect-ratio: 4 / 5.2; border-radius: 999px 999px var(--radio) var(--radio); overflow: hidden; box-shadow: var(--sombra); background: var(--lila); }
.una-marco img { width: 100%; height: 100%; object-fit: cover; }
.hero-esmaltes { position: absolute; left: -22px; bottom: 34px; display: flex; flex-direction: column; gap: 10px; }
.gota { display: block; width: 46px; height: 46px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c); border: 4px solid var(--superficie); box-shadow: 0 8px 20px -8px rgb(0 0 0 / .35); transition: transform .3s var(--curva); }
.gota:hover { transform: scale(1.12) rotate(-6deg); }

/* Entrada de la portada */
.con-animacion h1 .linea { display: inline-block; opacity: 0; transform: translateY(24px); animation: sube .8s var(--curva) forwards; animation-delay: calc(var(--i) * 110ms + 100ms); }
.con-animacion .una-marco { animation: aparece 1s var(--curva) both; }
.con-animacion .gota { animation: cae .7s var(--curva) both; }
.con-animacion .gota:nth-child(2) { animation-delay: .1s; } .con-animacion .gota:nth-child(3) { animation-delay: .2s; } .con-animacion .gota:nth-child(4) { animation-delay: .3s; }
@keyframes sube { to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: scale(.94); } }
@keyframes cae { from { opacity: 0; transform: translateY(-14px) scale(.6); } }

/* ---------- Cinta ---------- */
.cinta-caja { overflow: hidden; padding-block: 14px; }
.cinta { background: var(--violeta); color: var(--sobre-violeta); overflow: hidden; padding-block: 16px; transform: rotate(-1.5deg); margin-inline: -10px; }
.cinta-pista { display: flex; align-items: center; gap: 22px; width: max-content; font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 18px; white-space: nowrap; animation: cinta 34s linear infinite; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Probador ---------- */
.probador { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.probador-vista { background: var(--lila); border-radius: var(--radio); padding: 48px 24px 28px; display: grid; justify-items: center; gap: 22px; }
.manos { --c: #b79be8; --p: #b79be8; display: flex; align-items: flex-end; gap: 14px; height: 240px; }
.una {
  position: relative; display: block; width: 58px; height: 120px;
  background: linear-gradient(to bottom, var(--p) 0 0, var(--c) 0); border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / .08), 0 14px 26px -16px rgb(0 0 0 / .5);
  transition: border-radius .5s var(--curva), clip-path .5s var(--curva), background .4s, height .5s var(--curva);
}
.una::after { content: ""; position: absolute; left: 22%; top: 16%; width: 18%; height: 48%; border-radius: 999px; background: rgb(255 255 255 / .55); filter: blur(1px); }
.una.u1 { height: 86px; width: 46px; } .una.u2 { height: 112px; } .una.u3 { height: 128px; } .una.u4 { height: 114px; } .una.u5 { height: 96px; width: 66px; transform: rotate(14deg) translateY(10px); }
.manos.francesa .una { background: linear-gradient(to bottom, var(--p) 0 26%, var(--c) 26%); }
.manos[data-forma="cuadrada"] .una { border-radius: 14% 14% 40% 40% / 10% 10% 30% 30%; }
.manos[data-forma="redonda"] .una { border-radius: 50% 50% 45% 45% / 36% 36% 30% 30%; }
.manos[data-forma="stiletto"] .una { border-radius: 50% 50% 45% 45% / 100% 100% 22% 22%; clip-path: polygon(50% 0, 88% 34%, 100% 100%, 0 100%, 12% 34%); }
.manos[data-forma="bailarina"] .una { border-radius: 8% 8% 40% 40% / 6% 6% 26% 26%; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.probador-elegido { font-size: 16px; color: var(--suave); }
.probador-elegido b { color: var(--tinta); }
.probador-controles h2 + p { margin-top: 12px; max-width: 40ch; }
.etiqueta-control { font-weight: 600; margin: 28px 0 10px; }
.esmaltes, .formas { display: flex; flex-wrap: wrap; gap: 8px; }
.esmalte, .forma {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px;
  background: var(--superficie); border: 1.5px solid var(--linea); font-weight: 500; transition: border-color .2s, transform .2s var(--curva);
}
.forma { padding-left: 12px; }
.esmalte:hover, .forma:hover { transform: translateY(-2px); }
.esmalte[aria-checked="true"], .forma[aria-checked="true"] { border-color: var(--violeta); background: var(--lila); }
.bote { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(to bottom, var(--p) 0 30%, var(--c) 30%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08), 0 0 0 1.5px var(--linea); }
.forma-dibujo { width: 12px; height: 20px; background: var(--violeta); opacity: .75; }
.f-almendra { border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%; } .f-cuadrada { border-radius: 3px 3px 5px 5px; }
.f-redonda { border-radius: 50% 50% 40% 40%; } .f-stiletto { clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.f-bailarina { clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
#cita-color { margin-top: 32px; }

/* ---------- Servicios ---------- */
.servicios-cabecera { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.flechas { display: flex; gap: 8px; }
.flecha { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--superficie); display: grid; place-items: center; font-size: 20px; transition: border-color .2s, color .2s; }
.flecha:hover { border-color: var(--violeta); color: var(--violeta); }
.carril {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 32px max(20px, calc((100vw - 1160px) / 2)) 12px; scrollbar-width: none; scroll-padding-inline: max(20px, calc((100vw - 1160px) / 2));
}
.carril::-webkit-scrollbar { display: none; }
.servicio { scroll-snap-align: start; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--curva), box-shadow .35s; }
.servicio:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.servicio-foto { aspect-ratio: 4 / 3.4; overflow: hidden; }
.servicio-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--curva); }
.servicio:hover .servicio-foto img { transform: scale(1.05); }
.servicio-texto { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.servicio-texto > p:not(.servicio-datos) { color: var(--suave); font-size: 15.5px; }
.servicio-datos { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; color: var(--suave); font-size: 15px; font-variant-numeric: tabular-nums; }
.servicio-datos b { color: var(--tinta); font-size: 18px; }
.servicio .boton { margin-top: 8px; }

/* ---------- Por qué venir: 1 foto grande + 2 bloques ---------- */
.motivos-rejilla { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 36px; }
.motivo { border-radius: var(--radio); padding: 28px; display: flex; align-items: flex-end; min-height: 210px; }
.motivo p { margin-top: 8px; color: var(--suave); max-width: 36ch; }
.motivo.m0 { grid-row: span 2; position: relative; overflow: hidden; color: #fff; min-height: 440px; }
.motivo.m0 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.motivo.m0::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 12 52 / .85), rgb(30 12 52 / 0) 60%); z-index: 1; }
.motivo.m0 div { position: relative; z-index: 2; }
.motivo.m0 p { color: rgb(255 255 255 / .85); }
.motivo.m1 { background: var(--violeta); color: var(--sobre-violeta); }
.motivo.m1 p { color: color-mix(in srgb, var(--sobre-violeta) 82%, transparent); }
.motivo.m2 { background: var(--lila); }

/* ---------- Opiniones ---------- */
.opiniones { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.nota-grande { font-size: clamp(80px, 12vw, 140px); font-weight: 700; line-height: 1; color: var(--violeta); }
.estrellas { color: var(--violeta); font-size: 22px; margin-top: 6px; letter-spacing: 2px; }
.opiniones-nota h2 { font-size: 22px; margin-top: 12px; }
.opiniones-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.resena { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; transform: rotate(var(--r)); transition: transform .35s var(--curva); }
.resena:hover { transform: rotate(0) translateY(-4px); }
.resena:nth-child(3) { grid-column: span 2; max-width: 80%; justify-self: center; }
.resena i { color: var(--violeta); font-size: 26px; }
.resena blockquote { font-size: 17.5px; margin-top: 8px; }
.resena figcaption { margin-top: 12px; color: var(--suave); font-size: 14px; }

/* ---------- Visítanos ---------- */
.visitanos-tarjeta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; background: var(--lila); border-radius: var(--radio); padding: clamp(28px, 5vw, 56px); }
.estado { margin-top: 14px; font-weight: 600; color: var(--suave); display: flex; align-items: center; gap: 6px; }
.estado.abierto { color: var(--violeta); }
.direccion { margin-top: 10px; font-size: 18px; }
.visitanos-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.horario { list-style: none; background: var(--superficie); border-radius: 20px; padding: 10px 22px; font-variant-numeric: tabular-nums; }
.horario li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; color: var(--suave); }
.horario li + li { border-top: 1px solid var(--linea); }
.horario li.hoy { color: var(--violeta); font-weight: 700; }

/* ---------- Final y pie ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 26px; }
.final h2 { font-size: clamp(34px, 6vw, 64px); }
.pie { border-top: 1px solid var(--linea); padding-block: 36px calc(110px + env(safe-area-inset-bottom, 0px)); }
.pie-dentro { display: grid; gap: 6px; }
.creditos { font-size: 14px; color: var(--suave); }

/* ---------- Botón flotante (móvil) ---------- */
.flotante { position: fixed; z-index: 15; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: none; transform: translateY(140%); transition: transform .45s var(--curva); }
.flotante.visible { transform: none; }

/* ---------- Hoja del asistente de citas ---------- */
.hoja {
  border: 0; padding: 0; color: var(--tinta); background: var(--superficie);
  width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: var(--radio) 0 0 var(--radio);
  box-shadow: -30px 0 80px -40px rgb(40 10 80 / .5); overflow-y: auto;
}
.hoja[open] { animation: entraLado .45s var(--curva); }
.hoja::backdrop { background: rgb(30 12 52 / .45); backdrop-filter: blur(3px); }
@keyframes entraLado { from { transform: translateX(40px); opacity: 0; } }
.hoja-cabecera { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--superficie); border-bottom: 1px solid var(--linea); }
.hoja-cabecera p { font-family: "Unbounded", sans-serif; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.hoja-cabecera p i { color: var(--violeta); }
.hoja-cerrar { width: 42px; height: 42px; border-radius: 50%; background: var(--lila); font-size: 20px; display: grid; place-items: center; }

/* Piel del asistente (citas.js) */
.citas { padding: 18px 20px 28px; }
.ct-arriba { display: flex; align-items: center; gap: 10px; }
.ct-atras[hidden] { visibility: hidden; display: grid; }
.ct-atras { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid var(--linea); display: grid; place-items: center; }
.ct-pasos { display: flex; gap: 6px; list-style: none; flex: 1; }
.ct-pasos li { flex: 1; height: 6px; border-radius: 999px; background: var(--lila-2); }
.ct-pasos li.hecho, .ct-pasos li.actual { background: var(--violeta); }
.ct-pasos span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ct-cuerpo { margin-top: 20px; display: grid; gap: 14px; }
.ct-pregunta { background: var(--lila); border-radius: 22px 22px 22px 6px; padding: 14px 16px; max-width: 92%; }
.ct-pregunta b { display: block; }
.ct-servicios { display: grid; gap: 10px; }
.ct-servicio { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: 18px; border: 1.5px solid var(--linea); transition: border-color .2s, transform .2s var(--curva); }
.ct-servicio:hover { border-color: var(--violeta); transform: translateX(3px); }
.ct-servicio img { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.ct-s-nombre { font-weight: 600; }
.ct-s-datos { color: var(--suave); font-size: 14px; display: flex; gap: 5px; align-items: center; }
.ct-dias { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ct-dia { display: grid; justify-items: center; padding: 10px 4px; border-radius: 18px; border: 1.5px solid var(--linea); line-height: 1.2; }
.ct-dia b { font-family: "Unbounded", sans-serif; font-size: 20px; }
.ct-dia small { color: var(--suave); font-size: 12.5px; }
.ct-dia:hover, .ct-hora:hover { border-color: var(--violeta); background: var(--lila); }
.ct-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.ct-hora { min-height: 44px; border-radius: 999px; border: 1.5px solid var(--linea); font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-nota, .ct-legal { font-size: 14px; color: var(--suave); }
.ct-form { display: grid; gap: 8px; }
.ct-form label { font-weight: 600; font-size: 15px; margin-top: 6px; }
.ct-form label span { font-weight: 400; color: var(--suave); }
.ct-form input { font: inherit; color: var(--tinta); background: var(--fondo); border: 1.5px solid var(--linea); border-radius: 14px; min-height: 50px; padding: 0 14px; }
.ct-form input::placeholder { color: var(--suave); opacity: .8; }
.ct-form input:focus { outline: none; border-color: var(--violeta); }
.ct-error { color: #c0264a; font-size: 14px; min-height: 1em; }
.ct-boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 999px; background: var(--violeta); color: var(--sobre-violeta); font-weight: 600; text-decoration: none; }
.ct-ticket { border: 1.5px dashed var(--violeta); border-radius: 22px; padding: 18px; background: var(--lila); }
.ct-t-cuando { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; }
.ct-t-cuando b { font-family: "Unbounded", sans-serif; font-size: 26px; color: var(--violeta); }
.ct-ticket dl { margin-top: 12px; display: grid; gap: 6px; }
.ct-ticket dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ct-ticket dt { color: var(--suave); }
.ct-ticket dd { font-weight: 600; text-align: right; }
.ct-otra { color: var(--violeta); font-weight: 600; text-decoration: underline; justify-self: start; }

/* ---------- Aparecer al bajar ---------- */
.con-animacion .revelar { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--curva), transform .8s var(--curva); }
.con-animacion .revelar.visto { opacity: 1; transform: none; }
.con-animacion .resena.revelar.visto { transform: rotate(var(--r)); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .nav-enlaces { display: none; }
  .hero, .probador, .opiniones, .visitanos-tarjeta { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-top: 24px; gap: 36px; }
  .hero-foto { width: min(78%, 360px); }
  .hero-esmaltes { left: -18px; }
  .probador { gap: 32px; }
  .manos { gap: 9px; height: 190px; }
  .una { width: 44px; height: 96px; } .una.u1 { width: 36px; height: 70px; } .una.u2 { height: 90px; } .una.u3 { height: 104px; } .una.u4 { height: 92px; } .una.u5 { width: 50px; height: 78px; }
  .motivos-rejilla { grid-template-columns: 1fr; grid-template-rows: none; }
  .motivo.m0 { grid-row: auto; min-height: 340px; }
  .opiniones-lista { grid-template-columns: 1fr; }
  .resena:nth-child(3) { grid-column: auto; max-width: none; }
  .flotante { display: inline-flex; }
  .flechas { display: none; }
  .hoja { width: 100vw; height: auto; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radio) var(--radio) 0 0; }
  .hoja[open] { animation: entraAbajo .45s var(--curva); }
  @keyframes entraAbajo { from { transform: translateY(60px); opacity: 0; } }
}
@media (max-width: 420px) { .esmalte span:last-child { font-size: 14px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
