/* 1. GLOBALES Y VARIABLES MEJORADAS */
:root {
  --brand-dark:#0A0A0A;
  --brand-accent:#10E8E0;
  --brand-accent-hover:#0CD8D3;
  --brand-light:#FFFFFF;
  --brand-secondary:#C7C9D1;
  --brand-surface:#111111;
  --brand-surface-light:#181818;
  --brand-border:rgba(255,255,255,0.08);
  --brand-success: #10B981;
  --brand-gradient: linear-gradient(135deg, #10E8E0 0%, #0CD8D3 50%, #0AC8C3 100%);
  --brand-gradient-light: linear-gradient(135deg, rgba(16,232,224,0.15) 0%, rgba(12,216,211,0.1) 100%);
  --brand-gradient-dark: linear-gradient(135deg, rgba(16,232,224,0.08) 0%, rgba(12,216,211,0.05) 100%);
  --brand-gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  --brand-shadow: 0 8px 30px rgba(0,0,0,0.25);
  --brand-shadow-hover: 0 14px 40px rgba(0,0,0,0.35);
  --brand-shadow-accent: 0 10px 30px rgba(16,232,224,0.25);
  --brand-shadow-accent-hover: 0 12px 35px rgba(16,232,224,0.3);
}

*{box-sizing:border-box}
html{scroll-behavior: smooth;}
body{
  margin:0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% -10%, rgba(16,232,224,0.08), transparent 40%),
              radial-gradient(800px 600px at 110% 20%, rgba(16,232,224,0.06), transparent 45%),
              var(--brand-dark);
  color:var(--brand-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container{max-width:1100px;margin:0 auto;padding:0 1.5rem}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; } 
h2 { font-size: 2rem; margin-bottom: 1rem; } 
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; } 
p { line-height: 1.6; }
.subtitle{color:var(--brand-secondary);margin:0.5rem 0 2rem 0; font-size: 1.1rem; max-width: 600px;}
.center{text-align:center; margin-left: auto; margin-right: auto;}

/* Tarjetas mejoradas con gradientes y efectos */
.card{
  background: var(--brand-gradient-card);
  border:1px solid var(--brand-border);
  border-radius:16px;
  padding:1.5rem; 
  backdrop-filter: blur(6px);
  box-shadow: var(--brand-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover::before {
  opacity: 1;
}

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

/* Badge mejorado */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--brand-border);
  background:var(--brand-surface);
  transition: all 0.3s ease;
}
.badge-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--brand-accent);
  box-shadow:0 0 10px var(--brand-accent);
  animation: pulse-dot 2s infinite;
}

/* Botones mejorados con gradientes */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content: center;
  gap:10px;
  padding:12px 20px;
  border-radius:12px;
  background: var(--brand-gradient);
  color:#0A0A0A;
  text-decoration:none;
  font-weight:700;
  border:none;
  cursor:pointer;
  box-shadow: var(--brand-shadow-accent);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  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.5s;
}
.btn:hover::after {
  left: 100%;
}
.btn:hover{
  background: var(--brand-gradient);
  transform: translateY(-2px); 
  box-shadow: var(--brand-shadow-accent-hover);
}
.btn--ghost{
  background:transparent;
  color:var(--brand-light);
  border:1px solid var(--brand-border);
  position: relative;
  overflow: hidden;
}
.btn--ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn--ghost:hover::before {
  opacity: 1;
}
.btn--ghost:hover{
  border-color:var(--brand-accent);
  color:var(--brand-accent);
  background: rgba(16, 232, 224, 0.05);
}
.btn--small{padding:10px 14px;border-radius:10px;font-size:14px}

/* 2. NAVEGACIÓN MEJORADA */
.nav{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(10,10,10,.7);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--brand-border);
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nav__inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 1.5rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px; 
  text-decoration: none;
  transition: transform 0.3s ease;
}
.brand:hover {
  transform: scale(1.05);
}
.brand__img{
  width:36px;
  height:36px;
  border-radius:10px;
  object-fit:cover;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  border:1px solid var(--brand-border);
  transition: all 0.3s ease;
}
.brand:hover .brand__img {
  box-shadow: 0 6px 18px rgba(16,232,224,0.3);
}
.brand__name{
  font-weight:800;
  letter-spacing:.6px; 
  color: var(--brand-light);
  background: linear-gradient(90deg, var(--brand-light), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: brand-name-shimmer 5s linear infinite;
}
.menu{
  display:flex;
  align-items:center;
  gap:1.5rem
}
.menu a{
  color:var(--brand-light);
  text-decoration:none;
  opacity:.9; 
  font-weight: 600; 
  font-size: 0.9rem;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}
.menu a:hover::after {
  width: 100%;
}
.menu a:hover{
  opacity:1; 
  color: var(--brand-accent);
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem; /* opcional: ajusta tamaño */
  text-align: center;
  margin-bottom: 0.5rem; /* opcional: espacio con el título */
}


/* 3. HERO MEJORADO */
.hero2{
  padding:4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero2::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16,232,224,0.05) 0%, transparent 70%);
  animation: hero-glow 15s ease-in-out infinite;
  pointer-events: none;
}
.hero2__inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2rem;
  align-items:center;
  position: relative;
  z-index: 1;
}
.hero2__text h1{
  font-size: 2.75rem; 
  line-height:1.1; 
  margin:0 0 1rem 0; 
  font-weight: 800;
}
.hero2__text p{
  color:var(--brand-secondary);
  margin:0 0 2rem 0; 
  font-size: 1.1rem; 
  max-width: 500px;
}
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.stats{
  display:flex;
  gap:1rem;
  margin-top:2.5rem; 
  flex-wrap: wrap;
}
.stat{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 14px;
  border:1px solid var(--brand-border);
  border-radius:12px;
  background:var(--brand-surface); 
  text-align: center; 
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat:hover::before {
  opacity: 1;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-hover);
  border-color: rgba(16, 232, 224, 0.3);
}
.stat strong{
  font-size:1.25rem; 
  color: var(--brand-light);
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}
.stat:hover strong {
  color: var(--brand-accent);
}
.stat span { 
  font-size: 0.8rem; 
  color: var(--brand-secondary); 
  font-weight: 600; 
  position: relative;
  z-index: 1;
}

.hero2__card{
  position:relative;
}
.glow{
  position:absolute;
  inset:-30px;
  background:radial-gradient(500px 260px at 70% 10%, rgba(16,232,224,0.18), transparent 60%);
  filter:blur(16px);
  pointer-events:none;
  animation: hero-card-glow 8s ease-in-out infinite;
}
.phone{
  position:relative;
  width:320px;
  max-width:90vw;
  margin:0 auto;
  border-radius:28px;
  background:linear-gradient(180deg,#1b1b1b,#101010);
  border:1px solid var(--brand-border);
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  overflow:hidden;
  animation: floaty 6s ease-in-out infinite;
  transition: all 0.3s ease;
}
.phone:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.phone__bar{
  height:24px;
  background:linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-bottom:1px solid var(--brand-border);
}
.phone__screen{
  padding:1.25rem;
}
.checklist{
  list-style:none;
  margin:1rem 0 0 0;
  padding:0; 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem;
}
.checklist li{
  display:flex; 
  align-items:center; 
  gap: 10px; 
  font-weight: 600; 
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideIn 0.5s ease-out forwards;
}
.checklist li span { 
  color: var(--brand-accent); 
  font-size: 1.1rem; 
}
.checklist li:nth-child(1) { animation-delay: 0.5s; }
.checklist li:nth-child(2) { animation-delay: 0.7s; }
.checklist li:nth-child(3) { animation-delay: 0.9s; }
.checklist li:nth-child(4) { animation-delay: 1.1s; }
.muted{color:var(--brand-secondary); font-size: 0.9rem;}

/* 4. PROMO BANNER MEJORADO */
.promo{padding:1rem 1.5rem 0}
.promo__card{
  position:relative;
  border:1px solid var(--brand-border);
  border-radius:18px;
  overflow:hidden;
  background: var(--brand-gradient-light);
}
.promo__glow{
  position:absolute;
  inset:-50px;
  background:radial-gradient(600px 240px at 20% 0%, rgba(16,232,224,0.22), transparent 60%);
  filter:blur(18px);
  pointer-events:none;
  animation: promoGlow 8s ease-in-out infinite;
}
.promo__content{
  position:relative;
  padding:2rem 1.5rem;
}
.promo__eyebrow{
  display:inline-block;
  color:var(--brand-accent);
  font-weight:700;
  margin-bottom:6px;
  letter-spacing:.6px;
  animation: eyebrow-pulse 2s infinite;
}
.promo__title{
  margin:0;
  font-size:1.75rem;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: promo-title-shimmer 5s linear infinite;
}
.promo__text{
  margin:8px 0 0 0;
  color:var(--brand-secondary); 
  max-width: 600px;
}

/* 5. SECCIONES (FEATURES) MEJORADAS */
.section{
  padding:5rem 1.5rem;
  position: relative;
} 
.section.alt{
  background: var(--brand-gradient-dark);
}
.features .feature{
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  display: flex; 
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.features .feature::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.features .feature:hover::after {
  transform: scaleX(1);
}
.features .feature:hover{
  transform:translateY(-6px); 
  box-shadow: var(--brand-shadow-hover);
}

/* Iconos mejorados con animaciones */
.features .icon{
  font-size:2rem;
  margin-bottom:1rem; 
  display: inline-block;
  color: var(--brand-light);
  transition: all 0.4s ease;
  animation: iconBreath 5s ease-in-out infinite;
  position: relative;
}
.features .icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--brand-gradient-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}
.features .feature:hover .icon::before {
  width: 60px;
  height: 60px;
}
.features .feature:hover .icon {
  color: var(--brand-accent); 
  transform: scale(1.1);
  animation-play-state: paused;
}
.features h3 { 
  font-size: 1.1rem; 
  transition: color 0.3s ease;
}
.features .feature:hover h3 {
  color: var(--brand-accent);
}
.features p { 
  font-size: 0.9rem; 
  color: var(--brand-secondary); 
  margin-top: 0.5rem;
}

/* Feature destacado mejorado */
.feature--highlight {
  border-color: rgba(16, 232, 224, 0.4);
  box-shadow: 0 10px 40px rgba(16, 232, 224, 0.1), 0 0 20px rgba(16, 232, 224, 0.1);
  position: relative;
}
.feature--highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient-light);
  opacity: 0.1;
  z-index: -1;
}
.feature--highlight .icon {
  color: var(--brand-accent);
  animation: iconHighlight 3s ease-in-out infinite;
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center
}
.col .bullets{
  margin:1.5rem 0 2rem 0; 
  padding-left: 1.25rem;
}
.col .bullets li{
  margin:1rem 0;
  color:var(--brand-secondary); 
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}
.col .bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.showcase{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem
}
.statbox{
  background:var(--brand-surface);
  border:1px solid var(--brand-border);
  border-radius:14px;
  padding:1.5rem;
  text-align:center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.statbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.statbox:hover::before {
  opacity: 1;
}
.statbox:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-hover);
  border-color: rgba(16, 232, 224, 0.3);
}
.kpi{
  font-weight:800;
  font-size:2rem; 
  color: var(--brand-accent);
  display: inline-block;
  position: relative;
  z-index: 1;
}
.kpi-label{
  color:var(--brand-secondary);
  font-size:0.875rem; 
  margin-top: 0.25rem; 
  display: block;
  position: relative;
  z-index: 1;
}

/* 6. FOOTER MEJORADO */
.footer2 {
  background: var(--brand-gradient-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4rem;
  padding: 4rem 0 2rem 0;
  position: relative;
}
.footer2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,232,224,0.3), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-section h4 {
  color: var(--brand-light);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}
.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}
.footer-description {
  color: var(--brand-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.certifications {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--brand-gradient-light);
  border: 1px solid rgba(16,232,224,0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-accent);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(16,232,224,0.1);
  position: relative;
  overflow: hidden;
}
.cert-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.cert-badge:hover::before {
  left: 100%;
}
.cert-badge:hover {
  background: var(--brand-gradient-light);
  border-color: rgba(16,232,224,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,232,224,0.2);
}
.cert-icon { 
  font-size: 1.25rem; 
  color: var(--brand-accent); 
}
.footer-links { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.footer-links li { 
  margin-bottom: 0.75rem; 
}
.footer-links a {
  color: var(--brand-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 400;
  cursor: pointer;
  position: relative;
}
.footer-links a::before {
  content: '→';
  position: absolute;
  left: -1rem;
  opacity: 0;
  transition: all 0.3s ease;
}
.footer-links a:hover::before {
  opacity: 1;
  left: -0.5rem;
}
.footer-links a:hover {
  color: var(--brand-accent);
  transform: translateX(3px);
}
.social-links { 
  display: flex; 
  gap: 1rem; 
  margin-bottom: 1.5rem; 
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-gradient-light);
  border: 2px solid rgba(16,232,224,0.2);
  border-radius: 12px;
  color: var(--brand-accent);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(16,232,224,0.1);
  position: relative;
  overflow: hidden;
}
.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.social-link:hover::before {
  opacity: 1;
}
.social-link:hover {
  color: var(--brand-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(16,232,224,0.3);
}
.social-link svg { 
  width: 20px; 
  height: 20px; 
  position: relative;
  z-index: 1;
}
.contact-info p { 
  margin: 0.5rem 0; 
  font-size: 0.875rem; 
  color: var(--brand-secondary); 
  line-height: 1.5; 
}
.contact-info strong { 
  color: var(--brand-light); 
  font-weight: 600; 
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  margin-top: 3rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--brand-secondary);
  line-height: 1.6;
  font-weight: 400;
}
.copyright p:first-child { 
  font-weight: 600; 
  color: var(--brand-light); 
}
.footer-badges { 
  display: flex; 
  gap: 0.75rem; 
  flex-wrap: wrap; 
}
.badge-legal {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
  color: var(--brand-success);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.1);
  transition: all 0.3s ease;
}
.badge-legal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16,185,129,0.3);
}

/* 7. ANIMACIONES MEJORADAS */
@keyframes floaty{0%{transform:translateY(0)}50%{transform:translateY(-6px)}100%{transform:translateY(0)}}
.badge-anim{animation: glow 4s ease-in-out infinite}
.pulse{animation: pulse 2.4s ease-in-out infinite}
.lift{transition:transform .25s ease, box-shadow .25s ease}
.lift:hover{transform:translateY(-6px); box-shadow:0 14px 40px rgba(0,0,0,.35)}
@keyframes glow{0%{box-shadow:0 0 0 rgba(16,232,224,0)}50%{box-shadow:0 0 20px rgba(16,232,224,0.25)}100%{box-shadow:0 0 0 rgba(16,232,224,0)}}
@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.04)}100%{transform:scale(1)}}

/* Nuevas animaciones mejoradas */
@keyframes pulse-cta {
  0% { transform: scale(1); box-shadow:0 10px 30px rgba(16,232,224,0.25); }
  50% { transform: scale(1.03); box-shadow:0 14px 40px rgba(16,232,224,0.4); }
  100% { transform: scale(1); box-shadow:0 10px 30px rgba(16,232,224,0.25); }
}

@keyframes iconBreath {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes iconHighlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes promoGlow {
  0% { transform: translateX(-30%) scale(1); }
  50% { transform: translateX(30%) scale(1.1); }
  100% { transform: translateX(-30%) scale(1); }
}

@keyframes sparkle {
  from { background-position: 200% center; }
  to { background-position: 0% center; }
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hero-card-glow {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

@keyframes brand-name-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

@keyframes promo-title-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

@keyframes eyebrow-pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16,232,224,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16,232,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,232,224,0); }
}

/* Animación de scroll (Fade-in-up) mejorada */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.grid.is-visible .feature:nth-child(1) { transition-delay: 0.1s; }
.grid.is-visible .feature:nth-child(2) { transition-delay: 0.2s; }
.grid.is-visible .feature:nth-child(3) { transition-delay: 0.3s; }
.grid.is-visible .feature:nth-child(4) { transition-delay: 0.4s; }
.grid.is-visible .feature:nth-child(5) { transition-delay: 0.5s; }
.grid.is-visible .feature:nth-child(6) { transition-delay: 0.6s; }

/* Animación de borde para CTA final mejorada */
.card--cta-final {
  position: relative;
  border-color: transparent;
  background: linear-gradient(var(--brand-dark), var(--brand-dark)) padding-box,
              var(--brand-gradient) border-box;
  background-size: 300% 100%;
  animation: gradient-border 6s linear infinite;
}
@keyframes gradient-border {
  from { background-position: 300% center; }
  to { background-position: 0% center; }
}

/* 8. CSS PARA MODALES MEJORADO CON ANIMACIONES AVANZADAS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              visibility 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  background: var(--brand-surface-light);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1002;
}

.modal-container.active,
.modal-overlay.active .modal-container {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--brand-surface-light);
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  margin: 0;
  color: var(--brand-light);
  font-size: 1.5rem;
}

.modal-close {
  font-size: 1.5rem;
  color: var(--brand-secondary);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--brand-accent);
  background: rgba(16,232,224,0.1);
}

.modal-content {
  padding: 2rem;
}

/* Nuevo modal para selección de rol */
.role-selector-modal .modal-content {
  text-align: center;
  padding: 2.5rem 2rem;
}

.role-selector-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: rgba(16,232,224,0.1);
  border: 2px solid rgba(16,232,224,0.3);
  animation: pulse-icon 2.4s ease-in-out infinite;
}

.role-selector-subtitle {
  color: var(--brand-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.role-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.role-card {
  background: rgba(17,17,17,0.85);
  border: 1px solid rgba(16,232,224,0.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  transform: translateY(15px);
  opacity: 0;
  animation: card-enter 0.6s ease forwards;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-card:nth-child(2) {
  animation-delay: 0.1s;
}

.role-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,232,224,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.role-card:hover::after {
  opacity: 1;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(16,232,224,0.2);
  border-color: rgba(16,232,224,0.3);
}

.role-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: var(--brand-accent);
}

.role-card-description {
  color: var(--brand-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.role-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  color: var(--brand-secondary);
  font-size: 0.85rem;
  display: grid;
  gap: 0.35rem;
}

.role-card-list li::before {
  content: '•';
  color: var(--brand-accent);
  margin-right: 0.35rem;
}

/* Modal de formulario de registro */
.registration-modal .modal-content {
  padding: 1.5rem;
}

.registration-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.registration-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-border);
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 2px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-dark);
}

.step.completed .step-number {
  background: var(--brand-success);
  border-color: var(--brand-success);
  color: var(--brand-dark);
}

.step-label {
  font-size: 0.8rem;
  color: var(--brand-secondary);
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: var(--brand-accent);
}

.step.completed .step-label {
  color: var(--brand-success);
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-light);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  color: var(--brand-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(16,232,224,0.2);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brand-border);
}

/* Estilos para inputs de verificación OTP */
.verification-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.verification-inputs .form-control {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Estilos para preguntas del examen */
.exam-questions {
  margin: 1.5rem 0;
}

.exam-question {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.exam-question p {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exam-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.exam-options label:hover {
  background: rgba(255,255,255,0.05);
}

.exam-options input[type="radio"] {
  accent-color: var(--brand-accent);
}

/* Estilos para enlaces de políticas */
.policy-links a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.policy-links a:hover {
  color: var(--brand-accent-hover);
  text-decoration: underline;
}

/* Checkbox personalizado */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-check-input {
  margin-top: 0.25rem;
  accent-color: var(--brand-accent);
}

.form-check-label {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Animaciones para modales */
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

@keyframes card-enter {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  60% { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 9. RESPONSIVE MEJORADO */
@media (max-width: 960px){
  .hero2__inner{grid-template-columns:1fr;gap:3rem; text-align: center;}
  .hero2__text p { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .stats { justify-content: center; }
  .menu{display:none} 
  .two{grid-template-columns:1fr; gap: 3rem;}
  .col.showcase { order: -1; } 
  .role-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 90vh;
  }
  .modal-header {
    padding: 1rem 1.5rem;
  }
  .modal-content {
    padding: 1.5rem;
  }
  .registration-steps {
    flex-direction: column;
    gap: 1rem;
  }
  .registration-steps::before {
    display: none;
  }
  .step {
    flex-direction: row;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-badges { justify-content: center; }
  .social-links { justify-content: center; }
  .footer2 { padding: 3rem 1.5rem 2rem 1.5rem; }
}
@media (max-width: 640px){
  .container{padding:0 1rem}
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 4rem 1rem; }
  .stats{gap:10px}
  .stat{padding:8px 10px}
  .showcase{grid-template-columns:1fr}
  .promo__title{font-size:1.5rem}
  .role-card {
    padding: 1.5rem;
  }
  .verification-inputs {
    gap: 0.25rem;
  }
  .verification-inputs .form-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}


