/* Reset y configuraci?�n base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3266CC;
  --secondary-color: #F0F4FF;
  --accent-color: #85B7EB;
  --dark-color: #0A0B1E;
  --light-color: #F0F4FF;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --shadow: 0 10px 25px rgba(0, 163, 232, 0.2);
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.container-narrow {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

#view-inicio>section {
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 88%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 111, 214, 0.18), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Header - Men?� a todo lo largo (Dise?�o Nuevo) */
.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centra el contenido (nav) */
  padding: 15px 0;
  background: rgba(10, 11, 30, 0.85);
  /* Fondo glass a todo lo largo */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  top: 0;
  background: rgba(10, 11, 30, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.logo-container {
  position: absolute;
  /* Mantiene la misma posici?�n que ten?�as */
  left: clamp(20px, 4vw, 40px);
  z-index: 1001;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* CORRECCI??N 1: Logo como imagen del tama?�o correcto */
.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-logo-image {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.logo i {
  font-size: 2rem;
  font-weight: 500;
  padding: 8px 25px;
  border-radius: 20px;
  transition: var(--transition);
  background: transparent;
  /* Fix for coloring issue */
}

.nav-link:hover,
.nav-link.active {
  background: var(--gradient);
  /* Maintains the existing blue container when selected */
  color: var(--white);
}

/* Hide the inline mobile link on desktop by default */
.mobile-only-link {
  display: none;
}

/* Header CTA Button - 'Iniciar Sesi?�n' */
.header-action {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  z-index: 1001;
}

/* Men?� Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-10%);
  z-index: 1002;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* HERO SECTION NUEVO */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 0 130px;
  overflow: hidden;
}

.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--secondary-color, #F0F4FF);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 3;
  transform: scaleX(1.15);
}

.hero-bg-digital {
  background: url('../img/hero/hero.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Glow azul mas brillante: se ve mas el fondo */
  background: radial-gradient(ellipse 85% 100% at center, rgba(15, 30, 70, 0.85) 0%, rgba(15, 30, 70, 0.8) 45%, rgba(15, 30, 70, 0) 85%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1200px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-left {
  text-align: left;
}

.badge {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge.glass-badge {
  background: rgba(10, 15, 40, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.hero-title {
  font-size: 53px;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--white);
  font-weight: 800;
  animation: heroFadeUp 0.9s ease forwards;
  opacity: 0;
}

.hero-title-accent {
  color: #3b82f6;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--white);
  line-height: 1.6;
  opacity: 0.85;
}

.hero-text-gray {
  color: #94a3b8;
  opacity: 1;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}

/* Botones del hero */
.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Boton secundario (outline oscuro) */
.hero-buttons .btn-outline {
  background: rgba(10, 15, 40, 0.5);
}

.hero-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Boton primario (azul solido) */
.hero-buttons .btn-primary {
  background: #2563eb;
  border: 1px solid #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.hero-buttons .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.55);
}

/* Tarjeta de resultados (columna derecha) */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.results-card {
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.4s forwards;
}

.results-card-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 26px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  font-size: 18px;
}

.result-info {
  display: flex;
  flex-direction: column;
}

.result-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.result-label {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.3;
}

/* Barra de features */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding: 22px 30px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.7s forwards;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #3b82f6;
  font-size: 16px;
}

.hero-feature-text {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(10, 102, 194, 0.5);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #cbd5e1;
  color: var(--dark-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #ffffff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.shadow-glow {
  box-shadow: 0 10px 40px -10px rgba(10, 102, 194, 0.4);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.btn-full {
  width: 100%;
  padding: 14px 0;
}

/* Sobre Nosotros */
.sobre-nosotros {
  padding: clamp(72px, 8vw, 110px) 0;
  background: linear-gradient(160deg, #0a1628 0%, #0d1f45 55%, #0f2251 100%);
  border-top: 1px solid rgba(30, 60, 120, 0.3);
  border-bottom: 1px solid rgba(30, 60, 120, 0.3);
  position: relative;
  overflow: visible;
}

/* Eliminada mancha morada */

.sobre-nosotros::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 111, 214, 0.18), transparent 70%);
  pointer-events: none;
}

.sobre-nosotros .container-narrow {
  position: relative;
  z-index: 1;
}

.sn-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.nuestra-esencia-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark-color);
  margin-bottom: 8px;
  text-align: left;
  letter-spacing: -0.5px;
}

.nuestra-esencia-title .text-cyan,
.text-cyan {
  background: linear-gradient(90deg, #386FD6, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sn-eyebrow {
  display: block;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.sn-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  margin: 12px 0 28px;
}

.sn-highlight {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 25px;
}

.sn-highlight-blue {
  color: #3b82f6;
}

.sn-blue-strong {
  color: #3b82f6;
  font-weight: 700;
}

.sn-text {
  flex: 1;
}

.sn-text-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 18px;
  max-width: 520px;
}

.sn-stats {
  display: flex;
  gap: 30px;
}

.stat-item-sn {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item-sn:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-icon-circle {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(50, 102, 204, 0.35), rgba(133, 183, 235, 0.15));
  border: 1px solid rgba(133, 183, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
}

.stat-item-sn h3 {
  font-size: 34px;
  color: var(--dark-color);
  margin-bottom: 2px;
  letter-spacing: -1.5px;
}

.stat-item-sn p {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.sn-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sn-image::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(26, 64, 212, 0.6) 0%, rgba(26, 64, 212, 0.22) 45%, transparent 72%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.sn-image .animated-cube {
  position: relative;
  z-index: 1;
}


.cube-shadow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 210px);
  width: 280px;
  height: 36px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.8) 0%, rgba(20, 50, 200, 0.25) 40%, rgba(20, 50, 200, 0.08) 65%, transparent 85%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Forzar azul electrico en los numeros estadisticos */
.sobre-nosotros .stat-number {
  color: #3b82f6 !important;
}

.animated-cube {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  perspective-origin: 50% 50%;
  -webkit-perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.cube {
  width: 250px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  animation: rotateCube 10s infinite linear;
  will-change: transform;
}

.face {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--gradient);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: var(--white);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.face.front {
  transform: rotateY(0deg) translateZ(125px);
}

.face.back {
  transform: rotateY(180deg) translateZ(125px);
}

.face.right {
  transform: rotateY(90deg) translateZ(125px);
}

.face.left {
  transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
  transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
  transform: rotateX(-90deg) translateZ(125px);
}

/* Proceso Redise�ado */
.process {
  padding: 100px 0;
  background: #f8fafc;
  /* Fondo claro para resaltar los pasos */
}

.process-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.process-tag {
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

.process-header .ns-subtitle {
  text-align: center;
  margin-bottom: 20px;
}

.process-desc {
  text-align: center;
  margin-bottom: 40px;
}

.process-steps-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.process-line {
  position: absolute;
  top: 80px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 20px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: #3266CC;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px !important;
  box-shadow: 0 10px 20px rgba(50, 102, 204, 0.2);
  border: 4px solid white;
  transition: transform 0.3s ease;
}

.step:hover .step-icon {
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  height: auto;
  display: block;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .process-line {
    display: none;
  }

  .process-steps {
    flex-direction: column;
    gap: 50px;
  }
}

.contact-tagline {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

/* Footer */
.footer {
  position: relative;
}

.footer-dark {
  padding: 72px 0 28px;
  background: linear-gradient(180deg, #0a0e1a 0%, #0f172a 100%);
  border-top: none;
  color: #94a3b8;
  font-family: "Inter", sans-serif;
  margin-top: 0;
}

.footer-dark::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(135deg, #386FD6 0%, #5A8DF2 50%, #8B5CF6 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.footer-brand {
  max-width: 450px;
}

.footer-logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  letter-spacing: 0.35px;
  color: #64748b;
}

/* Botones Flotantes */
.floating-buttons {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
}

.floating-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(56, 111, 214, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(56, 111, 214, 0.45);
}

.chatbot-btn {
  background: #fff;
  border: 2px solid rgba(56, 111, 214, 0.2);
}

.chatbot-btn img.jey {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.floating-btn .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Chatbot Modal */
.chatbot-modal {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-modal.active {
  display: flex;
}

.chatbot-header {
  background: var(--gradient);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header h3 .jey-header {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chatbot-message.bot {
  background: var(--light-color);
  color: var(--dark-color);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chatbot-message.user {
  background: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chatbot-input-container {
  padding: 15px 20px;
  border-top: 1px solid var(--light-color);
  display: flex;
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--light-color);
  border-radius: 20px;
  outline: none;
}

.chatbot-send {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-option {
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.quick-option:hover {
  background: var(--primary-color);
  color: white;
}

/* Animaciones mejoradas */
@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(20px, 20px);
  }
}

@keyframes coreRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes coreSweep {
  0% {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes corePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes nodePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

@keyframes secondaryPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

@keyframes particleFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  25% {
    transform: translate(10px, -15px) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translate(-5px, -25px) scale(0.8);
    opacity: 0.6;
  }

  75% {
    transform: translate(-15px, -10px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes particleFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  33% {
    transform: translate(-12px, 8px) scale(1.3);
    opacity: 1;
  }

  66% {
    transform: translate(8px, -12px) scale(0.9);
    opacity: 0.5;
  }
}

@keyframes particleFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }

  20% {
    transform: translate(15px, 5px) scale(0.7);
    opacity: 0.4;
  }

  40% {
    transform: translate(5px, 20px) scale(1.4);
    opacity: 1;
  }

  60% {
    transform: translate(-10px, 15px) scale(1.1);
    opacity: 0.7;
  }

  80% {
    transform: translate(-20px, -5px) scale(0.8);
    opacity: 0.6;
  }
}

@keyframes panelGlow {

  0%,
  100% {
    border-color: rgba(0, 163, 232, 0.4);
    box-shadow: 0 0 10px rgba(0, 163, 232, 0.2);
  }

  50% {
    border-color: rgba(0, 163, 232, 0.8);
    box-shadow: 0 0 20px rgba(0, 163, 232, 0.4);
  }
}

@keyframes barHeight {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.5);
  }
}

@keyframes graphPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(1);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

@keyframes codeType {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(1);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

@keyframes energyWave {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes messageFloat {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-50%) translateX(-5px);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Overlay para men?� m?�vil */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  /* White overlay instead of black */
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* RESPONSIVE DESIGN MEJORADO */


@media (max-width: 768px) {

  /* NOTE: Mobile header/nav styles are now managed in nav.css */

  /* Show the mobile link inside the hamburger menu */
  .mobile-only-link {
    display: block;
    width: 100%;
  }

  /* =============================================
     SERVICIOS PAGE - Force inline grids to stack
     ============================================= */
  .hero-container-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center !important;
  }

  .hero-container-grid>div:nth-child(2) {
    display: none !important;
    /* Hide complex floating mockup on mobile */
  }

  .hero-container-grid h1 {
    font-size: 2rem !important;
  }

  .hero-container-grid p {
    max-width: 100% !important;
  }

  /* Service area cards - stack vertically */
  .area-card {
    min-height: auto !important;
  }

  /* Process section - stack on mobile */
  .container-wide>div[style*="grid-template-columns: 320px"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center !important;
  }

  /* Process steps horizontal line - stack vertically */
  .container-wide div[style*="display: flex; justify-content: space-between"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
  }

  /* Hide the dashed timeline connector */
  .container-wide div[style*="border-top: 2px dashed"] {
    display: none !important;
  }

  /* Why choose Jebit - stack vertically */
  .container-wide>div[style*="display: flex; justify-content: space-between; align-items: center; flex-wrap"] {
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Case study grid - 1 column */
  .container-wide>div[style*="grid-template-columns: 1.2fr 1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .container-wide>div[style*="grid-template-columns: 1.2fr 1.1fr 1fr"]>div:nth-child(3) {
    display: none !important;
    /* Hide case study image on mobile */
  }

  .container-wide>div[style*="grid-template-columns: 1.2fr 1.1fr 1fr"]>div:first-child {
    padding: 25px 20px !important;
  }

  /* FAQ grid - 1 column */
  .faq-container {
    grid-template-columns: 1fr !important;
  }

  /* CTA final section - stack */
  .cta-inner-grid {
    flex-direction: column !important;
    padding: 30px 20px !important;
    text-align: center !important;
  }

  .cta-inner-grid div[style*="display: flex; gap: 15px"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  .cta-inner-grid a.btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Hero movil */
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  /* Una sola columna en movil */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-left {
    text-align: center;
  }

  /* Hide the desktop stats card in mobile to match minimalist mockup */
  .hero-right {
    display: none;
  }

  /* Hero buttons stacked and larger on mobile */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 columns closely packed */
    gap: 10px;
    padding: 20px 0;
    margin-top: 30px;
    align-items: start;
  }

  .hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .hero-feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin: 0;
  }

  .hero-feature-text {
    font-size: 0.70rem;
    line-height: 1.2;
    color: #cbd5e1;
  }

  /* If there's a 4th feature, it'll wrap or we hide it */
  .hero-feature:nth-child(4) {
    display: none;
    /* Hide 4th to match the 3-icon mockup strictly */
  }

  /* Header action is managed by nav.css @media 1024px */

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  /* Botones flotantes m?�vil */
  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }

  /* Modal chatbot m?�vil */
  .chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    left: 20px;
    width: auto;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Secciones m?�vil */
  .process {
    padding: 60px 0;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .cube {
    width: 150px;
    height: 150px;
  }

  .face {
    width: 150px;
    height: 150px;
    font-size: 2rem;
  }

  .face.front {
    transform: rotateY(0deg) translateZ(75px);
  }

  .face.back {
    transform: rotateY(180deg) translateZ(75px);
  }

  .face.right {
    transform: rotateY(90deg) translateZ(75px);
  }

  .face.left {
    transform: rotateY(-90deg) translateZ(75px);
  }

  .face.top {
    transform: rotateX(90deg) translateZ(75px);
  }

  .face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
  }

  /* Proceso m?�vil */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .step {
    max-width: 250px;
  }

  .step-icon {
    width: 80px !important;
    height: 80px !important;
    font-size: 1.8rem !important;
  }

  .social-links {
    gap: 15px;
  }

  /* Prevenir scroll horizontal */
  body,
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {

  /* Ajustes para pantallas muy peque?�as */
  .hero-content h1 {
    font-size: 2rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .chatbot-modal {
    height: 400px;
  }

  /* Reducir part?�culas en pantallas muy peque?�as */
  .particle:nth-child(n + 6) {
    display: none;
  }

}

@media (max-width: 768px) {

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-header {
    justify-content: center;
  }

  /* Sobre Nosotros - Nuestra Esencia Tech fix */
  .sobre-nosotros {
    padding: 60px 0;
    /* Reduced padding for mobile to allow space for the cube */
  }

  .sn-layout {
    display: flex;
    flex-direction: column-reverse;
    /* Cube (sn-image) above text */
    text-align: center;
    gap: 40px;
    margin-top: 40px;
    /* added spacing around top of the image */
  }

  .sn-stats {
    flex-direction: row;
    /* Horizontal */
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    /* Keep on one line */
    gap: 15px;
    /* Tighter gap to fit all 3 */
  }

  .stat-item-sn h3 {
    font-size: 24px !important;
    /* Smaller text so 3 fit horizontally */
    margin-bottom: 2px !important;
  }

  .stat-item-sn p {
    font-size: 11px !important;
    /* Smaller label */
  }

  /* Prevent horizontal scrolling on specific widgets and text */
  .container {
    padding: 0 15px !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .floating-buttons {
    bottom: 15px;
    right: 15px;
  }
}

/* Ajustes para el nuevo layout */
.nuestros-servicios {
  background-color: var(--secondary-color, #F0F4FF);
  padding: clamp(72px, 8vw, 110px) 0;
  margin-top: -12px;
  position: relative;
}

.ns-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
  background: var(--white);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 10px 25px rgba(0, 163, 232, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ns-left {
  padding-right: clamp(24px, 4vw, 48px);
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.ns-services-picker {
  margin-top: 8px;
}

.ns-picker-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.ns-right-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.ns-active-service-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.ns-title {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.ns-subtitle {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark-color);
  line-height: 1.25;
  margin-bottom: 16px;
}

.ns-text {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 28px;
}

.ns-sm-carousel-container {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-height: 190px;
  overflow: hidden;
}

.ns-sm-carousel-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 8px;
  height: 28px;
  background: linear-gradient(to top, #f1f5f9, transparent);
  pointer-events: none;
}

.ns-carousel {
  max-height: 170px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.ns-carousel::-webkit-scrollbar {
  width: 6px;
}

.ns-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.ns-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.ns-service-card {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ns-service-card:hover,
.ns-service-card.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(240, 244, 255, 0.6) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 6px 18px rgba(50, 102, 204, 0.12);
  transform: translateX(3px);
}

.ns-service-card .ns-service-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient);
  color: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.ns-service-card h3 {
  margin-bottom: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.3;
}

.ns-main-service-card {
  width: 100%;
  max-width: 450px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ns-main-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 72px rgba(50, 102, 204, 0.22);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ns-main-card-top {
  height: 28%;
  min-height: 130px;
  background: linear-gradient(135deg, #1e293b, var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 60px;
}

.ns-main-card-body {
  padding: 40px 30px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ns-main-card-body h3 {
  font-size: 26px;
  margin-bottom: 15px;
  color: white;
}

.ns-main-card-body p {
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.7;
  color: #cbd5e1;
}

@media (max-width: 968px) {
  .ns-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 28px 20px;
    border-radius: 24px;
  }

  .ns-left {
    padding-right: 0;
    border-right: none;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-curve {
    height: 48px;
  }
}

/* ===== FIX: Quitar bordes/l�neas del cubo animado en Sobre Nosotros ===== */
.animated-cube .cube .face {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.sn-image {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.sn-image * {
  box-sizing: border-box;
}

/* ===================================================
   NUEVO SISTEMA DE NAVEGACI�N - MEGAMEN�
   =================================================== */
.header {
  padding: 12px 0 !important;
}

.header.scrolled {
  top: 0 !important;
  background: rgba(10, 11, 30, 0.97) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25) !important;
}

.header-action {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item-dropdown {
  position: static;
}

.nav-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.nav-item-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-link-drop {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.mega-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, 96vw);
  background: rgba(10, 11, 30, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1200;
}

.mega-menu.open {
  display: block;
  animation: megaFadeDown 0.22s ease forwards;
}

@keyframes megaFadeDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.mega-inner {
  display: flex;
  padding: 28px 32px;
  gap: 8px;
}

.mega-col {
  flex: 1;
  min-width: 190px;
}

.mega-col-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  transition: background 0.2s ease;
  margin-bottom: 2px;
}

.mega-item:hover {
  background: rgba(59, 130, 246, 0.12);
}

.mega-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.mega-item span {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 1px;
}

.mega-icon {
  font-size: 16px;
  color: #3b82f6;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.mega-badge {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  border-radius: 20px;
  padding: 1px 8px;
  margin-top: 3px;
}

.mega-footer-link {
  display: inline-block;
  margin-top: 14px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s;
}

.mega-footer-link:hover {
  color: #93c5fd;
}

.mega-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.mega-overlay.active {
  display: block;
}

/* Bot�n icono */
.header-icon-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.header-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Selector de idioma */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lang-arrow {
  font-size: 9px;
  transition: transform 0.2s;
}

.lang-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 11, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-width: 140px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 1300;
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
}

.lang-option.active {
  color: #3b82f6;
  font-weight: 700;
}

.lang-flag {
  font-size: 16px;
}

.btn-cta-header {
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  background: linear-gradient(135deg, #3266CC, #1d4ed8) !important;
  box-shadow: 0 4px 18px rgba(50, 102, 204, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-cta-header:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 28px rgba(50, 102, 204, 0.55) !important;
}

/* ===================================================
   BUSCADOR MODAL
   =================================================== */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-modal.active {
  display: flex;
}

.search-modal-inner {
  background: rgba(10, 11, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px 32px 28px;
  width: min(680px, 92vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: megaFadeDown 0.2s ease;
}

.search-modal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.search-modal-icon {
  color: #94a3b8;
  font-size: 18px;
  flex-shrink: 0;
}

.search-modal-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 18px;
  color: #f1f5f9;
  font-family: inherit;
}

.search-modal-bar input::placeholder {
  color: #475569;
}

.search-esc {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.search-esc:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.search-popular-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-tag:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: #3b82f6;
  color: #fff;
}

.search-hint {
  margin-top: 18px;
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .mega-menu {
    display: none !important;
  }

  .nav-arrow {
    display: none;
  }

  .header-action .lang-selector,
  .header-action .header-icon-btn {
    display: none;
  }

  .btn-cta-header {
    display: none !important;
  }
}

/* Quitar bordes de estadisticas en moviles */
@media (max-width: 768px) {
  .stat-item-sn {
    border-right: none;
    padding-right: 0;
  }
}

/* Decoración CTA: anillos concéntricos (esquina inferior izquierda) */
.cta-simple .cta-rings {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-40%, 40%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: 0;
}

.cta-simple .cta-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  transform: translate(-50%, -50%);
}

.cta-simple .cta-rings span:nth-child(1) {
  width: 110px;
  height: 110px;
  opacity: 0.7;
}

.cta-simple .cta-rings span:nth-child(2) {
  width: 220px;
  height: 220px;
  opacity: 0.55;
}

.cta-simple .cta-rings span:nth-child(3) {
  width: 330px;
  height: 330px;
  opacity: 0.38;
}

.cta-simple .cta-rings span:nth-child(4) {
  width: 440px;
  height: 440px;
  opacity: 0.22;
}

.cta-simple .cta-rings span:nth-child(5) {
  width: 550px;
  height: 550px;
  opacity: 0.12;
}

/* Decoración CTA: cuadrícula de puntos (derecha, centrada verticalmente) */
.cta-simple .cta-dots {
  position: absolute;
  right: clamp(30px, 6vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background-image: radial-gradient(rgba(56, 189, 248, 0.7) 2px, transparent 2px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}