/* Landing de Sandra Sienkiewicz, sobre la plantilla de landing de consulta.
   Identidad sacada de sandrasienkiewicz.com: blanco y negro con su dorado,
   Raleway en mayúsculas espaciadas, Amiri para el texto y Mr De Haviland para
   la firma. Lo propio de Sandra está en :root y al final del archivo. */

@font-face { font-family: "Raleway"; src: url("../fuentes/raleway-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fuentes/raleway-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fuentes/raleway-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fuentes/amiri-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fuentes/amiri-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mr De Haviland"; src: url("../fuentes/mr-de-haviland-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --texto: #333;
  --texto-suave: #656565;
  --fondo: #fff;
  --fondo-alt: #fafafa;
  --oscuro: #111;
  --negro: #000;
  --acento: #9f883f;
  --acento-hover: #86722f;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;
  --borde: #e6e6e6;
  --hueco: #d4d4d4;
  --hueco-texto: #6f6f6f;
  --radio: 0;
  --fuente-titulos: "Raleway", "Segoe UI", sans-serif;
  --fuente-texto: "Amiri", Georgia, serif;
  --fuente-firma: "Mr De Haviland", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--fuente-titulos); text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
ul { padding: 0; list-style: none; }

.contenedor {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.seccion { padding-block: 5rem; }
.seccion--alt { background: var(--fondo-alt); }
.seccion--oscura { background: var(--oscuro); color: #fff; }

.titulo {
  font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.titulo--centro { text-align: center; }

.texto-suave {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: var(--texto-suave);
}
.texto-suave strong { color: var(--texto); }

.pila { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }

.dos-columnas { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) {
  .dos-columnas { grid-template-columns: 1fr 1fr; }
}

/* Huecos grises donde irán las fotos */

.hueco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background: var(--hueco);
  color: var(--hueco-texto);
  font-size: 0.875rem;
  text-align: center;
}
.hueco span { position: relative; z-index: 1; }
.r-4-5 { aspect-ratio: 4 / 5; }
.r-3-4 { aspect-ratio: 3 / 4; }
.r-2-3 { aspect-ratio: 2 / 3; }
.r-1-1 { aspect-ratio: 1 / 1; }

.foto {
  overflow: hidden;
  border-radius: var(--radio);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--acento);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.boton:hover { background: var(--acento-hover); }
.boton:focus-visible { outline: 2px solid var(--texto); outline-offset: 3px; }

.boton--claro { background: #fff; color: #000; font-size: 1.125rem; }
.boton--claro:hover { background: rgb(255 255 255 / 0.9); }

.boton--whatsapp {
  background: var(--whatsapp);
  font-size: 1.125rem;
  transition: background-color 0.2s, transform 0.2s;
}
.boton--whatsapp:hover { background: var(--whatsapp-hover); transform: scale(1.05); }

/* Iconos (Tabler, en el sprite del HTML) */

.icono {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero__fondo {
  position: absolute;
  inset: 0;
  align-items: flex-end;
  justify-content: flex-end;
  background: #9a9a9a;
  color: #fff;
}
.hero__fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
}
.hero__contenido {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: 4rem;
}
.hero__logo {
  width: 8rem;
  height: 4rem;
  margin-bottom: 2rem;
  border: 1px dashed rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.15);
  color: #fff;
}
.hero h1 {
  max-width: 56rem;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
}
.hero p {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 300;
  max-width: 48rem;
}

/* Barra de ventajas */

.ventajas {
  padding-block: 2rem;
  background: var(--negro);
  color: #fff;
  border-block: 1px solid rgb(255 255 255 / 0.1);
}
.ventajas ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .ventajas ul { grid-template-columns: repeat(4, 1fr); }
}
.ventajas li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.ventajas .icono { width: 2rem; height: 2rem; color: var(--acento); }

/* Formulario */

.formulario { gap: 3rem; }
.formulario__tarjeta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.formulario__tarjeta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.formulario__hueco { min-height: 32rem; border-radius: 0.25rem; }

/* Lista con iconos */

.lista { display: flex; flex-direction: column; gap: 1rem; }
.lista h3 { font-size: 1.25rem; font-weight: 700; }
.lista ul { display: flex; flex-direction: column; gap: 0.75rem; }
.lista li { display: flex; align-items: flex-start; gap: 0.75rem; }
.lista .icono { margin-top: 0.15rem; color: var(--acento); }

/* "Por qué": en móvil el texto va primero, en escritorio la foto a la izquierda */
@media (min-width: 768px) {
  .invertido > :first-child { order: 2; }
}

/* Carrusel de antes y después */

.resultados { display: flex; flex-direction: column; gap: 3rem; }
.carrusel { position: relative; width: 100%; max-width: 64rem; margin-inline: auto; }
.carrusel__pista {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__item {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radio);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
@media (min-width: 768px) {
  .carrusel__item { flex-basis: calc((100% - 1rem) / 2); }
}
@media (min-width: 1024px) {
  .carrusel__item { flex-basis: calc((100% - 2rem) / 3); }
}
.carrusel__etiqueta {
  position: absolute;
  top: 1rem;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.carrusel__etiqueta--antes { left: 1rem; }
.carrusel__etiqueta--despues { right: 1rem; }
.carrusel__boton {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: #fff;
  color: var(--texto);
  cursor: pointer;
  transform: translateY(-50%);
}
.carrusel__boton:hover { background: var(--fondo-alt); }
.carrusel__boton .icono { width: 1rem; height: 1rem; }
.carrusel__boton--prev { left: 0.5rem; }
.carrusel__boton--next { right: 0.5rem; }
@media (min-width: 72rem) {
  .carrusel__boton--prev { left: -3rem; }
  .carrusel__boton--next { right: -3rem; }
}
.centro { text-align: center; }

/* Sobre mí */

.sobre__nombre {
  color: var(--acento);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sobre__cabecera { display: flex; flex-direction: column; gap: 0.5rem; }
.sobre__texto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: #d1d5db;
}
.sobre__texto strong { color: #fff; }
.sobre__foto { border: 4px solid color-mix(in srgb, var(--acento) 20%, transparent); }
.sobre__foto .hueco { background: #3a3a3a; color: #a3a3a3; }
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  opacity: 0.5;
}
.logos .hueco { width: 4rem; height: 3rem; padding: 0.25rem; background: #3a3a3a; color: #a3a3a3; font-size: 0.625rem; }

/* Preguntas frecuentes */

.faq { display: flex; flex-direction: column; gap: 3rem; max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--borde); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover h3 { text-decoration: underline; }
.faq summary h3 { font-size: 1.125rem; font-weight: 700; }
.faq summary .icono { width: 1rem; height: 1rem; transition: transform 0.2s; }
.faq details[open] summary .icono { transform: rotate(180deg); }
.faq__respuesta { padding-bottom: 1rem; color: var(--texto-suave); }

/* Pie */

.pie { padding-block: 5rem; background: var(--negro); color: #fff; }
.pie__columnas {
  display: grid;
  gap: 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .pie__columnas { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.pie__columna { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) {
  .pie__columna { align-items: flex-start; }
}
.pie__logo { width: 9rem; height: 3rem; background: #2a2a2a; color: #8a8a8a; }
.pie__columna p, .pie__columna ul { color: #9ca3af; }
.pie__titulo { font-size: 1.25rem; font-weight: 700; }
.pie__contacto { display: flex; flex-direction: column; gap: 1rem; }
.pie__contacto li { display: flex; align-items: center; gap: 0.75rem; }
.pie__contacto .icono { color: var(--acento); }
.pie__horario { display: flex; flex-direction: column; gap: 0.5rem; }
.pie__legal {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
}
.pie__legal p + p { margin-top: 1rem; max-width: 42rem; margin-inline: auto; }

/* Página de gracias */

.gracias {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  text-align: center;
}
.gracias__caja {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 42rem;
}
.gracias__logo { width: 8rem; height: 4rem; margin-bottom: 2rem; }
.gracias h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
}
.gracias__texto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  color: var(--texto-suave);
}
.gracias__pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 5rem;
  color: var(--texto-suave);
  font-size: 0.875rem;
}
.gracias__pie .hueco { width: 6rem; height: 3rem; opacity: 0.5; }
.gracias__pie a { color: inherit; }
.gracias__aviso { max-width: 32rem; font-size: 0.75rem; }

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

/* ---------- Identidad de Sandra ---------- */

.foto img, .carrusel__item img { display: block; width: 100%; height: auto; object-fit: cover; }

.titulo {
  font-weight: 300;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}
.texto-suave, .sobre__texto, .faq__respuesta { font-size: 1.2rem; line-height: 1.6; }
.texto-suave strong, .sobre__texto strong { font-weight: 700; }

.boton {
  border-radius: 0;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.boton--grande { padding: 1rem 2.5rem; font-size: 0.95rem; }
.boton--whatsapp { font-size: 0.95rem; }

.hero__imagen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 35%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.45));
}
.hero__marca { width: auto; height: 4.5rem; margin-bottom: 1.5rem; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(1.6rem, 0.9rem + 3vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
}
.hero p { font-family: var(--fuente-texto); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); font-weight: 400; }

.ventajas li { font-family: var(--fuente-titulos); letter-spacing: 0.04em; }

.formulario__tarjeta h2 { font-weight: 500; font-size: 1.5rem; }
.lista h3 { font-weight: 600; font-size: 1.15rem; }
.lista li { font-size: 1.15rem; color: var(--texto-suave); }

.sobre__nombre {
  font-family: var(--fuente-firma);
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.sobre__texto { color: #cfcfcf; }

.alumnas {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.alumnas__titulo {
  margin-bottom: 2rem;
  color: var(--acento);
  font-family: var(--fuente-titulos);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}
.alumnas__fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) {
  .alumnas__fotos { grid-template-columns: repeat(4, 1fr); }
}
.alumnas__fotos img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.faq summary h3 { font-weight: 600; font-size: 1.05rem; }

.pie__columna p, .pie__columna ul { font-family: var(--fuente-texto); font-size: 1.1rem; }
.pie__titulo { font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.pie a { color: inherit; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__marca { width: auto; height: 3.5rem; }
.pie__legal { font-family: var(--fuente-titulos); }
.pie__legal a { text-decoration: underline; }

.gracias__marca { width: auto; height: 4.5rem; margin-bottom: 1.5rem; }
.gracias h1 { font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.gracias__texto { font-family: var(--fuente-texto); }
.gracias__pie { font-family: var(--fuente-titulos); }
.gracias__pie img { width: auto; height: 2.5rem; opacity: 0.6; }

/* Sin columna de horario: la cita se elige en la agenda tras el formulario */
@media (min-width: 768px) {
  .pie__columnas { grid-template-columns: repeat(2, 1fr); }
}

/* Formulario final, tras las preguntas frecuentes */
.formulario-final .formulario__tarjeta { max-width: 42rem; margin-inline: auto; }

/* Calendario de reserva de GHL: ocupa el alto que se le da, así que va con altura fija
   suficiente para el formulario y la elección de hora, y con scroll interno si hace falta */
.calendario { display: block; width: 100%; height: 880px; border: 0; }

/* Titular del hero con más peso y "sin quemar" resaltado */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fuentes/bricolage-grotesque-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.hero h1 {
  font-family: "Bricolage Grotesque", "Raleway", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 4vw, 3.75rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.hero h1 .resaltado { color: #e6c86e; }
.r-4-3 { aspect-ratio: 4 / 3; }

/* Foto que alterna dos casos cada 3 segundos: la segunda aparece encima con un fundido */
.rotador { position: relative; }
.rotador img + img { position: absolute; inset: 0; opacity: 0; animation: alterna-fotos 6s infinite; }
@keyframes alterna-fotos {
  0%, 45% { opacity: 0; }
  50%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rotador img + img { animation: none; }
}
