/* ==========================================================================
   ESTILOS LANDING PAGE: 8 PASOS PARA RENTABILIZAR TU FARMACIA
   Estructura unificada CSS: Variables, Reset, Componentes y Responsivo
   ========================================================================== */

/* FUENTES LOCALES RALEWAY */
@font-face {
  font-family: 'Raleway';
  src: url('Fuentes/Raleway/Raleway-Regular.ttf') format('truetype');
  font-weight: 400; /* Regular */
}

@font-face {
  font-family: 'Raleway';
  src: url('Fuentes/Raleway/Raleway-Medium.ttf') format('truetype');
  font-weight: 500; /* Medium */
}

@font-face {
  font-family: 'Raleway';
  src: url('Fuentes/Raleway/Raleway-SemiBold.ttf') format('truetype');
  font-weight: 600; /* SemiBold */
}

@font-face {
  font-family: 'Raleway';
  src: url('Fuentes/Raleway/Raleway-Bold.ttf') format('truetype');
  font-weight: 700; /* Bold */
}

@font-face {
  font-family: 'Raleway';
  src: url('Fuentes/Raleway/Raleway-ExtraBold.ttf') format('truetype');
  font-weight: 800; /* ExtraBold */
}

/* --------------------------------------------------------------------------
   1. VARIABLES CSS (SISTEMA DE DISEÑO)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de Colores Corporativos */
  --primary-dark: #16432b;
  --primary-green: #4b8253;
  --primary-gradient: linear-gradient(135deg, #2d4f33 0%, #4b8253 50%, #60b36e 100%);
  --accent-green: #2e8b57;
  --secundary-green: #2a4a30;
  --light-green-bg: #e9f5ea;
  --active-card-bg: #eaf5ed;
  --active-card-border: #235d3d;
  --badge-green-bg: rgba(234, 245, 237, 0.85);
  --badge-green-text: #1b4b32;
  --hero-badge-bg: rgba(255, 255, 255, 0.15);
  --hero-badge-border: rgba(255, 255, 255, 0.3);

  /* Colores de Texto */
  --text-dark: #11281c;
  --text-body: #4a5568;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.85);

  /* Colores de Fondo y Tarjetas */
  --bg-light: #ffffff;
  --bg-offwhite: #f8faf9;
  --card-bg-white: #ffffff;
  --card-border: #e2ede5;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus-border: #235d3d;

  /* Tipografía */
  --font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-headings: 'Montserrat', 'Raleway', sans-serif;

  /* Dimensiones y Sombras */
  --container-max-width: 1200px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-active: 0 12px 32px rgba(35, 93, 61, 0.15);
  --shadow-button: 0 8px 20px rgba(35, 93, 61, 0.3);

  /* Bordes Redondeados */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET CSS Y ESTILOS BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Encabezados genéricos de sección */
.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background-color: var(--light-green-bg);
  color: #4b8253;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: #2a4a30;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. HEADER / NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-light);
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-placeholder {
  display: flex;
  align-items: center;
}

.logo-placeholder img {

  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo-placeholder:hover img {
  transform: scale(1.02);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-green);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(35, 93, 61, 0.2);
  white-space: nowrap;
}

.btn-header-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 93, 61, 0.35);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: var(--primary-gradient);
  color: var(--text-light);
  padding: 40px 0 100px;
  overflow: hidden;
}

.feature-pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px; 
}

.pill-item {
  display: flex;
  align-items: center;
  gap: 6px; 
  white-space: nowrap; 
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: #a9d6ad;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-light-muted);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-subtitle strong {
  color: #ffffff; 
  font-weight: 800; /* Incrementa el grosor de la letra */
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.feature-pill .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #72db9b;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(49, 87, 54, 0.75) 0%, rgba(65, 125, 85, 0.35) 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Marco exterior y pantalla del video */
.hero-video-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.video-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease;
  line-height: 0; 
}

.video-card:hover {
  transform: translateY(-4px);
}

/* La miniatura se adapta a su tamaño nativo sin forzar deformaciones */
.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* Redondeo interno suave que encaja con el marco */
  object-fit: contain;
}

.video-card:hover {
  transform: translateY(-4px);
}

/* La miniatura limpia ocupando el centro */
.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: px;
  display: block;
}

/* Botón Play Verde Semitransparente centrado */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background-color: rgba(69, 133, 89, 0.82); /* Verde de la marca semitransparente */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-card:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: rgba(69, 133, 89, 0.95);
}

/* Triángulo blanco del play */
.play-icon {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #ffffff;
  margin-left: 4px; /* Centrado óptico */
}

/* Destello sutil azul/verde en la esquina inferior derecha */
.glow-effect {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(140, 210, 215, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
}

.hero-curve-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-curve-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px; /* Altura óptima para mantener la escala del diseño */
}

.hero-curve-divider .shape-fill {
  fill: #ffffff; /* Ajusta al color exacto de la siguiente sección (#fafafa o #ffffff) */
}

/* Asegura que el contenedor del Hero tenga posición relativa */
.hero {
  position: relative;
}

/* --------------------------------------------------------------------------
   5. SECCIÓN MÓDULOS ("¿Qué vas a aprender?")
   -------------------------------------------------------------------------- */
.modules-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  background-color: #fafafa;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: #a8d5b5;
  box-shadow: var(--shadow-md);
}

/* Estado Activo / Pestaña Abierta */
.module-card.active {
  background-color: var(--active-card-bg);
  border-color: var(--active-card-border);
  box-shadow: var(--shadow-active);
}

.module-card.active::before {
  content: '';
  position: absolute;
  top: 50%;                     
  transform: translateY(-50%); 
  left: 0;
  width: 4px;
  height: 80%;                 
  background-color: var(--primary-green);
  border-radius: 0 4px 4px 0;  
}

.module-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.module-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: #cbd5e1;
}

.module-card.active .module-number {
  color: var(--primary-green);
}

.module-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.module-card-description {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-top: 8px;
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.module-card.active .module-card-description {
  display: block;
}

.module-action-hint {
  font-size: 0.79rem;
  font-weight: 300;
  color: #99a1b0;
  margin-top: 14px;
}

.module-card.active .module-action-hint {
  display: none;
}

/* --------------------------------------------------------------------------
   6. SECCIÓN AUDIENCIA ("¿Para quién es este curso?")
   -------------------------------------------------------------------------- */
.audience-section {
  padding: 80px 0;
  background: var(--primary-gradient);
  color: var(--text-light);
  position: relative;
}

.audience-section .section-badge {
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--text-light);
}

.audience-section .section-title {
  color: #ffffff;
}

.audience-section .section-subtitle {
  color: #baf7cf;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.audience-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.audience-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.audience-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-title {
  font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   7. SECCIÓN REGISTRO Y FORMULARIO
   -------------------------------------------------------------------------- */
.registration-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-dark);
}

.benefit-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
}

.form-card {
  background-color: #f7faf7;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #2a4a30;
  text-align: center;
  margin-bottom: 24px;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px rgba(35, 93, 61, 0.15);
}

.hp-wrapper {
    opacity: 0;
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: -1;
    pointer-events: none;
}

/* Estilos de Radio Buttons para ¿Cuál es tu principal reto actualmente? */
.radio-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background-color: #ffffff;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.radio-option:hover {
  border-color: var(--primary-green);
  background-color: #f8faf8;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--primary-green);
  background-color: #ffffff;
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-green);
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-green);
  background-color: #f3f8f4;
}

.radio-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background-color: var(--primary-green);
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  margin-top: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-button);
}

.btn-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.form-privacy-note {
  font-size: 0.82rem;
  font-weight: 320;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.input-error {
  border-color: #e53935 !important;
}

.error-message {
  display: block;
  color: #e53935;
  font-size: 0.85rem;
  margin-top: 4px;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

/* Footer Claro Horizontal Idéntico al Mockup */
.site-footer {
  background-color: #f7faf8;
  color: #64748b;
  padding: 36px 0;
  border-top: 1px solid #e1e9e3;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.footer-copy {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 300;
  text-align: center;
}

.footer-link {
  font-size: 0.92rem;
  color: #4b8253;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-green);
}

.footer-legal {
  text-align: center;
  margin-top: 6px; 
}

.footer-legal-link {
  color:#4b8253; 
  font-size: 0.9rem; 
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast, 0.5s ease);
}

.footer-legal-link:hover {
  color: #4b8253; 
  text-decoration: underline;
}

/* ==========================================
   ESTILOS DEL MODAL DE ÉXITO
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px); /* Le da un toque premium desenfocando el fondo */
}

/* Clase para ocultar el modal */
.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(-20px); 
}

.modal-icon { 
  font-size: 55px; 
  margin-bottom: 15px; 
}

.modal-title { 
  color: #4d8553; 
  margin: 0 0 10px; 
  font-size: 26px; 
  font-weight: bold;
}

.modal-message { 
  color: #555; 
  margin-bottom: 25px; 
  font-size: 16px; 
  line-height: 1.6; 
}

.modal-btn {
  background: #4d8553; 
  color: #fff; 
  border: none; 
  padding: 12px 30px;
  border-radius: 8px; 
  font-size: 16px; 
  font-weight: bold;
  cursor: pointer; 
  transition: background 0.3s, transform 0.2s;
  width: 100%;
}

.modal-btn:hover { 
  background: #1e3f27; 
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. ANIMACIONES Y MODAL
   -------------------------------------------------------------------------- */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.video-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------------------------------
   9. ADAPTABILIDAD RESPONSIVA (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {

  .hero-grid,
  .registration-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modules-grid,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {

  .modules-grid,
  .audience-grid,
  .form-row-2col {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .form-card {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; 
    justify-content: center;
    text-align: center;
    gap: 16px; 
  }

  .footer-copy {
    max-width: 320px; 
    margin: 0 auto;
    line-height: 1.4;
  }

  .footer-link,
  .footer-legal-link {
    white-space: nowrap; 
    display: inline-block;
  }
}

@media (max-width: 768px) {
  
  .header-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 15px; 
    padding: 10px 20px; 
  }


  .site-header img { 
    max-width: 180px; 
    height: auto;
  }

  
  .site-header .btn { 
    font-size: 0.85rem; 
    padding: 8px 16px;
    white-space: nowrap; /
  }
  
}

@media (max-width: 768px) {
  .feature-pill {
    padding: 8px 20px; 
  }

  .pill-item {
    flex-basis: 45%; 
    justify-content: flex-start; 
  }
}


.btn-submit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}


.btn-submit.btn-loading {
  opacity: 0.85;
  cursor: not-allowed !important;
  pointer-events: none; 
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3); 
  border-radius: 50%;
  border-top-color: #ffffff; 
  animation: spin 0.8s linear infinite; 
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}