/* =============================================
   NACG Suite — Landing Page (Portal Principal)
   Paleta: Midnight + Plata
   ============================================= */

/* ── OVERRIDE DE PALETA: Midnight + Plata ──
   Sobreescribe global.css solo para el portal.
   Los productos (NEXUS, HELEVAS) tienen sus propios temas.
   ─────────────────────────────────────────── */
:root {
  --c1: #060C18;   /* fondo más oscuro        */
  --c2: #0A1628;   /* fondo superficie        */
  --c3: #0F2040;   /* fondo elevado           */
  --c4: #1A3356;   /* azul medianoche         */
  --c5: #253E66;   /* marca oscura            */
  --c6: #475569;   /* plata oscura            */
  --c7: #94A3B8;   /* plata acento principal  */
  --c8: #CBD5E1;   /* plata suave             */

  --texto:       #E2E8F0;
  --texto-suave: rgba(203, 213, 225, 0.65);
  --texto-muted: rgba(203, 213, 225, 0.38);

  --borde:    rgba(203, 213, 225, 0.12);
  --borde-md: rgba(203, 213, 225, 0.22);
  --borde-lg: rgba(203, 213, 225, 0.38);
}

/* ── Portal — botón primario plateado ── */
.btn-primario {
  background: linear-gradient(135deg, #253E66, #94A3B8);
  box-shadow: 0 4px 20px rgba(37, 62, 102, 0.5);
}
.btn-primario:hover {
  background: linear-gradient(135deg, #2E4F7A, #CBD5E1);
  box-shadow: 0 8px 30px rgba(148, 163, 184, 0.4);
}

/* ── NAVEGACIÓN ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borde);
}

.nav-marca {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--blanco);
  white-space: nowrap;
}

.logo span {
  color: var(--c7);
}

.nav-separador {
  width: 1px;
  height: 28px;
  background: rgba(203, 213, 225, 0.2);
}

.nav-empresa {
  font-size: 15px;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.75);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-empresa strong {
  color: var(--blanco);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--texto-suave);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blanco);
}

.nav-cta {
  background: linear-gradient(135deg, var(--c5), var(--c7)) !important;
  color: var(--blanco) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(148, 163, 184, 0.45) !important;
}

/* Hamburger móvil */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c7);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(6, 12, 24, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borde);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.activo {
  display: flex;
}

.nav-mobile a {
  color: var(--texto-suave);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 8px;
  border-bottom: 1px solid var(--borde);
  transition: color 0.2s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--blanco);
}

.nav-mobile-cta {
  background: linear-gradient(135deg, var(--c5), var(--c7)) !important;
  color: var(--blanco) !important;
  text-align: center;
  border-radius: 50px;
  margin-top: 8px;
  padding: 12px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26, 51, 86, 0.6) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(37, 62, 102, 0.35) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(15, 32, 64, 0.55) 0%, transparent 50%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(203, 213, 225, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(203, 213, 225, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 225, 0.04) 1px, transparent 1px);
  background-size: 160px 160px;
}

.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nodo {
  animation: nodo-pulsar 3s ease-in-out infinite;
}

.nodo-grande {
  animation: nodo-pulsar 2s ease-in-out infinite;
}

@keyframes nodo-pulsar {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: flotar 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(10, 22, 40, 0.9);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(26, 51, 86, 0.5);
  bottom: -100px;
  right: -50px;
  animation-delay: 3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 12, 24, 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-30px); }
}

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 51, 86, 0.4);
  border: 1px solid rgba(203, 213, 225, 0.2);
  color: var(--c8);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-badge::before {
  content: '●';
  color: var(--c7);
  font-size: 8px;
  animation: pulsar 2s ease-in-out infinite;
}

@keyframes pulsar {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-contenido h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--blanco);
  margin-bottom: 24px;
}

.hero-contenido p {
  font-size: 20px;
  color: var(--texto-suave);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-acciones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BANDA DE CONFIANZA ── */
.trust {
  background: rgba(6, 12, 24, 0.5);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  padding: 20px 48px;
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texto-suave);
  font-size: 14px;
  font-weight: 500;
}

.trust-item span.icono {
  font-size: 18px;
}

/* ── APLICATIVOS ── */
.aplicativos {
  padding: 100px 48px;
  position: relative;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 2l28 16v32L30 66 2 50V18L30 2zm0 52l28 16v32L30 118 2 102V70L30 54z' fill='none' stroke='rgba(203,213,225,0.035)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 104px;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.seccion-tag {
  display: inline-block;
  background: rgba(26, 51, 86, 0.35);
  border: 1px solid rgba(203, 213, 225, 0.18);
  color: var(--c7);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.aplicativos h2 {
  font-size: 44px;
  font-weight: 800;
  color: var(--blanco);
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.aplicativos .subtitulo {
  color: var(--texto-suave);
  font-size: 17px;
  margin-bottom: 60px;
  max-width: 560px;
}

.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ── TARJETAS DE APLICATIVOS ── */
.app-card {
  position: relative;
  background: rgba(15, 32, 64, 0.3);
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(6, 12, 24, 0.5),
              0 0 0 1px rgba(203, 213, 225, 0.08);
}

/* ── CABECERA DE MARCA (productos activos) ── */
.app-card-logo-header {
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Textura de puntos sobre la cabecera */
.app-card-logo-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.app-logo-prefix {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.app-logo-nombre {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.app-logo-blanco { color: #FFFFFF; }

.app-logo-linea {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  margin-bottom: 9px;
  position: relative;
  z-index: 1;
}

.app-logo-subtitulo {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0.55;
}

/* ── CABECERA PRÓXIMAMENTE ── */
.app-card-prox-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 22, 40, 0.5);
  border-bottom: 1px solid var(--borde);
}

.app-prox-icono {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--c4), var(--c5));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ── CUERPO DE LA TARJETA ── */
.app-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 8px;
  line-height: 1.3;
}

.app-card-body p {
  color: var(--texto-suave);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c7);
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.2s;
  margin-top: auto;
}

.app-card:hover .app-link {
  gap: 10px;
}

.app-card.proximamente {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.proximamente-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(71, 85, 105, 0.18);
  border: 1px solid rgba(203, 213, 225, 0.18);
  color: var(--c8);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* ── NEXUS — Ocean Blue ── */
.app-card-nexus .app-card-logo-header {
  background: linear-gradient(140deg, #012A4A 0%, #013A63 60%, #01497C 100%);
}
.app-card-nexus .app-logo-prefix  { color: #7EC8E3; }
.app-card-nexus .app-logo-acento  { color: #7EC8E3; }
.app-card-nexus .app-logo-linea   { background: #7EC8E3; }
.app-card-nexus .app-logo-subtitulo { color: #B8E0F7; }
.app-card-nexus .app-link         { color: #7EC8E3; }
.app-card-nexus:hover {
  border-color: rgba(126, 200, 227, 0.35);
  box-shadow: 0 20px 60px rgba(1, 79, 134, 0.4),
              0 0 0 1px rgba(126, 200, 227, 0.12);
}

/* ── HELEVAS — Burnt Orange ── */
.app-card-helevas .app-card-logo-header {
  background: linear-gradient(140deg, #1C0A00 0%, #431407 60%, #7C2D12 100%);
}
.app-card-helevas .app-logo-prefix  { color: #FB923C; }
.app-card-helevas .app-logo-acento  { color: #FB923C; }
.app-card-helevas .app-logo-linea   { background: #FB923C; }
.app-card-helevas .app-logo-subtitulo { color: #FED7AA; }
.app-card-helevas .app-link         { color: #FB923C; }
.app-card-helevas:hover {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 20px 60px rgba(124, 45, 18, 0.4),
              0 0 0 1px rgba(234, 88, 12, 0.12);
}

/* ── CONTACTO ── */
.contacto {
  padding: 100px 48px;
  background: rgba(4, 8, 16, 0.55);
  border-top: 1px solid var(--borde);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacto-info .seccion-tag {
  margin-bottom: 20px;
}

.contacto-info h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--blanco);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.contacto-info > p {
  color: var(--texto-suave);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 420px;
}

.contacto-dato {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contacto-dato-icono {
  width: 48px;
  height: 48px;
  background: rgba(26, 51, 86, 0.4);
  border: 1px solid var(--borde);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contacto-dato-label {
  font-size: 12px;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contacto-dato-valor {
  color: var(--c7);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.contacto-dato-valor:hover {
  color: var(--c8);
}

.contacto-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--texto-suave);
  font-size: 14px;
}

.cf-check {
  width: 22px;
  height: 22px;
  background: rgba(71, 85, 105, 0.25);
  border: 1px solid rgba(203, 213, 225, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--c7);
  font-weight: 700;
  flex-shrink: 0;
}

/* Formulario */
.contacto-form-wrap {
  background: rgba(15, 32, 64, 0.28);
  border: 1px solid var(--borde);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grupo label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c8);
  letter-spacing: 0.3px;
}

.form-grupo input,
.form-grupo textarea {
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid rgba(203, 213, 225, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--blanco);
  font-family: var(--fuente);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  outline: none;
}

.form-grupo input::placeholder,
.form-grupo textarea::placeholder {
  color: rgba(203, 213, 225, 0.3);
}

.form-grupo input:focus,
.form-grupo textarea:focus {
  border-color: rgba(203, 213, 225, 0.4);
  background: rgba(10, 22, 40, 0.7);
}

.form-btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
  border: none;
  cursor: pointer;
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.form-exito {
  display: none;
  text-align: center;
  background: rgba(71, 85, 105, 0.22);
  border: 1px solid rgba(203, 213, 225, 0.25);
  color: var(--c7);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.form-exito.visible {
  display: block;
}

/* ── FOOTER ── */
.footer {
  background: rgba(3, 6, 12, 0.96);
  border-top: 1px solid var(--borde);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--blanco);
}

.footer-logo span {
  color: var(--c7);
}

.footer-copy {
  color: var(--texto-suave);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--texto-suave);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--c7);
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contacto-info h2 {
    font-size: 34px;
  }

  .contacto-info > p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-empresa { display: none; }
  .nav-separador { display: none; }
  .nav-burger { display: flex; }

  .hero-contenido h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-contenido p { font-size: 16px; }

  .aplicativos { padding: 70px 24px; }
  .aplicativos h2 { font-size: 32px; }
  .grid-apps { grid-template-columns: 1fr 1fr; }

  .trust-inner { gap: 24px; }

  .contacto { padding: 70px 24px; }

  .contacto-form-wrap { padding: 28px 20px; }

  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-contenido h1 { font-size: 32px; }
  .grid-apps { grid-template-columns: 1fr; }
  .hero-acciones { flex-direction: column; align-items: stretch; text-align: center; }
  .trust-inner { gap: 16px; }
}
