/* =========================================================
   PALOMA LIRIKA · ESTILOS
   =========================================================
   UNIDADES:
   vh = % del ALTO de la pantalla  (10vh = 10% del alto)
   vw = % del ANCHO de la pantalla (10vw = 10% del ancho)
   min(3vh, 5vw) = coge el más pequeño de los dos
   ========================================================= */

/* ---------- Colores (sacados del diseño "Vuelve a ti") ---------- */
:root {
  --crema:        #f6ebdd;
  --crema-claro:  #fbf4ea;
  --melocoton:    #e6ac8c;
  --terracota:    #c8714f;
  --oxido:        #a8513a;
  --granate:      #7a1f1f;
  --granate-osc:  #5e1717;

  --texto:        #7a1f1f;               /* títulos */
  --texto-suave:  #9a4a35;               /* textos */
  --linea:        rgba(168, 81, 58, 0.45);
  --cristal:      rgba(255, 250, 243, 0.55);
  --cristal-hover:rgba(230, 172, 140, 0.30);

  --fuente-titulos: "Playfair Display", Georgia, serif;
  --fuente-texto:   "Lato", "Helvetica Neue", Arial, sans-serif;

  --alto-nav: 64px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--alto-nav);   /* el scroll suave lo hace el JS */
}

/* letra un poco más grande en pantallas grandes
   (todo lo que va en "rem" crece a la vez) */
@media (min-width: 761px) {
  html { font-size: 106.25%; }   /* 17px */
}

@media (min-width: 1200px) {
  html { font-size: 112.5%; }    /* 18px */
}

body {
  font-family: var(--fuente-texto);
  font-weight: 300;
  color: var(--texto-suave);
  line-height: 1.6;
  background-color: var(--crema);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 30%, var(--crema-claro), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.estrella {
  display: block;
  color: var(--oxido);
}


/* =========================================================
   BARRA DE NAVEGACIÓN
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--alto-nav);
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;

  background: rgba(246, 235, 221, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);

  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

.navbar-logo {
  font-family: var(--fuente-titulos);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--granate);
}

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  transition: color 0.2s;
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.activo {
  color: var(--granate);
}

.navbar-links a.activo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--terracota);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.navbar-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--granate);
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggle span:nth-child(1) { top: 2px; }
.navbar-toggle span:nth-child(2) { top: 11px; }
.navbar-toggle span:nth-child(3) { top: 20px; }

.navbar-toggle.abierto span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.navbar-toggle.abierto span:nth-child(2) { opacity: 0; }
.navbar-toggle.abierto span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* =========================================================
   PORTADA — ocupa justo el 100% de la pantalla
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2vh 4vw 9vh;          /* abajo deja sitio al pie con el correo */
  overflow: hidden;
}

/* todo el contenido por encima de los adornos */
.hero > *:not(.decor) {
  position: relative;
  z-index: 2;
}

/* --- arco de doble línea (como en el diseño) --- */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border: 1px solid var(--linea);
  border-bottom: none;
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  top: 1.5vh;
  width: min(94vw, 900px);
  border-radius: min(47vw, 450px) min(47vw, 450px) 0 0;
}

.hero::after {
  top: 2.8vh;
  width: calc(min(94vw, 900px) - 2.6vh);
  border-radius: min(47vw, 450px) min(47vw, 450px) 0 0;
}

/* --- adornos: ondas y rama --- */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.onda-arriba {
  top: 0;
  left: 0;
  width: min(30vw, 40vh);
}

.rama {
  top: 2vh;
  right: 0;
  width: min(22vw, 30vh);
  opacity: 0.9;
}

/* --- adornos de las secciones --- */
.seccion {
  position: relative;
  overflow: hidden;
}

.seccion > .contenedor {
  position: relative;
  z-index: 2;
}

.rama-sec {
  width: min(22vw, 240px);
  opacity: 0.75;
  /* se difumina hacia dentro, como un degradado */
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 100% 55%, #000 40%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 90% at 100% 55%, #000 40%, transparent 85%);
}

.rama-peque {
  width: min(16vw, 170px);
}

.onda-sec {
  width: min(26vw, 300px);
  opacity: 0.8;
  /* se difumina por el borde que toca la línea, así no hay corte */
  -webkit-mask-image: radial-gradient(ellipse 100% 62% at 0% 62%, #000 30%, transparent 95%);
          mask-image: radial-gradient(ellipse 100% 62% at 0% 62%, #000 30%, transparent 95%);
}

/* esquinas (los dibujos se dan la vuelta para mirar hacia dentro)
   las ramas se separan un poco de la línea para que no se corten */
.arriba-dcha { top: 0;    right: 0; }
.arriba-izq  { top: 0;    left: 0;  transform: scaleX(-1); }
.abajo-dcha  { bottom: 0; right: 0; transform: scaleY(-1); }
.abajo-izq   { bottom: 0; left: 0;  transform: scale(-1, -1); }

.rama-sec.arriba-dcha,
.rama-sec.arriba-izq { top: 4vh; }
.rama-sec.abajo-dcha,
.rama-sec.abajo-izq  { bottom: 4vh; }

.onda-sec.arriba-dcha { transform: scaleX(-1); }
.onda-sec.abajo-izq   { transform: scaleY(-1); }

/* --- círculo de la foto --- */
.foto-circulo {
  height: 26vh;
  width: 26vh;
  max-width: 55vw;
  max-height: 55vw;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--terracota);
  background: rgba(230, 172, 140, 0.25);
  box-shadow:
    0 0 0 0.9vh var(--crema),
    0 0 0 calc(0.9vh + 1px) var(--linea);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto-circulo img,
.conoceme-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-placeholder {
  text-align: center;
  font-size: min(1.1vh, 2.4vw);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 50%;
  line-height: 1.5;
  color: var(--oxido);
}

.conoceme-foto .foto-placeholder {
  font-size: 0.75rem;
}

/* --- nombre --- */
.hero-nombre {
  margin-top: 2.2vh;
  font-family: var(--fuente-titulos);
  font-size: min(4vh, 7vw);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--granate);
  transition: opacity 0.3s;
}

.hero-nombre:hover {
  opacity: 0.75;
}

.hero-subtitulo {
  margin-top: 0.8vh;
  font-size: min(1.6vh, 2.9vw);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--oxido);
}

/* --- separador: línea ✦ línea --- */
.separador {
  margin-top: 1.4vh;
  display: flex;
  align-items: center;
  gap: 1.4vh;
  font-size: min(2vh, 4vw);
  line-height: 1;
  color: var(--oxido);
}

.separador span {
  display: block;
  width: min(14vh, 22vw);
  height: 1px;
  background: var(--linea);
}

.hero-frase {
  margin-top: 0.8vh;
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: min(2.8vh, 5vw);
  line-height: 1.3;
  color: var(--oxido);
}

/* --- tarjetas --- */
.tarjetas {
  width: min(86vw, 760px);
  margin-top: 2vh;
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  text-align: left;
}

.tarjeta {
  display: block;
  padding: 1.5vh min(3vh, 5vw);
  border: 1px solid var(--linea);
  border-radius: min(1.6vh, 3vw);
  background: var(--cristal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0.8vh 2.4vh rgba(122, 31, 31, 0.07);
}

.tarjeta-titulo {
  font-family: var(--fuente-titulos);
  font-size: min(2.4vh, 4.6vw);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--granate);
  margin-bottom: 1.2vh;
}

.tarjeta-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(1.2vh, 2vw);
}

.boton {
  display: flex;
  align-items: center;
  padding: 1vh min(1.8vh, 2.6vw);
  border: 1px solid var(--linea);
  border-radius: min(0.9vh, 1.6vw);
  font-size: min(2vh, 3.5vw);
  font-weight: 400;
  line-height: 1.25;
  color: var(--texto-suave);
  transition: background 0.25s, transform 0.25s, color 0.25s;
}

.tarjeta {
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tarjeta:not(.tarjeta-programa):hover {
  border-color: var(--terracota);
  box-shadow: 0 1vh 3vh rgba(122, 31, 31, 0.12);
}

.tarjeta-titulo a {
  transition: color 0.25s;
}

.tarjeta-titulo a:hover {
  color: var(--terracota);
}

.boton:hover {
  background: rgba(200, 113, 79, 0.14);
  border-color: var(--terracota);
  color: var(--granate);
  transform: translateY(-2px);
}

/* al pulsar se queda marcado un momento */
.boton:active {
  background: var(--terracota);
  border-color: var(--terracota);
  color: var(--crema-claro);
}

/* tarjeta del programa: crema con doble línea fina como el arco del diseño;
   al pasar el ratón se oscurece a granate */
.tarjeta-programa {
  background-color: var(--crema-claro);
  border-color: var(--terracota);
  box-shadow:
    inset 0 0 0 4px var(--crema-claro),
    inset 0 0 0 5px var(--linea),
    0 0.8vh 2.4vh rgba(122, 31, 31, 0.07);
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.25s;
}

.tarjeta-programa:hover {
  background-color: var(--granate);
  border-color: var(--granate);
  box-shadow:
    inset 0 0 0 4px var(--granate),
    inset 0 0 0 5px rgba(251, 244, 234, 0.35),
    0 1.2vh 3vh rgba(122, 31, 31, 0.2);
  transform: translateY(-2px);
}

.tarjeta-programa .tarjeta-titulo {
  color: var(--terracota);
  margin-bottom: 1vh;
  transition: color 0.35s;
}

.tarjeta-programa-nombre {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: min(2.9vh, 5.2vw);
  line-height: 1.2;
  color: var(--granate);
  transition: color 0.35s;
}

.tarjeta-programa:hover .tarjeta-titulo,
.tarjeta-programa:hover .tarjeta-programa-nombre {
  color: var(--crema-claro);
}

/* --- pie de la portada con el correo ---
   En la portada: franja granate pegada abajo, ocupando todo el ancho.
   Al bajar, el JS le pone la clase "transparente": se va el color y queda solo el mensaje. */
.hero > .hero-contacto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1.8vh 6vw;
  text-align: center;
  font-size: min(1.9vh, 3.4vw);
  font-weight: 400;
  line-height: 1.45;
  color: var(--crema-claro);
  background: var(--granate);
  transition: background-color 0.6s, color 0.6s;
}

.hero > .hero-contacto a {
  color: var(--crema-claro);
  border-bottom: 1px solid rgba(251, 244, 234, 0.5);
  transition: color 0.6s, border-color 0.6s;
}

.hero > .hero-contacto.transparente {
  background-color: transparent;
  color: var(--texto-suave);
}

.hero > .hero-contacto.transparente a {
  color: var(--granate);
  border-color: var(--linea);
}

.contacto-mail {
  color: var(--granate);
  border-bottom: 1px solid var(--linea);
  transition: border-color 0.2s;
}

.contacto-mail:hover {
  border-color: var(--granate);
}


/* =========================================================
   SECCIONES
   ========================================================= */
.seccion {
  padding: 9vh 4% 12vh;
  border-top: 1px solid rgba(168, 81, 58, 0.22);   /* línea fina entre secciones */
}

.seccion > .contenedor + .contenedor {
  margin-top: 7vh;
}

.contenedor {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.seccion-etiqueta {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terracota);
  text-align: center;
}

.seccion-titulo {
  font-family: var(--fuente-titulos);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  color: var(--granate);
  margin: 8px 0 24px;
}

.seccion-titulo-grande {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
}

.seccion-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.12rem;
}

.seccion p + p {
  margin-top: 1em;
}

.bloques {
  margin-top: 6vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bloque {
  padding: 32px;
  border: 1px solid var(--linea);
  border-radius: 140px 140px 14px 14px;   /* forma de arco */
  padding-top: 56px;
  text-align: center;
  background: var(--cristal);
  display: flex;
  flex-direction: column;
}

/* --- tarifa + botón "Contactar cita" al final de cada recuadro --- */
.bloque-pie {
  margin-top: auto;              /* empuja el pie al fondo: los dos recuadros alineados */
  padding-top: 2.4vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bloque-pie::before {
  content: "";
  flex-basis: 100%;
  height: 1px;
  margin-bottom: 1.8vh;
  background: var(--linea);
}

.tarifa {
  font-family: var(--fuente-titulos);
  font-size: 1.6rem !important;
  line-height: 1;
  color: var(--granate);
}

/* duración de la sesión, encima del precio */
.duracion {
  margin: 0 0 0.6vh !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em;
  color: var(--oxido);
}

.tarifa-caja .tarifa {
  margin-top: 0 !important;
}

.boton-cita {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  background: var(--granate);
  color: var(--crema-claro);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background 0.3s, transform 0.25s;
}

.boton-cita:hover {
  background: var(--oxido);
  transform: translateY(-2px);
}

/* cuando pulsas un botón de la portada, el recuadro elegido se marca un momento */
.bloque,
.bloque.aparecer {
  transition: opacity 0.8s ease, transform 0.8s ease,
              border-color 0.6s, background-color 0.6s, box-shadow 0.6s;
}

.bloque.marcado {
  border-color: var(--terracota);
  background-color: rgba(241, 205, 182, 0.35);
  box-shadow:
    inset 0 0 0 4px var(--crema-claro),
    inset 0 0 0 5px var(--linea),
    0 1vh 3vh rgba(122, 31, 31, 0.12);
}

.bloque h3 {
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--granate);
  margin-bottom: 14px;
}

.bloque p {
  font-size: 1.05rem;
  text-align: left;
}

/* --- textos largos (Conóceme y Vuelve a ti) --- */
.texto-largo {
  max-width: 880px;
}

.texto-largo p {
  font-size: 1.12rem;
}

.saludo {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.6rem !important;
  color: var(--granate);
}

.separador-seccion {
  justify-content: center;
  margin: 0 auto 4vh;
  font-size: 1rem;
}

.separador-seccion span {
  width: 90px;
}

.subtitulo {
  font-family: var(--fuente-titulos);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--granate);
  text-align: center;
  line-height: 1.25;
  margin-top: 7vh;
}

.texto-largo > .separador-seccion + .subtitulo {
  margin-top: 0;
}

.subtitulo-frase {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.25rem !important;
  color: var(--terracota);
  text-align: center;
  margin: 6px 0 4vh !important;
}

.destacado {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem) !important;
  line-height: 1.4;
  color: var(--granate);
  text-align: center;
  margin: 5vh 0 !important;
}

.centrado {
  text-align: center;
}

/* frase corta en cursiva, dentro del texto */
.frase {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.25rem !important;
  line-height: 1.5;
  color: var(--granate);
}

/* destacado largo (el de "Cuando reconoces el potencial...") */
.destacado-largo {
  font-size: clamp(1.15rem, 2.8vw, 1.4rem) !important;
  line-height: 1.55;
  padding: 3vh 4%;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  margin-top: 0 !important;
}

.enlace-programa {
  display: block;
  width: fit-content;
  margin: 5vh auto 0;
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--oxido);
  border-bottom: 1px solid var(--linea);
  transition: color 0.25s, border-color 0.25s;
}

.enlace-programa:hover {
  color: var(--granate);
  border-color: var(--granate);
}

.cita {
  margin: 0 0 5vh;
  padding: 3vh 4%;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.5;
  color: var(--granate);
  text-align: center;
}

.lista {
  list-style: none;
  margin: 2vh 0 0;
}

.lista li {
  position: relative;
  padding-left: 30px;
  font-size: 1.1rem;
  margin-bottom: 1.2em;
}

.lista li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 0.1em;
  font-size: 0.8rem;
  color: var(--terracota);
}

/* --- fases del programa --- */
.fases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.fase-numero {
  font-size: 0.82rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center !important;
  color: var(--terracota);
  margin-bottom: 6px;
}

.fase-herramientas {
  font-family: var(--fuente-titulos);
  font-style: italic;
  text-align: center !important;
  color: var(--oxido);
  margin-bottom: 1em;
}

/* --- precio --- */
.precio {
  margin: 5vh auto 0;
  max-width: 380px;
  padding: 3.5vh 24px;
  text-align: center;
  border: 1px solid var(--linea);
  border-radius: 120px 120px 14px 14px;
  background: var(--cristal);
}

.precio p {
  margin: 0 !important;
}

.precio-titulo {
  font-size: 0.85rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracota);
}

.precio-etiqueta {
  margin-top: 1.4vh !important;
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.1rem !important;
  color: var(--oxido);
}

.precio-cifra {
  font-family: var(--fuente-titulos);
  font-size: 3rem !important;
  line-height: 1.2;
  color: var(--granate);
}

.precio-nota {
  margin-top: 0.6vh !important;
  font-size: 0.95rem !important;
}

/* --- botón final --- */
.boton-cta {
  display: block;
  width: fit-content;
  margin: 3vh auto 0;
  padding: 16px 40px;
  border-radius: 40px;
  background: var(--granate);
  color: var(--crema-claro);
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.3rem;
  transition: background 0.3s, transform 0.25s;
}

.boton-cta:hover {
  background: var(--oxido);
  transform: translateY(-2px);
}

/* --- conóceme --- */
.conoceme {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6%;
  align-items: center;
}

.conoceme-foto {
  width: min(100%, 52vh);        /* más pequeña para que quepa entera en la pantalla */
  justify-self: center;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 14px 14px;
  border: 1.5px solid var(--terracota);
  background: rgba(230, 172, 140, 0.25);
  box-shadow:
    0 0 0 10px var(--crema),
    0 0 0 11px var(--linea);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conoceme-texto .seccion-etiqueta,
.conoceme-texto .seccion-titulo {
  text-align: left;
}

.conoceme-texto p:not(.seccion-etiqueta) {
  font-size: 1.1rem;
}

/* --- Mi historia: foto de fondo a un lado, difuminada --- */
.historia {
  position: relative;
  margin-top: 9vh;
}

.historia > .contenedor {
  position: relative;
  z-index: 2;
}

.historia-fondo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);        /* llega hasta el borde de la pantalla */
  width: 44vw;
  background-image: url("img/historia.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  /* se difumina hacia el texto y por arriba y abajo */
  -webkit-mask-image:
    linear-gradient(to right, #000 35%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, #000 35%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
  pointer-events: none;
  z-index: 1;
}

/* en ordenador el texto se va a la derecha para dejar ver la foto */
@media (min-width: 1001px) {
  .historia .texto-largo {
    margin-left: auto;
    margin-right: max(0px, calc(50% - 600px));
  }
}

/* en tablet y móvil la foto va arriba del texto, difuminada por abajo */
@media (max-width: 1000px) {
  .historia-fondo {
    position: relative;
    left: auto;
    width: 100%;
    height: 42vh;
    margin-bottom: -8vh;
    opacity: 0.8;
    border-radius: 14px 14px 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
  }
}

/* --- contacto final --- */
.seccion-contacto {
  text-align: center;
}

.seccion-contacto .estrella {
  font-size: 1.3rem;
}

.seccion-contacto p {
  max-width: 560px;
  margin: 18px auto 14px;
  font-size: 1.12rem;
}

.contacto-mail {
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.footer {
  padding: 8vh 4% 0;
  color: rgba(251, 244, 234, 0.85);
  background: var(--granate);
}

.footer a {
  transition: color 0.25s, opacity 0.25s;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-nombre {
  font-family: var(--fuente-titulos);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crema-claro);
}

.footer-lema {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 244, 234, 0.7);
}

.footer-frase {
  margin-top: 18px;
  font-family: var(--fuente-titulos);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--melocoton);
}

.footer-titulo {
  margin-bottom: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--melocoton);
}

.footer-lista {
  list-style: none;
}

.footer-lista li + li {
  margin-top: 10px;
}

.footer-lista a {
  font-size: 0.95rem;
  color: rgba(251, 244, 234, 0.85);
}

.footer-lista a:hover {
  color: var(--crema-claro);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* iconos redondos de Instagram, WhatsApp y correo */
.footer-redes {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.red {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(251, 244, 234, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crema-claro);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.red svg {
  width: 21px;
  height: 21px;
}

.red:hover {
  background: var(--crema-claro);
  color: var(--granate);
  transform: translateY(-2px);
}

/* franja de abajo del todo */
.footer-abajo {
  max-width: 1200px;
  margin: 6vh auto 0;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(251, 244, 234, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(251, 244, 234, 0.65);
}

.footer-subir:hover {
  color: var(--crema-claro);
}

/* =========================================================
   ACOMPAÑAMIENTO Y TAROT: cada una ocupa justo una pantalla
   (el alto de la pantalla menos la barra de arriba),
   con el contenido centrado: misma distancia arriba y abajo.
   Solo en ordenador/tablet; en móvil los recuadros van uno
   debajo del otro y no caben en una pantalla.
   ========================================================= */
@media (min-width: 761px) {
  #terapia,
  #tarot {
    min-height: calc(100vh - var(--alto-nav));
    min-height: calc(100svh - var(--alto-nav));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vh 4%;
  }

  #terapia .seccion-titulo,
  #tarot .seccion-titulo {
    margin-bottom: 0;
  }

  #terapia .bloques,
  #tarot .bloques {
    margin-top: 4vh;
  }

  #terapia .bloque,
  #tarot .bloque {
    padding: 5vh 32px 4vh;
  }

  #terapia .bloque h3,
  #tarot .bloque h3 {
    font-size: min(1.5rem, 3.2vh);
    margin-bottom: 1.6vh;
  }

  #terapia .bloque p,
  #tarot .bloque p {
    font-size: min(1.1rem, 2.4vh, 1.45vw);
  }

  #terapia .tarifa,
  #tarot .tarifa {
    font-size: min(1.6rem, 3.2vh) !important;
  }

  #terapia .boton-cita,
  #tarot .boton-cita {
    padding: 1.2vh 24px;
    font-size: min(0.95rem, 2vh);
  }
}

/* =========================================================
   FLECHA VOLVER ARRIBA
   ========================================================= */
.volver-arriba {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(251, 244, 234, 0.55);   /* borde clarito: se ve también sobre el pie granate */
  background: var(--granate);
  color: var(--crema);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 6px 18px rgba(122, 31, 31, 0.25);

  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s, background 0.2s;
}

.volver-arriba.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.volver-arriba:hover {
  background: var(--oxido);
}


/* =========================================================
   AVISO "CORREO COPIADO"
   ========================================================= */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 30px;
  background: var(--granate);
  color: var(--crema-claro);
  font-size: 0.95rem;
  font-weight: 400;
  box-shadow: 0 6px 18px rgba(122, 31, 31, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s, transform 0.35s;
}

.aviso.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* =========================================================
   ANIMACIÓN AL APARECER
   ========================================================= */
.aparecer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.aparecer.visto {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   MÓVIL (la portada ya se adapta sola)
   ========================================================= */
@media (max-width: 760px) {

  .hero {
    padding-bottom: 13vh;        /* en móvil el pie con el correo ocupa más alto */
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    position: absolute;
    top: var(--alto-nav);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(246, 235, 221, 0.98);
    border-bottom: 1px solid var(--linea);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar-links.abierto {
    max-height: 400px;
  }

  .navbar-links a {
    display: block;
    padding: 16px 20px;
  }

  .navbar-links a.activo::after {
    display: none;
  }

  .bloques,
  .fases,
  .conoceme,
  .footer-contenido {
    grid-template-columns: 1fr;
  }

  .footer-contenido {
    gap: 32px;
    text-align: center;
  }

  .footer-redes {
    justify-content: center;
  }

  .footer-abajo {
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;        /* que no lo tape la flecha de volver arriba */
  }

  .conoceme {
    gap: 36px;
  }

  .conoceme-foto {
    width: min(58vw, 30vh);      /* en móvil, pequeña para que se vea también el título */
    margin: 0 auto;
  }

  .conoceme-texto .seccion-etiqueta,
  .conoceme-texto .seccion-titulo {
    text-align: center;
  }

  .bloque {
    padding: 24px;
    padding-top: 48px;
  }

  .volver-arriba {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* móviles pequeñitos: la foto un poco más pequeña para que quepa todo */
@media (max-width: 420px) and (max-height: 700px) {
  .foto-circulo {
    height: 19vh;
    width: 19vh;
  }
  .hero-subtitulo {
    margin-top: 0.8vh;
  }
  .hero > .hero-contacto {
    padding: 1.2vh 4vw;
  }
}

/* móviles: el título "Acompañamiento terapéutico" con menos espacio entre letras */
@media (max-width: 420px) {
  .tarjeta-titulo {
    letter-spacing: 0.08em;
  }
}

/* espacio solo debajo de "¿Damos el salto?" */
.subtitulo-salto {
  margin-bottom: 4vh;
}