/* ===================================
    * Configuración de variables CSS
   =================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* *Paleta de colores */
  --primary-color: #447D95;
  --primary-dark: #357a8f;
  --secondary-color: #6c757d;
  
  /* *Colores de fondo */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #343a40;

  /* *Colores de texto */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-light: #ffffff;
  
  /* *Tipografía */
  --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 32px;
  --font-size-hero: clamp(32px, 5vw, 56px);
  
  /* *Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --spacing-section: 4.5rem;

  /* *Contenedores */
  --container-max-width: 1200px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  
  /* *Bordes y sombras */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  /* *Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
    *Estilos base del sitio
   =================================== */

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: hidden; 
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ===================================
     *Contenedores
   =================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.container-hero {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.temporary-message {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================
   *Botones generales
   =================================== */

.btn-contact-nav,
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #457D95;
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  text-decoration: none;
  text-align: center;
}

.btn-contact-nav:hover,
.btn-contact:hover,
.btn-contact-nav:focus,
.btn-contact:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid gray;
  border-radius: 10px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-register:hover,
.btn-register:focus {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-cta {
  width: 135px;
  height: 72px;
  background-color: #437C94;
  color: white;
  border: none;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--font-size-base);
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--secondary-color);
  box-shadow: var(--box-shadow);
  transform: translateY(-2px);
}

/* ===================================
   *Header y navbar
   =================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid #e9ecef;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Checkbox oculto para el menú hamburguesa */
.nav-toggle {
  width: 40px;
  height: 40px;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1002;
  cursor: pointer;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación del icono hamburguesa cuando el menú está abierto */
.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.custom-nav {
  padding: 10px var(--container-padding);
}

.custom-nav .container {
  padding: 0;
  max-width: none;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.nav-logo {
  flex-shrink: 0;
  margin-right: auto;
}

.logo-container {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 27px;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 27px;
  align-items: center;
  margin: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  padding: var(--spacing-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.btn-contact-nav {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 16px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-contact-nav:hover,
.btn-contact-nav:focus {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

/* ===================================
   *Secciones principales
   =================================== */

main {
  min-height: calc(100vh - 80px);
  margin: 0;
  padding: 0;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  color: #352E2E;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

.services-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  color: #352E2E;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

/* ===================================
   * Sección del Hero
   =================================== */

.hero-section {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: 10vh;
  display: flex;
  align-items: center;

}

.container-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.container-title {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.title-hero {
  font-size: var(--font-size-hero);
  font-weight: 600;
  line-height: 1.2;
  color: #352E2E;
  font-family: 'Poppins', sans-serif;
}

.subtitle-hero {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.button-container {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.container-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: 90vh;
  object-fit: contain;
}

/* ===================================
   *Sección de Servicios
   =================================== */

.services-section {
  padding: var(--spacing-section) 0;
  background-color: var(--bg-primary);
}



.container-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.service-item {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: transparent;
  border: none;
  transition: transform var(--transition-normal);
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 89px;
  height: 88px;
  background-color: #437C94;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.service-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service-name {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin-top: var(--spacing-md);
}

/* ===================================
   *Sección de funciones
   =================================== */

.features-section {
  padding: var(--spacing-section) 0;
  position: relative;
  overflow: hidden;
}


.features-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-15px) rotate(180deg); 
    opacity: 0.8;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 var(--spacing-md);
}

.feature-card {
  background: #FFFFFF;
  border: 2px solid rgba(170, 166, 163, 0.2);
  border-radius: 20px;
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 380px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  justify-self: center;
  box-shadow: 0 8px 30px rgba(170, 166, 163, 0.15);
}


.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(68, 125, 149, 0.05), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}


.feature-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #437C94 0%, #AAA6A3 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: bottom;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover::after {
  transform: scaleY(1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(68, 125, 149, 0.25);
  border-color: rgba(68, 125, 149, 0.3);
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #437C94 0%, #357a8f 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 25px rgba(67, 124, 148, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.feature-card:hover .feature-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 12px 35px rgba(67, 124, 148, 0.4);
}

.feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1);
}

.feature-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  font-family: 'Poppins', sans-serif;
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: #437C94;
}

.feature-text {
  font-size: 14px;
  font-weight: 400;
  color: #6c757d;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-text {
  color: #495057;
}

/* Feature Card Link */
.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.feature-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   *Sección de pasos de como funciona
   =================================== */

.steps-section {
  padding: var(--spacing-section) 0;
  background-color: var(--bg-primary);
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: var(--spacing-lg);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: #437C94;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(67, 124, 148, 0.2);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.step-item:hover .step-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 124, 148, 0.25);
}

.step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.step-name {
  font-size: 18px;
  font-weight: 600;
  color: #352E2E;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 60px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-connector::after {
  content: '';
  width: 60px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 20" fill="none"><path d="M2 10H52M52 10L46 4M52 10L46 16" stroke="%23437C94" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Ocultar el último conector */
.step-item:last-child .step-connector {
  display: none;
}

/* ===================================
   *Sección de socios
   =================================== */

.partners-section {
  padding: var(--spacing-section) 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xl);
  align-items: center;
  justify-items: center;
}

.partner-logo {
  max-width: 120px;
  height: 60px;
  object-fit: contain;
  transition: filter var(--transition-normal);
}

.partner-logo:hover {
  filter: grayscale(0%);
}

/* ===================================
   *Sección de llamada a la acción (CTA)
   =================================== */

.cta-section {
  padding: var(--spacing-section) 0;
  background: linear-gradient(135deg, #447D95 0%, #357a8f 50%, #2c6b7e 100%);
  position: relative;
  overflow: hidden;
}


.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section .section-title {
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: var(--spacing-xxl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
  flex-wrap: wrap;
}

.btn-cta {
  position: relative;
  width: 160px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(68, 125, 149, 0.3);
  overflow: hidden;
  text-decoration: none;
  text-align: center;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(68, 125, 149, 0.4);
}

.btn-cta img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: 0 var(--spacing-md);
}

.cta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(68, 125, 149, 0.1) 0%, rgba(53, 122, 143, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(68, 125, 149, 0.2);
  transition: all 0.3s ease;
}

.cta-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(68, 125, 149, 0.15);
  border-color: var(--primary-color);
}

.cta-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xs);
}

.cta-feature img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cta-feature span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  text-align: center;
}

.cta-subtitle {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  margin-top: var(--spacing-md);
  position: relative;
}

.cta-subtitle::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 1px;
}


.cta-subtitle a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
  text-decoration: none;
}

.cta-subtitle a:hover,
.cta-subtitle a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}


.cta-section .particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.cta-section .particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: particle-float 8s infinite linear;
}

.cta-section .particle:nth-child(1) { left: 10%; animation-delay: 0s; width: 4px; height: 4px; }
.cta-section .particle:nth-child(2) { left: 20%; animation-delay: 2s; width: 6px; height: 6px; }
.cta-section .particle:nth-child(3) { left: 30%; animation-delay: 4s; width: 3px; height: 3px; }
.cta-section .particle:nth-child(4) { left: 50%; animation-delay: 1s; width: 5px; height: 5px; }
.cta-section .particle:nth-child(5) { left: 70%; animation-delay: 3s; width: 4px; height: 4px; }
.cta-section .particle:nth-child(6) { left: 80%; animation-delay: 5s; width: 6px; height: 6px; }
.cta-section .particle:nth-child(7) { left: 90%; animation-delay: 7s; width: 3px; height: 3px; }

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===================================
   *Footer 
   =================================== */

.main-footer {
  position: relative;
  margin-top: 0;
}

.footer-main {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  position: relative;
  border-top: 1px solid rgba(67, 124, 148, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-tagline {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(67, 124, 148, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
  transition: all var(--transition-fast);
  border: 1px solid rgba(67, 124, 148, 0.2);
}

.social-link:hover,
.social-link:focus {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 124, 148, 0.3);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  position: relative;
  padding-left: 0;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--primary-color);
  padding-left: 20px;
}

.footer-link:hover::before,
.footer-link:focus::before {
  width: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-link,
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.contact-link:hover,
.contact-link:focus {
  color: var(--primary-color);
}

.contact-link svg,
.contact-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-bottom {
  background: rgba(67, 124, 148, 0.05);
  padding: var(--spacing-lg) 0;
}

.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.5;
}



/* ===================================
   * Media Queries para el responsive
   =================================== */

/* *Tablets */
@media (max-width: 768px) {
  .nav-list {
    gap: var(--spacing-md);
  }
  
  .nav-link {
    font-size: var(--font-size-sm);
  }
  
  .container-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
  }
  
  .container-title {
    order: 1;
  }
  
  .container-hero-image {
    order: 2;
    height: 60vh;
  }
  
  .button-container {
    justify-content: center;
  }
  
  .steps-container {
    flex-direction: row;
    gap: var(--spacing-lg);
    max-width: 100%;
    align-items: center;
    justify-content: center;
  }
  
  .step-item {
    max-width: 120px;
    min-width: 80px;
    padding: var(--spacing-sm);
    position: relative;
    flex: 0 1 auto;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
  }
  
  .step-icon img {
    width: 30px;
    height: 30px;
  }
  
  .step-name {
    font-size: 14px;
    font-weight: 600;
  }
  
  .step-connector {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    width: 30px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  
  .step-connector::after {
    content: '';
    width: 30px;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 15" fill="none"><path d="M1 7.5H25M25 7.5L20 2.5M25 7.5L20 12.5" stroke="%23437C94" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  

  .step-item:last-child .step-connector {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    gap: var(--spacing-lg);
  }
  
  .feature-card {
    width: 100%;
    max-width: 350px;
    padding: var(--spacing-lg);
    min-height: 120px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon img {
    width: 24px;
    height: 24px;
  }
  
  .footer-legal {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
}


@media (max-width: 780px) {
  :root {
    --spacing-section: 3rem;
  }
  .steps-container {
    max-width: 100%;
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 0 var(--spacing-sm);
  }
  
  .step-item {
    max-width: 100px;
    min-width: 70px;
    padding: var(--spacing-xs);
  }
  
  .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: var(--spacing-xs);
  }
  
  .step-icon img {
    width: 25px;
    height: 25px;
  }
  
  .step-name {
    font-size: 12px;
    font-weight: 600;
  }
  
  .step-connector {
    right: -20px;
    width: 24px;
    height: 12px;
  }
  
  .step-connector::after {
    width: 24px;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 12" fill="none"><path d="M1 6H20M20 6L16 2M20 6L16 10" stroke="%23437C94" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  }
  
  .nav-toggle-label {
    display: flex;
  }
  
  .nav-right {
    position: relative;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -150%);
    width: 90%;
    max-width: 400px;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
  }
  
  /* Cuando el checkbox está marcado, mostrar el menú centrado */
  .nav-toggle:checked ~ .nav-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }


  .nav-toggle:checked ~ .nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    animation: fadeIn 0.3s ease;
    border-radius: 0;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    font-size: 16px;
    padding: var(--spacing-sm) var(--spacing-md);
    display: block;
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(67, 124, 148, 0.1);
  }
  
  .btn-contact-nav {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  :root {
    --container-padding: 1rem;
  }
  
  .custom-nav {
    padding: 10px 1rem;
  }
  
  .nav-menu {
    width: 280px;
  }
  
  .nav-content {
    justify-content: space-between;
  }
  
  .hero-section {
    padding: var(--spacing-lg) 0;
    min-height: 15vh;
  }
  
  .button-container {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-contact,
  .btn-register,
  .btn-cta {
    width: 100%;
    max-width: 300px;
  }
  
  .container-services {
    grid-template-columns: 1fr;
  }
  

  .features-section::before,
  .features-section::after {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: var(--spacing-lg);
    padding: 0;
  }
  
  .feature-card {
    width: 100%;
    max-width: 100%;
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-lg);
    min-height: 100px;
    flex-direction: row;
    gap: var(--spacing-md);
  }
  
  .feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  
  .feature-icon img {
    width: 22px;
    height: 22px;
  }
  
  .feature-title {
    font-size: 16px;
  }
  
  .feature-text {
    font-size: 13px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .cta-content-wrapper {
    padding: var(--spacing-xl);
    margin: 0 var(--spacing-sm);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .btn-cta {
    width: 100%;
    max-width: 280px;
  }
  
  .cta-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .cta-section::before,
  .cta-section::after {
    display: none;
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer-tagline {
    text-align: center;
    max-width: 400px;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-tagline {
    max-width: none;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-link,
  .contact-item {
    justify-content: center;
  }
}

/* ===================================
   * Rendimiento y accesibilidad
   =================================== */

img {
  width: auto;
  height: auto;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-image,
  .hero-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-crisp-edges;
    -webkit-image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }
}

.btn-contact:focus-visible,
.btn-register:focus-visible,
.btn-cta:focus-visible,
.btn-contact-nav:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible,
.legal-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}