/* ==========================================================================
   CHAX 2.0 — CROMÁTICA & SISTEMA DE DISEÑO TÁCTICO P2P
   ========================================================================== */

:root {
  /* Lienzo y Fondos */
  --bg-dark: #070a0f;
  --bg-card: rgba(14, 20, 32, 0.72);
  --bg-card-hover: rgba(22, 31, 50, 0.88);
  --bg-glass: rgba(18, 26, 42, 0.6);
  --bg-surface: #0b0f17;

  /* Cromática Primaria: Electric Volt Green (Señal & Malla Viva) */
  --volt-green: #00f59b;
  --volt-green-glow: rgba(0, 245, 155, 0.35);
  --volt-green-dim: rgba(0, 245, 155, 0.12);

  /* Cromática Secundaria: Solar Flare Coral / Amber (Urgencia & Festival) */
  --solar-coral: #ff5722;
  --solar-coral-glow: rgba(255, 87, 34, 0.4);
  --solar-amber: #ff9800;
  --solar-amber-dim: rgba(255, 152, 0, 0.12);

  /* Acento Criptográfico: Hyper-Violet (Soberanía E2EE) */
  --hyper-violet: #8b5cf6;
  --hyper-violet-glow: rgba(139, 92, 246, 0.35);

  /* Textos y Bordes */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 245, 155, 0.3);
  --border-coral-glow: rgba(255, 87, 34, 0.3);

  /* Fuentes & Espaciado */
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Courier New", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Fondo de Malla Dinámica en Canvas */
#meshBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   AVISOS Y RECOMENDACIONES CORPORATIVAS (Sleek Glassmorphic Callouts)
   ========================================================================== */
.hero-advisory {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  margin: 22px auto 0;
  max-width: 780px;
  backdrop-filter: blur(12px);
  text-align: left;
}

.hero-advisory .advisory-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-advisory .advisory-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.corporate-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 20, 32, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-card);
  padding: 16px 22px;
  margin: 28px 0 0;
  backdrop-filter: blur(16px);
  text-align: left;
}

.corporate-callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.corporate-callout-content {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.corporate-callout-content strong {
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 10, 15, 0.82);
  border-bottom: 1px solid var(--border-light);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-icon-box {
  width: 52px;
  height: 52px;
  background: #000000;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 245, 155, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.brand-wrap:hover .brand-icon-box {
  transform: scale(1.05);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 1), 0 0 28px rgba(0, 245, 155, 0.5);
  border-color: var(--volt-green);
}

.brand-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-tag {
  background: var(--volt-green-dim);
  color: var(--volt-green);
  border: 1px solid rgba(0, 245, 155, 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--volt-green) 0%, #00c97b 100%);
  color: #05140b !important;
  font-weight: 750 !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px var(--volt-green-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 245, 155, 0.55);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 155, 0.35);
}

.lang-globe-icon {
  color: var(--volt-green);
  opacity: 0.85;
  flex-shrink: 0;
}

.lang-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  letter-spacing: 0.02em;
  padding: 2px 2px;
}

.lang-item:hover {
  color: var(--text-main);
}

.lang-item.active {
  color: var(--volt-green);
  font-weight: 800;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
}

/* ==========================================================================
   HERO SECTION: PROBLEMA DIRECTO & ALTO IMPACTO
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff7a00;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.2);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--solar-coral);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--solar-coral);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 960px;
  margin: 0 auto 20px;
}

.hero-title .highlight-green {
  background: linear-gradient(135deg, #00f59b 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-title .highlight-coral {
  color: var(--solar-coral);
  text-shadow: 0 0 24px rgba(255, 87, 34, 0.4);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  font-weight: 450;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f59b 0%, #00c97b 100%);
  color: #041208;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 8px 30px var(--volt-green-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(0, 245, 155, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   SIMULADOR INTERACTIVO: "CORTA LA SEÑAL"
   ========================================================================== */
.simulator-section {
  padding: 30px 0 80px;
}

.sim-card {
  background: radial-gradient(circle at top, rgba(20, 30, 48, 0.8) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.sim-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.sim-tag {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.sim-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sim-desc {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 0.98rem;
}

/* Toggle Switch de Señal */
.signal-toggle-wrapper {
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-label {
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.toggle-label.online {
  color: #38bdf8;
}

.toggle-label.offline {
  color: var(--solar-coral);
}

.switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0284c7;
  transition: 0.3s;
  border-radius: 34px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

input:checked + .slider {
  background-color: var(--solar-coral);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.5);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

/* Grid Comparativa de los Dos Teléfonos */
.sim-phones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.sim-phone-box {
  background: rgba(10, 14, 24, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.sim-phone-box.chax-side {
  border-color: rgba(0, 245, 155, 0.35);
  box-shadow: 0 8px 30px rgba(0, 245, 155, 0.12);
}

.sim-phone-box.standard-side {
  border-color: rgba(255, 87, 34, 0.25);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.phone-name {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.status-online {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-mesh {
  background: var(--volt-green-dim);
  color: var(--volt-green);
  border: 1px solid rgba(0, 245, 155, 0.4);
  box-shadow: 0 0 12px var(--volt-green-glow);
  animation: pulseMesh 2s infinite ease-in-out;
}

.status-failed {
  background: rgba(255, 87, 34, 0.18);
  color: #ff6e40;
  border: 1px solid rgba(255, 87, 34, 0.4);
}

@keyframes pulseMesh {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 245, 155, 0.3); }
  50% { box-shadow: 0 0 18px rgba(0, 245, 155, 0.6); }
}

.sim-chat-area {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.4;
  position: relative;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: #1e293b;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: rgba(0, 245, 155, 0.15);
  color: #d1fae5;
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-bottom-left-radius: 4px;
}

.chat-bubble.failed-bubble {
  border: 1px solid rgba(255, 87, 34, 0.4);
  background: rgba(30, 20, 25, 0.8);
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.bubble-check {
  font-weight: 800;
}

.bubble-check.green {
  color: var(--volt-green);
}

.bubble-check.red {
  color: var(--solar-coral);
}

.sim-input-row {
  display: flex;
  gap: 8px;
}

.sim-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.sim-input:focus {
  border-color: var(--volt-green);
}

.sim-send-btn {
  background: var(--volt-green);
  color: #041208;
  border: none;
  font-weight: 800;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sim-send-btn:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   SECCIÓN DE PROBLEMAS & PERSONAJES ANIMADOS ("MUÑEQUITOS")
   ========================================================================== */
.scenarios-section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.section-badge {
  background: var(--volt-green-dim);
  color: var(--volt-green);
  border: 1px solid rgba(0, 245, 155, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

/* Tarjetas de Escenario */
.scenario-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.scenario-block.reverse {
  grid-template-columns: 1fr 1fr;
}

.scenario-block.reverse .scenario-visual {
  order: 2;
}

.scenario-block.reverse .scenario-content {
  order: 1;
}

.scenario-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.scenario-meta-tag.concert {
  background: rgba(255, 87, 34, 0.15);
  color: #ff7a00;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.scenario-meta-tag.trekking {
  background: rgba(0, 245, 155, 0.15);
  color: var(--volt-green);
  border: 1px solid rgba(0, 245, 155, 0.35);
}

.scenario-meta-tag.privacy {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.scenario-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.scenario-problem-box {
  background: rgba(255, 87, 34, 0.08);
  border-left: 3px solid var(--solar-coral);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px;
}

.scenario-problem-box strong {
  color: #ff8a65;
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.scenario-problem-box p {
  font-size: 0.95rem;
  color: #f1f5f9;
}

.scenario-solution-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.scenario-keypoints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-keypoints li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 550;
}

.scenario-keypoints svg {
  width: 18px;
  height: 18px;
  color: var(--volt-green);
  flex-shrink: 0;
}

/* ==========================================================================
   ILUSTRACIONES TÉCNICAS Y VISUALIZACIONES VECTORIALES ANIMADAS
   ========================================================================== */
.scenario-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(16, 24, 40, 0.95) 0%, rgba(8, 12, 18, 0.98) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px;
  min-height: 380px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Animaciones Fluidas de Visualización Técnica */
.device-float-subtle {
  animation: deviceFloat 4.2s ease-in-out infinite;
}

.device-float-alt {
  animation: deviceFloat 4.8s ease-in-out infinite 0.9s reverse;
}

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

.character-float {
  animation: deviceFloat 4.2s ease-in-out infinite;
}

.character-float-alt {
  animation: deviceFloat 4.8s ease-in-out infinite 0.9s reverse;
}

.bubble-pop {
  animation: bubbleSubtle 3.8s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes bubbleSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.pulse-signal-wave {
  animation: wavePulse 2.6s infinite ease-out;
  transform-origin: center;
}

@keyframes wavePulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.beacon-pulse-ring {
  animation: beaconPulse 2.8s infinite cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

@keyframes beaconPulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.soundwave-bar {
  animation: soundwaveAnim 1.2s infinite ease-in-out alternate;
  transform-origin: center bottom;
}

@keyframes soundwaveAnim {
  0% { transform: scaleY(0.35); opacity: 0.5; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

.mesh-link-dash {
  stroke-dasharray: 6 6;
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* Radar Sweep */
.radar-sweep-arm {
  transform-origin: center;
  animation: radarRotate 4s linear infinite;
}

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

.shield-glow-pulse {
  animation: shieldPulse 3.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(0, 245, 155, 0.4)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(0, 245, 155, 0.8)); }
}

.sos-pulse-ring {
  animation: sosPulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

@keyframes sosPulse {
  0% { transform: scale(0.3); opacity: 0.95; }
  100% { transform: scale(2.6); opacity: 0; }
}

.deflect-spark {
  animation: sparkFlicker 1.8s infinite ease-in-out;
  transform-origin: center;
}

@keyframes sparkFlicker {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ==========================================================================
   SECCIÓN DE URGENCIA CRÍTICA: "ANTES DE QUE LO NECESITES"
   ========================================================================== */
.urgency-deep-section {
  padding: 70px 0 100px;
}

.urgency-card {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(15, 20, 30, 0.9) 50%, rgba(0, 245, 155, 0.08) 100%);
  border: 2px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(255, 87, 34, 0.2);
}

.urgency-badge {
  background: var(--solar-coral);
  color: #fff;
  font-weight: 850;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--solar-coral-glow);
}

.urgency-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.15;
}

.urgency-p {
  font-size: 1.18rem;
  color: #e2e8f0;
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.urgency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 40px;
  text-align: left;
}

.urgency-item {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.urgency-item-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.urgency-item h4 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 6px;
}

.urgency-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN "TU MENSAJERO DE TODOS LOS DÍAS" + TABLA COMPARATIVA
   ========================================================================== */
.everyday-section {
  padding: 80px 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 40px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.compare-table th, .compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table th {
  background: rgba(12, 17, 28, 0.9);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table th.col-chax, .compare-table td.col-chax {
  background: rgba(0, 245, 155, 0.06);
  border-left: 2px solid var(--volt-green);
  border-right: 2px solid var(--volt-green);
}

.compare-table th.col-chax {
  color: var(--volt-green);
  font-weight: 850;
  font-size: 1.05rem;
}

.check-icon {
  color: var(--volt-green);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cross-icon {
  color: var(--solar-coral);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SHOWCASE DE DISPOSITIVOS & MAPAX (iPhone, iPad, Mac)
   ========================================================================== */
.showcase-section {
  padding: 90px 0;
}

.device-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.device-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.device-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.device-tab-btn.active {
  background: var(--volt-green-dim);
  color: var(--volt-green);
  border-color: var(--volt-green);
  box-shadow: 0 0 16px var(--volt-green-glow);
}

.screenshots-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--volt-green) rgba(255, 255, 255, 0.05);
}

.screen-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #0a0e18;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.screen-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 155, 0.4);
}

.screen-item.mac-screen {
  flex: 0 0 540px;
}

.screen-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-caption {
  padding: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  border-top: 1px solid var(--border-light);
  background: rgba(14, 20, 32, 0.8);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.faq-item h4 {
  font-size: 1.08rem;
  font-weight: 750;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-light);
  background: #05070a;
  padding: 60px 0 40px;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   BENTO GRID DE FUNCIONALIDADES & SUPERPODERES
   ========================================================================== */
.bento-section {
  padding: 110px 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 155, 0.4);
  box-shadow: 0 24px 60px -10px rgba(0, 245, 155, 0.18);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.highlight-green {
  border-color: rgba(0, 245, 155, 0.3);
  background: linear-gradient(135deg, rgba(14, 24, 38, 0.9) 0%, rgba(8, 14, 22, 0.95) 100%);
}

.bento-card.highlight-purple {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(22, 18, 42, 0.9) 0%, rgba(10, 10, 24, 0.95) 100%);
}

.bento-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
}

.bento-icon-badge.green {
  background: var(--volt-green-dim);
  color: var(--volt-green);
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.bento-icon-badge.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.bento-icon-badge.orange {
  background: rgba(255, 87, 34, 0.15);
  color: #ff7a00;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.bento-icon-badge.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bento-title {
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.bento-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.bento-ptt-player {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.ptt-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--volt-green);
  color: #041208;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ptt-play-btn:hover {
  transform: scale(1.08);
}

.audio-bars-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}

.audio-bar {
  flex: 1;
  background: rgba(0, 245, 155, 0.35);
  border-radius: 2px;
  height: 8px;
  transition: height 0.2s ease;
}

.audio-bar.playing {
  animation: barBounce 0.8s infinite ease-in-out alternate;
}

@keyframes barBounce {
  0% { height: 6px; background: rgba(0, 245, 155, 0.4); }
  100% { height: 28px; background: var(--volt-green); }
}

.radar-mini-display {
  background: radial-gradient(circle, rgba(6, 78, 59, 0.35) 0%, rgba(5, 15, 25, 0.8) 100%);
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.radar-target-stat {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.hero-value-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.val-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 650;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scenario-meta-tag.emergency {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   DIAGRAMAS Y DIAPOSITIVAS INTERACTIVAS: PROPAGACIÓN DE PAQUETES
   ========================================================================== */
.diagram-section {
  padding: 90px 0;
  position: relative;
}

.diagram-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.diagram-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.diagram-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.diagram-tab-btn.active {
  background: var(--volt-green-dim);
  color: var(--volt-green);
  border-color: var(--volt-green);
  box-shadow: 0 0 16px var(--volt-green-glow);
}

.diagram-card {
  background: radial-gradient(circle at top, rgba(16, 25, 42, 0.9) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: none;
}

.diagram-card.active {
  display: block;
  animation: fadeInDiagram 0.4s ease forwards;
}

@keyframes fadeInDiagram {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.diagram-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.diagram-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.stepper-step {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all 0.25s ease;
}

.stepper-step.active {
  border-left-color: var(--volt-green);
  background: rgba(0, 245, 155, 0.08);
}

.stepper-step h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.stepper-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.diagram-svg-wrap {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET & IPHONE VIEWPORTS 375px - 430px)
   ========================================================================== */
@media (max-width: 900px) {
  .diagram-body {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .scenario-block, .scenario-block.reverse {
    grid-template-columns: 1fr;
  }
  .scenario-block.reverse .scenario-visual {
    order: 1;
  }
  .scenario-block.reverse .scenario-content {
    order: 2;
  }
  .urgency-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* Mobile menu */
  }
  .nav-right {
    gap: 8px;
  }
  .lang-pill {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
  .nav-cta {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .screen-item.mac-screen {
    flex: 0 0 340px;
  }
  .hero-advisory {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-card);
    padding: 12px 16px;
    gap: 8px;
  }
  .corporate-callout {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  /* Tipografía Fluida con clamp() para iPhone */
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
    line-height: 1.12;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .section-subtitle {
    font-size: 0.92rem;
  }

  /* Botones de acción principales (44px min tap target) */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 0.98rem;
  }

  /* Pastillas de valor Hero en mobile */
  .hero-value-pills {
    gap: 8px;
  }
  .val-pill {
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  /* Bento Cards en iPhone */
  .bento-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .bento-title {
    font-size: 1.25rem;
  }
  .bento-desc {
    font-size: 0.9rem;
  }
  .radar-mini-display {
    padding: 14px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Diagramas interactivos en iPhone */
  .diagram-section {
    padding: 60px 0;
  }
  .diagram-tabs {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .diagram-tab-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.88rem;
    padding: 10px 16px;
  }
  .diagram-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }
  .diagram-svg-wrap {
    min-height: 280px;
    padding: 10px;
  }

  /* Escenarios reales en mobile */
  .scenario-block {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    gap: 24px;
  }
  .scenario-heading {
    font-size: 1.25rem;
  }
  .scenario-problem-box {
    padding: 14px 16px;
    font-size: 0.88rem;
  }
  .scenario-visual {
    min-height: 240px;
    padding: 12px 6px;
  }

  /* Tabla Comparativa con Sticky Column en iPhone */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .compare-table th, .compare-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .compare-table th:first-child, .compare-table td:first-child {
    position: sticky;
    left: 0;
    background: #090e18;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0,0,0,0.5);
    white-space: normal;
    min-width: 130px;
  }

  /* Carrusel de Screenshots */
  .device-tabs {
    gap: 8px;
  }
  .device-tab-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .screen-item {
    flex: 0 0 240px;
  }
  .screen-item.mac-screen {
    flex: 0 0 280px;
  }

  /* PTT Player en Bento */
  .bento-ptt-player {
    padding: 10px 14px;
    gap: 10px;
  }
  .audio-bars-wrap {
    gap: 3px;
  }
  .audio-bar {
    width: 3px;
  }
}

@media (max-width: 430px) {
  /* Específico para anchos de pantalla iPhone mini, Pro y Max (375px a 430px) */
  .hero-pill {
    padding: 5px 12px;
    font-size: 0.74rem;
  }
  .hero-advisory {
    font-size: 0.78rem;
    padding: 10px 14px;
  }
  .corporate-callout {
    padding: 14px 14px;
  }
  .corporate-callout-content {
    font-size: 0.82rem;
  }
}
