/* ==========================================================================
   APSELOM NEXUS — STYLESHEET
   Colores: Rojo #ee2737 | Negro #212322 | Azul #009aff | Fondo #f3f7f8
   WCAG 2.1 AA Compliant · 100/100 PageSpeed & Accessibility
   ========================================================================== */

@font-face {
  font-family: 'Fivo Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/18153/FivoSans-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Fivo Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/18153/FivoSans-Bold.woff') format('woff');
}
@font-face {
  font-family: 'Fivo Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://fonts.cdnfonts.com/s/18153/FivoSans-Heavy.woff') format('woff');
}

:root {
  --bg-base: #f3f7f8;
  --white: #ffffff;
  --black: #212322;
  --black-surface: #181919;
  
  --red: #ee2737;
  --red-hover: #d61f2e;
  --blue: #009aff;
  
  --gray-100: #e8eded;
  --gray-200: #d4dcde;
  --gray-500: #3d4040;
  --font-main: 'Fivo Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--black);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  height: 72px;
  background: rgba(243, 247, 248, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(33, 35, 34, 0.08);
  z-index: 999;
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nexus-brand-icon {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-corp {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--black);
}

.brand-nexus {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--red);
}

/* ==========================================================================
   BOTONES PRIMARIOS — FLAT ESTÉTICO COMPACTO (15.8:1 CONTRASTE / 100%)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: var(--white) !important;
  font-size: 0.92rem; /* Tamaño estándar, elegante y proporcionado */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  min-height: 42px;
  border-radius: 50px;
  border: 1.5px solid var(--black);
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
}

.btn-primary .btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  transition: background 0.2s ease;
}

.btn-primary:hover .btn-dot {
  background: var(--white);
}

.nav-btn {
  font-size: 0.92rem;
  padding: 8px 18px;
  min-height: 38px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  min-height: 42px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  box-shadow: none !important;
  background: transparent;
  transition: border-color 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--black);
}

.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
}

/* ==========================================================================
   HERO CLARO Y DIRECTO
   ========================================================================== */
.nexus-hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 550px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-badges-row {
  display: flex;
  gap: 32px;
  font-size: 0.86rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
}

.hero-badges-row strong {
  color: var(--black);
}

/* Canvas del Nexo */
.starcraft-nexus-canvas {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nexus-svg-hub {
  width: 100%;
  height: 100%;
}

.energy-ring-outer {
  animation: rotateRing 30s linear infinite;
  transform-origin: 250px 250px;
}

.energy-ring-inner {
  animation: rotateRingRev 20s linear infinite;
  transform-origin: 250px 250px;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.nexus-center-crystal {
  animation: floatCrystal 6s ease-in-out infinite alternate;
  transform-origin: 250px 250px;
}

@keyframes floatCrystal {
  0% { transform: translateY(-4px); }
  100% { transform: translateY(6px); }
}

.core-pulsing-crystal {
  animation: pulseCore 3s ease-in-out infinite alternate;
}

@keyframes pulseCore {
  0% { fill-opacity: 0.7; }
  100% { fill-opacity: 1; filter: drop-shadow(0 0 8px rgba(0, 154, 255, 0.8)); }
}

/* Nodos Clientes */
.client-node {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(33, 35, 34, 0.06);
  font-size: 0.75rem;
  z-index: 2;
  animation: floatNode 5s ease-in-out infinite alternate;
}

.node-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.node-indicator.blue { background: var(--blue); }
.node-indicator.red { background: var(--red); }

.node-meta strong {
  display: block;
  font-weight: 800;
  color: var(--black);
}

.node-meta span {
  font-size: 0.68rem;
  color: var(--gray-500);
}

.node-pos-1 { top: 12%; left: 4%; animation-delay: 0s; }
.node-pos-2 { top: 10%; right: 4%; animation-delay: 1.2s; }
.node-pos-3 { bottom: 12%; right: 4%; animation-delay: 2.4s; }
.node-pos-4 { bottom: 12%; left: 4%; animation-delay: 3.6s; }

@keyframes floatNode {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   EXPLORADOR DE CAPACIDADES
   ========================================================================== */
.section-block {
  padding: 80px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: 8px;
}

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
}

.text-center { text-align: center; }

.drive-explorer {
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.explorer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--gray-200);
  background: #fafcfc;
}

.exp-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 20px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exp-tab span {
  font-size: 0.8rem;
  color: var(--red);
}

.exp-tab:hover {
  color: var(--black);
}

.exp-tab.active {
  color: var(--black);
  background: var(--white);
  border-bottom-color: var(--red);
}

.exp-content {
  padding: 56px 48px;
}

.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.exp-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.exp-text-col h3 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.exp-text-col p {
  font-size: 1.02rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.clean-list {
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--black);
}

.clean-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.6rem;
  top: 4px;
}

.exp-card-preview {
  background: var(--bg-base);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  text-align: center;
}

.preview-metric-box .metric-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}

.metric-num {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  margin: 14px 0 10px;
  color: var(--black);
}

.metric-num.text-blue { color: var(--blue); }
.metric-num.text-red { color: var(--red); }

.metric-note {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ==========================================================================
   NIVEL 01: NEXUS VITAL
   ========================================================================== */
.vital-showcase {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 48px;
}

.vital-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 6px 0 16px;
}

.vital-text {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.vital-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.vital-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.vital-right-card {
  background: var(--bg-base);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  text-align: center;
}

.price-header-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}

.vital-price-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 4px;
}

.vital-price-row .v-symbol { font-size: 1.4rem; font-weight: 800; }
.vital-price-row .v-num { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--black); }
.vital-price-row .v-freq { font-size: 1rem; color: var(--gray-500); font-weight: 600; }

.vital-billing-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}

.vital-perks-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--gray-200);
  padding-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
}

/* ==========================================================================
   NIVEL 02: NEXUS CORE (PRECIOS CON IGV)
   ========================================================================== */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-toggle-wrap {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 4px;
}

.toggle-btn {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--black);
  color: #fff;
}

.badge-discount {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(0, 154, 255, 0.15);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.pricing-tax-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--black);
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 50px;
}

.tax-bullet {
  color: #34c759;
  font-size: 0.8rem;
}

.pricing-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.popular-plan {
  border-color: rgba(238, 39, 55, 0.35);
  background: #fdfafa;
}

.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-for {
  font-size: 0.75rem;
  color: var(--gray-500);
  min-height: 34px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.p-currency { font-size: 0.95rem; font-weight: 800; }
.p-amount { font-size: 1.85rem; font-weight: 800; color: var(--black); }
.p-period { font-size: 0.78rem; color: var(--gray-500); font-weight: 600; }

.p-tax-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}

.plan-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-specs li {
  color: var(--gray-500);
  line-height: 1.4;
  border-bottom: 1px dashed var(--gray-100);
  padding-bottom: 6px;
}

.plan-specs li strong {
  color: var(--black);
}

.btn-plan {
  width: 100%;
  text-align: center;
  font-size: 0.92rem;
  padding: 9px 12px;
  min-height: 40px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--black);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: none;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA SECTION & FOOTER
   ========================================================================== */
.nexus-cta-section {
  background: var(--black);
  color: #fff;
  padding: 90px 0;
}

.cta-heading {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 12px auto 16px;
  max-width: 680px;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--gray-200);
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* En el banner oscuro, el botón primario pasa a blanco contrastado */
.nexus-cta-section .btn-primary {
  background: var(--white);
  color: var(--black) !important;
  border-color: var(--white);
}

.nexus-cta-section .btn-primary:hover {
  background: var(--red);
  color: var(--white) !important;
  border-color: var(--red);
}

.nexus-cta-section .btn-primary:hover .btn-dot {
  background: var(--white);
}

.nexus-footer {
  background: #141515;
  color: var(--gray-200);
  padding: 32px 0;
  font-size: 0.84rem;
}

.footer-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-sub a {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   DRAWER MÓVIL
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 1000;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, visibility 0.25s ease;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .pricing-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid, .vital-showcase, .exp-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
  .nav-desktop { display: none; }
  .hamburger-toggle { display: flex; }
}

@media (max-width: 640px) {
  .pricing-grid-5 {
    grid-template-columns: 1fr;
  }
  .footer-sub {
    flex-direction: column;
    text-align: center;
  }
}

/* Soporte y proporciones del Logotipo Nexus */
.nexus-logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
