/* Pagina principal de Styleo. Usa los colores de estilos.css */
.portada-styleo { padding-bottom: 0; }
.portada-styleo section { max-width: 960px; margin: 0 auto; padding: 48px 16px; }
.portada-styleo h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 24px; text-align: center; }
.portada-styleo h3 { margin: 8px 0 6px; font-size: 1.05rem; }


.boton {
  display: inline-block; text-decoration: none; background: var(--acento); color: var(--acento-texto);
  padding: 13px 24px; border-radius: 999px; font-weight: 600; margin: 4px;
}
.boton.secundario { background: transparent; color: var(--texto); border: 1px solid var(--borde); }


.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pasos li, .ventaja { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; }
.pasos p, .ventaja p { color: var(--sutil); margin: 0; }
.numero {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--acento); color: var(--acento-texto); font-weight: 700;
}
.ventajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.planes-precio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 940px; margin: 0 auto; align-items: start; }
.precio-tarjeta.proximamente { border-color: var(--borde); }
.etiqueta-pronto { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-size: .75rem; vertical-align: middle; }
.extras { text-align: center; }
.precio-tarjeta {
  max-width: 460px; margin: 0 auto; text-align: center; background: var(--superficie);
  border: 2px solid var(--acento); border-radius: 20px; padding: 28px 24px;
}
.precio-tarjeta .plan { font-weight: 700; margin: 0; color: var(--acento); }
.precio-tarjeta .importe { font-size: 2.6rem; font-weight: 800; margin: 4px 0 16px; }
.precio-tarjeta .importe small { font-size: 1rem; font-weight: 400; color: var(--sutil); }
.precio-tarjeta ul { text-align: left; padding: 0 0 0 4px; list-style: none; margin: 0 0 20px; }
.precio-tarjeta li { padding: 6px 0 6px 26px; position: relative; }
.precio-tarjeta li::before { content: "✓"; position: absolute; left: 0; color: var(--acento); font-weight: 700; }
.extras { margin-top: 14px; font-size: .9rem; }

#preguntas details { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 18px; margin-bottom: 10px; }
#preguntas summary { cursor: pointer; font-weight: 600; }
#preguntas details p { color: var(--sutil); margin: 10px 0 0; }

#demo > p { text-align: center; max-width: 560px; margin: 0 auto 20px; }
#form-demo { max-width: 640px; margin: 0 auto; }
#form-demo label { display: block; margin-bottom: 14px; font-weight: 600; }
#form-demo input, #form-demo textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit;
  border: 1px solid var(--borde); border-radius: 10px; background: var(--fondo); color: var(--texto);
}
#form-demo .fila-campos { display: flex; gap: 12px; flex-wrap: wrap; }
#form-demo .fila-campos label { flex: 1; min-width: 200px; }
#form-demo .principal { width: 100%; }
.trampa { position: absolute; left: -9999px; }
#demo-resultado.ok { color: var(--acento); font-weight: 600; }
#demo-resultado.mal { color: var(--error); }

/* ---- Cabecera a pantalla completa (inspirada en la de Booksy) ----
   Fotos que se funden con un zoom lento, oscurecidas para que el texto blanco se lea */
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cabecera-styleo {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(80svh, 640px); display: grid; grid-template-rows: auto 1fr auto;
  background: #17121a;
}
.fondos { position: absolute; inset: 0; z-index: -1; }
/* Velo oscuro encima de las fotos */
.fondos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .58), rgb(0 0 0 / .44) 40%, rgb(0 0 0 / .68)); }
.fondo-foto { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.fondo-foto.activa { opacity: 1; animation: acercar 9s linear both; }
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.1); } }
/* Sin fotos: luces del color de Styleo sobre fondo oscuro */
.luz { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: flotar 16s ease-in-out infinite alternate; }
.luz:nth-child(1) { width: 520px; height: 520px; background: var(--acento); top: -160px; right: -120px; }
.luz:nth-child(2) { width: 420px; height: 420px; background: color-mix(in srgb, var(--acento) 50%, #f3c9a8); bottom: -160px; left: -120px; animation-delay: -5s; }
.luz:nth-child(3) { width: 300px; height: 300px; background: color-mix(in srgb, var(--acento) 60%, #6d4a9c); top: 35%; left: 40%; opacity: .35; animation-delay: -10s; }
@keyframes flotar { 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 30px) scale(.95); } }

/* Menu en tres columnas con el logo en el centro */
.barra-styleo { width: min(1200px, 100%); margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.barra-styleo .izquierda { justify-content: flex-start; }
.barra-styleo .derecha { justify-content: flex-end; }
.barra-styleo .enlaces a:not(.entrar) { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.portada-styleo .logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; justify-self: center; }
.barra-styleo .enlaces { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.barra-styleo .enlaces a { color: #fff; text-decoration: none; font-size: .95rem; opacity: .92; }
.barra-styleo .enlaces a:hover { opacity: 1; text-decoration: underline; }
.barra-styleo .enlaces .entrar { background: #fff; color: #1f1a17; padding: 8px 16px; border-radius: 8px; font-weight: 600; opacity: 1; }
.barra-styleo .enlaces .entrar:hover { text-decoration: none; background: #f1ecea; }

.heroe { align-self: center; text-align: center; padding: 8px 20px 26px; width: min(860px, 100%); margin: 0 auto; }
.heroe h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; text-shadow: 0 2px 30px rgb(0 0 0 / .35); }
.frase { display: inline-block; transition: opacity .5s ease, transform .5s ease; }
.frase.saliendo { opacity: 0; transform: translateY(12px); }
.subtitulo { font-size: clamp(1.05rem, 2.4vw, 1.25rem); font-weight: 600; max-width: 640px; margin: 0 auto 20px; text-shadow: 0 1px 12px rgb(0 0 0 / .4); }
.pildora { display: flex; align-items: center; gap: 6px; max-width: 560px; margin: 0 auto; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6); }
.pildora input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 12px; font: inherit; color: #1f1a17; background: transparent; }
.pildora input::placeholder { color: #8a817c; }
.pildora button { flex: none; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 700; background: var(--acento); color: var(--acento-texto); cursor: pointer; }
.pildora:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 55%, white), 0 20px 50px -20px rgb(0 0 0 / .6); }
.sello-heroe { margin: 16px 0 0; font-size: .92rem; opacity: .92; }
.sello-heroe a { color: #fff; }

/* Titular y eco como en edsportline: mayusculas gruesas (Red Hat Display) y la misma frase
   repetida debajo solo en contorno, muy pegada y cada vez mas tenue, que cae en cascada */
@font-face { font-family: "Red Hat Display"; src: url("/static/reservas/fonts/red-hat-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.portada-styleo .heroe h1, .eco {
  font-family: "Red Hat Display", system-ui, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 6.2vw, 5.1rem); line-height: .95; letter-spacing: -.01em;
}
.portada-styleo .heroe h1 { margin-bottom: 0; }
/* Siempre en una linea (portada.js baja la letra si no cabe), para que el eco no se dispare */
.portada-styleo .heroe h1 .frase, .eco span { white-space: nowrap; }
.portada-styleo .heroe { width: min(1200px, 100%); }
.eco { display: grid; margin: -.12em 0 18px; line-height: .8; pointer-events: none; user-select: none; }
.eco span { color: transparent; -webkit-text-stroke: 1.3px color-mix(in srgb, var(--acento) 60%, #f3d29b); }
.eco span:nth-child(1) { opacity: .9; }
.eco span:nth-child(2) { opacity: .55; }
.eco span:nth-child(3) { opacity: .3; }
.eco span:nth-child(4) { opacity: .12; }
.eco span:nth-child(5) { opacity: .17; }
.eco span:nth-child(6) { opacity: .08; }
/* Cascada: cada copia cae un poco despues que la anterior */
.eco.entrando span { animation: caer .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n) * 90ms); }
@keyframes caer { from { opacity: 0; transform: translateY(-.35em); } }
.eco.saliendo span { opacity: 0; transition: opacity .35s ease; }

/* Franja del color que va pasando */
.franja { overflow: hidden; background: var(--acento); color: var(--acento-texto); padding: 14px 0; }
.franja-pista { display: flex; width: max-content; gap: 22px; align-items: center; animation: pasar 40s linear infinite; }
.franja-pista span { white-space: nowrap; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; font-weight: 600; }
.franja-pista .punto { opacity: .6; }
@keyframes pasar { to { transform: translateX(-50%); } }

/* Pastilla flotante con las redes */
.pastilla-redes {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-radius: 999px;
  background: var(--acento); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5);
}
.pastilla-redes a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--acento-texto); }
.pastilla-redes a:hover { background: rgb(255 255 255 / .18); }
.pastilla-redes svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  .barra-styleo .enlaces a:not(.entrar) { display: none; }
  .pildora { flex-direction: column; align-items: stretch; }
  .pildora button { width: 100%; }
  .barra-styleo { grid-template-columns: auto 1fr; }
  .barra-styleo .izquierda { display: none; }
  .portada-styleo .logo { justify-self: start; }
  .eco span:nth-child(n + 4) { display: none; }
  .pastilla-redes { top: auto; bottom: 16px; transform: none; flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .fondo-foto.activa, .luz, .franja-pista, .eco.entrando span { animation: none; }
  .frase, .fondo-foto { transition: none; }
}

/* Logo de la marca */
.barra-styleo .logo-llenia { font-size: 30px; }
.marca .pie-logo { display: inline-block; margin-bottom: 8px; text-decoration: none; }
.marca .pie-logo .logo-llenia { font-size: 22px; }
@media (max-width: 700px) { .barra-styleo .logo-llenia { font-size: 20px; } }

/* Imagen de cada paso de "Como funciona" (capturas reales en dispositivos) */
.pasos li { overflow: hidden; }
.paso-img { display: block; width: calc(100% + 40px); height: auto; margin: -20px -20px 14px; background: var(--fondo); }

/* Credito de las fotos (Freepik con licencia gratuita lo exige) */
.marca .creditos { margin: 10px 0 0; font-size: .75rem; opacity: .75; }
.marca .creditos a { color: inherit; }

/* Paginas legales (aviso legal, privacidad, cookies) */
.pagina-legal { background: var(--fondo); }
.cabecera-legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 0; }
.cabecera-legal a { text-decoration: none; }
.texto-legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; line-height: 1.65; }
.texto-legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 16px; }
.texto-legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.texto-legal ul { padding-left: 1.2em; }
.datos-legales { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 18px; }
.datos-legales dt { font-weight: 600; }
.datos-legales dd { margin: 0; }
@media (max-width: 520px) { .datos-legales { grid-template-columns: 1fr; } .datos-legales dd { margin-bottom: 8px; } }
mark.pendiente { background: #fff3c4; color: #6b4e00; padding: 0 4px; border-radius: 4px; }
.actualizado { margin-top: 32px; font-size: .85rem; }

/* ---- Para quien es: tarjetas con foto ---- */
.portada-styleo #para-quien { max-width: 1120px; }
.tipos-salon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tipo-salon { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: #141015; color: #fff; isolation: isolate; }
.tipo-salon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.tipo-salon::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .78)); }
.tipo-salon:hover img { transform: scale(1.05); }
.tipo-texto { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.tipo-salon h3 { color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .4); margin: 0 0 6px; font-family: "Red Hat Display", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 1.25rem; }
.tipo-salon p { margin: 0; font-size: .92rem; line-height: 1.4; opacity: .92; }
@media (max-width: 900px) { .tipos-salon { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tipos-salon { grid-template-columns: 1fr 1fr; gap: 10px; } .tipo-salon p { display: none; } .tipo-salon h3 { font-size: 1rem; } }

/* ---- Calculadora de plantones ---- */
.calculadora { max-width: 720px; margin: 0 auto; }
.calculadora .fila-campos { display: flex; gap: 14px; flex-wrap: wrap; }
.calculadora label { flex: 1; min-width: 200px; font-weight: 600; }
.calculadora input { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-size: 1.1rem; border: 1px solid var(--borde); border-radius: 10px; background: var(--fondo); color: var(--texto); }
.resultado-calculadora { margin-top: 18px; text-align: center; }
.resultado-calculadora p { margin: 6px 0; }
.resultado-calculadora .pierdes { font-size: 1.1rem; }
.resultado-calculadora .pierdes strong { display: block; font-family: "Red Hat Display", system-ui, sans-serif; font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.2rem); color: var(--acento); line-height: 1.1; }
.resultado-calculadora .veces { margin-top: 12px; font-weight: 600; }

/* ---- Pruebalo tu ---- */
.intro-seccion { text-align: center; color: var(--sutil); margin: -12px auto 20px; max-width: 560px; }
.pruebas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.prueba { display: block; padding: 22px; border-radius: 18px; background: #141015; color: #fff; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.prueba::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 60%, transparent), transparent); z-index: -1; }
.prueba strong { display: block; font-family: "Red Hat Display", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; margin-bottom: 6px; }
.prueba span { opacity: .85; }
.prueba:hover { transform: translateY(-2px); transition: transform .2s; }

/* ---- Quienes somos ---- */
.quienes { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.quienes img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.quienes p { margin: 0 0 10px; }
@media (max-width: 640px) { .quienes { grid-template-columns: 1fr; text-align: center; } .quienes img { width: 160px; margin: 0 auto; } }

/* Pie: enlaces legales */
.marca .pie-enlaces { margin: 10px 0 0; font-size: .85rem; }

/* Retoques tras revisarlo en el navegador */
.pagina-legal .texto-legal h2 { text-align: left; color: var(--texto); font-family: inherit; font-weight: 600; font-size: 1.15rem; }
.portada-styleo .marca a { color: var(--texto); }
.portada-styleo .marca .creditos a { color: inherit; }
.quienes a { color: var(--acento); font-weight: 600; }
