* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

:root {
  /* Paleta Ocean Focus de Alto Impacto */
  --white: #ffffff;
  --text: #082f49;
  --muted: #0369a1;
  --primary: #0066cc;
  --secondary: #0284c7;
  --accent: #00e5ff;
  --border: rgba(0, 102, 204, 0.28);
  --shadow: 0 25px 50px -12px rgba(0, 102, 204, 0.25);
  --shadow-strong: 0 20px 40px rgba(0, 51, 102, 0.2);
  --glass: rgba(255, 255, 255, 0.85);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 10%, rgba(0, 229, 255, 0.15), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(0, 102, 204, 0.18), transparent 35%),
    linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

a {
  text-decoration: none;
  color: inherit;
}

/* LOADER SCREEN */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #082f49;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-box {
  text-align: center;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 229, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loader-box p {
  color: #bae6fd;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* TOPBAR */
.topbar {
  width: 100%;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #003366, #0066cc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-weight: 600;
  color: #0369a1;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: #003366;
  text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-btn {
  border: 2px solid var(--border);
  background: var(--white);
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: 0.25s ease;
}

.lang-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: #f0f9ff;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 16px;
  font-weight: 700;
  transition: 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #003366, #0066cc);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #002244, #004499);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 51, 102, 0.45);
}

.btn-secondary {
  background: var(--white);
  border: 2px solid #0066cc;
  color: #003366;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: #f0fdf4;
  border-color: #003366;
}

.full-width {
  width: 100%;
}

/* HERO SECTION (Diseño de alto contraste y fuerte presencia) */
.hero {
  padding: 90px 7% 80px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #003366;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.25);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
  color: #002244;
  font-weight: 800;
}

.hero-content p {
  color: #0c4a6e;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 640px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: rgba(255, 255, 255, 0.95);
  padding: 22px;
  border-radius: 22px;
  border: 2px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat h3 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 4px;
  font-weight: 800;
}

.stat p {
  color: #0369a1;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  border: 2px solid var(--border);
  border-radius: 36px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #003366, #0066cc, #00e5ff);
}

.hero-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #003366;
  font-weight: 800;
}

.hero-card p {
  color: #0369a1;
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 500;
}

/* FOOTER DE ALTO IMPACTO */
.footer {
  padding: 60px 7% 40px;
  background: transparent;
}

.footer-content {
  background: linear-gradient(135deg, #001e38, #003366);
  color: var(--white);
  border-radius: 36px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  box-shadow: 0 25px 50px rgba(0, 30, 56, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.footer-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.footer-brand h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: #bae6fd;
  font-size: 1.05rem;
  max-width: 380px;
  line-height: 1.6;
}

.footer-links-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-column a {
  display: block;
  color: #bae6fd;
  margin-bottom: 10px;
  transition: all 0.25s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--accent);
  transform: translateX(6px);
}


/* RESPONSIVE MEJORADO PARA DISPOSITIVOS MÓVILES */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 5% 60px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 14px 5%;
    flex-wrap: nowrap; /* Evita que el logo y el botón se rompan en filas feas */
  }

  .logo {
    font-size: 1.6rem;
  }

  .top-actions {
    gap: 8px;
  }

  .lang-btn {
    display: none; /* Oculta el selector de idioma en pantallas muy pequeñas para ganar espacio limpio */
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  .hero {
    padding: 30px 5% 40px;
  }

  .badge {
    font-size: 0.85rem;
    padding: 8px 14px;
    margin-bottom: 16px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat {
    padding: 16px;
  }

  .stat h3 {
    font-size: 1.4rem;
  }

  .hero-card {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-card h3 {
    font-size: 1.4rem;
  }

  .footer {
    padding: 40px 5% 20px;
  }

  .footer-content {
    padding: 24px;
    border-radius: 24px;
    flex-direction: column;
    gap: 30px;
  }

  .footer-links-container {
    flex-direction: column;
    gap: 25px;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .hero-content h1 {
    font-size: 1.9rem;
  }
}