:root {
  /* Premium Tech Color Palette */
  --bg-color: #FAFCFF; /* Ligerísimamente azulado, casi blanco */
  --section-alt: #F1F5F9; /* Gris azulado muy claro */
  
  --navy-dark: #0A192F; /* Azul marino intenso (Fondo Hero/Footer) */
  --navy-medium: #112240; /* Segundo azul marino (Tarjetas en oscuros) */
  --navy-light: #233554;
  
  --blue-medium: #1E40AF; /* Azul corporativo */
  --blue-hover: #1D4ED8;
  
  --cyan: #06B6D4; /* Turquesa tecnológico */
  --cyan-bright: #22D3EE;
  --cyan-glow: rgba(6, 182, 212, 0.15);

  --text-main: #0F172A; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --text-light: #F8FAFC;
  --text-muted-light: #94A3B8;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout & Design Tokens */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Premium Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(10, 25, 47, 0.12);
  --shadow-cyan: 0 0 30px rgba(6, 182, 212, 0.2);

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .badge, .logo {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: white;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--navy-dark);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--navy-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
  padding: 120px 0;
}

.bg-alt { background-color: var(--section-alt); }
.text-center { text-align: center; }

.section-title {
  max-width: 700px;
  margin: 0 auto 60px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Utilities */
.highlight {
  color: var(--cyan);
  position: relative;
  display: inline-block;
}

/* Badge Premium */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-bright);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-sm { padding: 10px 24px; font-size: 0.9375rem; }
.btn-lg { padding: 18px 36px; font-size: 1.125rem; }

.btn-primary {
  background: var(--cyan);
  color: var(--navy-dark);
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
}

.btn-outline:hover {
  background: var(--navy-dark);
  color: white;
}

.btn-block { width: 100%; }

/* --- Componentes --- */

/* Header transparente y glassmorphism */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 25, 47, 0.95); /* Más sólido para que resalte más */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

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

/* Logo elegante */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white; /* Blanco porque el hero es dark y el header scrolled tb */
}

.header:not(.scrolled) .logo {
  color: white; /* Asegurar que se ve en el hero dark */
}

.logo-icon {
  color: var(--cyan);
  width: 32px;
  height: 32px;
}

.nav { display: none; }

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 36px;
    align-items: center;
  }
  .nav a {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
  }
  .nav a:hover {
    color: var(--cyan);
  }
}

/* Hero - Estilo Premium Tecnológico (Dark) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  text-align: center;
  background-color: var(--navy-dark);
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(10, 25, 47, 0) 60%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  opacity: 0.5;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted-light);
  max-width: 800px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 576px) {
  .hero-ctas { flex-direction: row; }
}

/* Qué Hacemos (Intro) */
.about {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Servicios Grid - Premium Cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: white;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(10, 25, 47, 0.03);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  margin-bottom: 32px;
}

.service-icon i {
  width: 32px;
  height: 32px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Timeline / Método */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    max-width: 100%;
  }
  .timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.5), rgba(6, 182, 212, 0.1));
    z-index: 1;
  }
}

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

@media (max-width: 767px) {
  .timeline-item {
    flex-direction: row;
    text-align: left;
    gap: 24px;
  }
}

.timeline-number {
  width: 64px;
  height: 64px;
  background: var(--navy-dark);
  color: var(--cyan);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 0 0 10px var(--bg-color), inset 0 0 20px rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

@media (max-width: 767px) {
  .timeline-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

.timeline-content h3 { font-size: 1.25rem; }
.timeline-content p { color: var(--text-muted); font-size: 1rem; }

/* Split Grid for Benefits and Target */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

@media (min-width: 992px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 1.125rem;
  color: var(--text-main);
}

.checklist .check {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.checklist .arrow {
  color: var(--blue-medium);
  flex-shrink: 0;
  margin-top: 4px;
}

.checklist strong { color: var(--navy-dark); }

/* CTA Banner Premium */
.cta-banner-container {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 100px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(10, 25, 47, 0) 70%);
  border-radius: 50%;
}

.cta-banner-container h2 {
  color: white;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

/* Contacto */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
}

@media (min-width: 992px) {
  .contact-wrapper { grid-template-columns: 1fr 1fr; }
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 48px;
}

.whatsapp-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--cyan);
}

.wa-icon {
  color: var(--cyan);
  width: 40px;
  height: 40px;
}

.wa-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy-dark);
}

.wa-link {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.contact-form-container {
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 25, 47, 0.05);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy-dark);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: #F8FAFC;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
  background: white;
}

/* Footer Premium */
.footer {
  background: var(--navy-dark);
  color: var(--text-muted-light);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .footer-container { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: white;
}

.footer-brand p { max-width: 320px; font-size: 1.0625rem; }

.footer h3 { color: white; font-size: 1.125rem; margin-bottom: 24px; }

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer nav a {
  color: var(--text-muted-light);
  transition: var(--transition);
}

.footer nav a:hover { color: var(--cyan); }

.social-icons { display: flex; gap: 16px; }

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--cyan);
  color: var(--navy-dark);
  transform: translateY(-4px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.legal-links { display: flex; gap: 32px; justify-content: center; }
.legal-links a:hover { color: white; }

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}
