/* --- FUENTES DE GOOGLE --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

/* --- PALETA DE COLORES Y VARIABLES TEMÁTICAS --- */
:root {
  --pulso-vibrante: #E63946;
  --pulso-profundo: #1D3557;
  --pulso-celeste: #457B9D;
  --pulso-suave: #F8F9FA;
  --pulso-arena: #F1FAEE;
  --pulso-texto-oscuro: #121A26;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* --- REGLAS GENERALES Y TIPOGRAFÍA --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--pulso-suave);
  color: var(--pulso-texto-oscuro);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- ANIMACIONES DE DESPLAZAMIENTO (SCROLL-DRIVEN) --- */
@keyframes barra-crecimiento {
  to { width: 100%; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: var(--pulso-vibrante);
  z-index: 10000;
  animation: barra-crecimiento linear;
  animation-timeline: scroll();
}

@keyframes desvanecer-arriba {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.revelación-scroll {
  animation: desvanecer-arriba 0.8s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% entry 30%;
}

/* --- CABECERA PRINCIPAL (PRESET C: BOLD ACCENT) --- */
.pulso-cabecera-global {
  background-color: var(--pulso-profundo);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pulso-barra-navegación {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.pulso-marca-enlace {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.pulso-marca-enlace svg {
  fill: var(--pulso-vibrante);
  width: 32px;
  height: 32px;
}

.pulso-enlaces-lista {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.pulso-enlace-individual {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.pulso-enlace-individual:hover {
  color: var(--pulso-vibrante);
}

/* Menú hamburguesa CSS-only */
.pulso-menu-toggle {
  display: none;
}

.pulso-hamburguesa-icono {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.pulso-hamburguesa-icono span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* --- PORTADA PRINCIPAL (HERO PRESET C) --- */
.pulso-portada-seccion {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(135deg, var(--pulso-vibrante) 0%, var(--pulso-profundo) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.pulso-decoracion-numero {
  position: absolute;
  right: -5%;
  bottom: -5%;
  font-size: 25rem;
  font-family: var(--font-display);
  font-weight: 900;
  opacity: 0.05;
  user-select: none;
  line-height: 1;
}

.pulso-portada-cuerpo {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.pulso-portada-izquierda {
  flex: 1;
  max-width: 650px;
}

.pulso-portada-derecha {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Formas CSS abstractas */
.pulso-formas-abstractas {
  width: 350px;
  height: 350px;
  background: linear-gradient(45deg, var(--pulso-celeste), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  position: relative;
  animation: flotar-formas 8s ease-in-out infinite alternate;
}

.pulso-formas-abstractas::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--pulso-vibrante);
  border-radius: 50%;
  opacity: 0.3;
  top: -20px;
  left: -20px;
  animation: flotar-formas 12s ease-in-out infinite alternate-reverse;
}

@keyframes flotar-formas {
  0% { transform: translateY(0) rotate(0deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { transform: translateY(-20px) rotate(15deg); border-radius: 50% 50% 50% 50%; }
}

.titulo-portada-principal {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.subtitulo-portada-texto {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 300;
}

.pulso-boton-pastilla {
  display: inline-block;
  background-color: var(--pulso-arena);
  color: var(--pulso-profundo);
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pulso-boton-pastilla:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: #ffffff;
}

/* --- SECCIÓN CONTENIDO (DIAGONAL CHOP PRESET C) --- */
.pulso-seccion-diagonal {
  margin: 4rem 0;
}

.pulso-diagonal-cortado {
  background: linear-gradient(rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.95)), url('img/bg2.webp') no-repeat center center/cover;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  padding: 8rem 1.5rem;
  color: #ffffff;
}

.pulso-diagonal-interior {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.pulso-diagonal-titulo {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.pulso-diagonal-texto {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* --- REJILLA CLAVE (FEATURES SECTOR) --- */
.pulso-bienestar-rejilla-seccion {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.pulso-rejilla-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.pulso-rejilla-titulo::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--pulso-vibrante);
  margin: 1rem auto 0;
}

.pulso-rejilla-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.pulso-elemento-tarjeta {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.pulso-elemento-tarjeta:hover {
  transform: translateY(-5px);
}

.pulso-tarjeta-numero {
  font-size: 3.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--pulso-vibrante);
  line-height: 1;
  margin-bottom: 1rem;
}

.pulso-tarjeta-titulo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--pulso-profundo);
}

.pulso-tarjeta-parrafo {
  font-size: 0.95rem;
  color: #555;
}

/* --- CÓMO FUNCIONA (PASOS CONECTOR - PRESET C) --- */
.pulso-pasos-flujo-seccion {
  background-color: var(--pulso-arena);
  padding: 6rem 1.5rem;
}

.pulso-pasos-titulo-seccion {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 5rem;
}

.pulso-pasos-envoltura {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.pulso-linea-conectora {
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 4px;
  background-color: var(--pulso-vibrante);
  z-index: 1;
}

.pulso-pasos-bloques {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.pulso-paso-card {
  flex: 1;
  text-align: center;
}

.pulso-paso-circulo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}

.pulso-paso-circulo.relleno {
  background-color: var(--pulso-profundo);
  color: #ffffff;
}

.pulso-paso-circulo.borde {
  background-color: var(--pulso-arena);
  border: 4px solid var(--pulso-profundo);
  color: var(--pulso-profundo);
}

.pulso-paso-titulo {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--pulso-profundo);
}

.pulso-paso-descripcion {
  font-size: 0.9rem;
  color: #555;
}

/* --- FRANJA HISTORIAS / CTA (CTA STRIP - PRESET C) --- */
.pulso-franja-accion {
  background-color: var(--pulso-profundo);
  color: #ffffff;
  padding: 4rem 1.5rem;
}

.pulso-franja-interior {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pulso-franja-texto {
  max-width: 700px;
}

.pulso-franja-texto h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.pulso-franja-texto p {
  opacity: 0.8;
}

/* --- ESTILOS DE PÁGINA EXPERTO --- */
.experto-hero-cabecera {
  background: var(--pulso-profundo);
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.experto-hero-cabecera h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.experto-bloque-cta {
  background-color: var(--pulso-arena);
  padding: 3rem 1.5rem;
  text-align: center;
}

.experto-bloque-cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.experto-detalles-seccion {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.experto-detalles-izquierda {
  flex: 1.2;
}

.experto-detalles-derecha {
  flex: 0.8;
}

.experto-detalles-derecha img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experto-estadisticas-contenedor {
  background-color: var(--pulso-profundo);
  color: #ffffff;
  padding: 4rem 1.5rem;
}

.experto-estadisticas-rejilla {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.experto-stat-cifra {
  font-size: 3.5rem;
  font-family: var(--font-display);
  color: var(--pulso-vibrante);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.experto-stat-etiqueta {
  font-size: 1rem;
  opacity: 0.8;
}

.experto-cierre-seccion {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.experto-cierre-imagen {
  flex: 1;
}

.experto-cierre-imagen img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.experto-cierre-contenido {
  flex: 1;
}

/* --- ESTILOS DE REGLAS DE RESERVA --- */
.registro-seccion-doble {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 4rem;
}

.registro-formulario-lado {
  flex: 1.2;
}

.registro-info-lado {
  flex: 0.8;
}

.registro-formulario-tarjeta {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.registro-formulario-tarjeta h2 {
  margin-bottom: 2rem;
  color: var(--pulso-profundo);
}

.registro-control-formulario {
  margin-bottom: 1.5rem;
}

.registro-control-formulario label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.registro-control-input, .registro-control-textarea {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.registro-control-input:focus, .registro-control-textarea:focus {
  border-color: var(--pulso-vibrante);
  outline: none;
}

.registro-checkbox-env {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.registro-checkbox-env input {
  margin-top: 0.3rem;
}

.registro-boton-enviar {
  background-color: var(--pulso-vibrante);
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
}

.registro-boton-enviar:hover {
  background-color: var(--pulso-profundo);
}

.registro-carta-info {
  background-color: var(--pulso-arena);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.registro-carta-info h3 {
  color: var(--pulso-profundo);
  margin-bottom: 1rem;
}

.registro-carta-info ul {
  list-style: none;
  padding: 0;
}

.registro-carta-info li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.registro-carta-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pulso-vibrante);
  font-weight: 700;
}

/* --- FAQ ACCORDION (CSS ONLY) --- */
.registro-preguntas-bloque {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.registro-preguntas-titulo {
  text-align: center;
  margin-bottom: 3rem;
}

.registro-faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.registro-faq-pregunta {
  font-size: 1.2rem;
  color: var(--pulso-profundo);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.registro-faq-respuesta {
  color: #555;
  font-size: 0.95rem;
}

/* --- ESTILOS DE PÁGINAS LEGALES (100VH MIN) --- */
.legal-seccion-principal {
  min-height: 80vh;
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.legal-seccion-principal h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--pulso-profundo);
}

.legal-seccion-principal h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--pulso-profundo);
}

.legal-seccion-principal p {
  margin-bottom: 1.5rem;
  color: #444;
}

/* --- COOKIE BANNER --- */
.cookies-ventana-alerta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--pulso-profundo);
  color: #ffffff;
  padding: 1.5rem;
  z-index: 99999;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.cookies-ventana-alerta.visible {
  transform: translateY(0);
}

.cookies-texto-mensaje {
  max-width: 800px;
  font-size: 0.95rem;
}

.cookies-acciones-botones {
  display: flex;
  gap: 1rem;
}

.cookie-boton-permiso {
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 30px;
}

.cookie-boton-permiso.aceptar {
  background-color: var(--pulso-vibrante);
  color: #ffffff;
}

.cookie-boton-permiso.rechazar {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

/* --- AGRADECIMIENTO PAGE --- */
.gracias-contenedor-centro {
  text-align: center;
  padding: 8rem 1.5rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gracias-contenedor-centro img {
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
  margin: 2rem 0;
}

/* --- PIE DE PÁGINA (COMMON FOOTER) --- */
.pulso-pie-inferior {
  background-color: var(--pulso-profundo);
  color: #ffffff;
  padding: 4rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.pulso-pie-interior {
  max-width: 1200px;
  margin: 0 auto;
}

.pulso-pie-bloques {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2.5rem;
}

.pulso-pie-marca {
  max-width: 400px;
}

.pulso-pie-marca p {
  margin-top: 1rem;
  opacity: 0.7;
}

.pulso-pie-enlaces-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pulso-pie-enlaces-grupo h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pulso-pie-enlaces-grupo a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.pulso-pie-enlaces-grupo a:hover {
  opacity: 1;
  color: var(--pulso-vibrante);
}

.pulso-pie-descargo {
  margin: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.4;
}

.pulso-pie-derechos {
  text-align: center;
  opacity: 0.5;
  font-size: 0.8rem;
}

/* --- MEDIA QUERIES (RESPONSIVENESS) --- */
@media (max-width: 768px) {
  .pulso-hamburguesa-icono {
    display: flex;
  }

  .pulso-enlaces-lista {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--pulso-profundo);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .pulso-menu-toggle:checked ~ .pulso-enlaces-lista {
    transform: translateY(0);
    opacity: 1;
  }

  .pulso-portada-cuerpo {
    flex-direction: column;
    text-align: center;
  }

  .pulso-formas-abstractas {
    display: none;
  }

  .titulo-portada-principal {
    font-size: 2.5rem;
  }

  .pulso-pasos-bloques {
    flex-direction: column;
    gap: 3rem;
  }

  .pulso-linea-conectora {
    display: none;
  }

  .pulso-franja-interior {
    flex-direction: column;
    text-align: center;
  }

  .experto-detalles-seccion, .experto-cierre-seccion {
    flex-direction: column;
  }

  .experto-estadisticas-rejilla {
    grid-template-columns: repeat(2, 1fr);
  }

  .registro-seccion-doble {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .experto-estadisticas-rejilla {
    grid-template-columns: 1fr;
  }
}