/* ==========================================================================
   CRISTINA BOUDA - SISTEMA DE DISEÑO MODERN TECH SUIZO (OPCIÓN 2)
   Inspiración: Apple / Linear / Agencias de Precisión de Zúrich y Berlín
   Paleta: Blanco Impoluto, Azul Marino Técnico (#090d16), Gris Grafito (#334155),
           Cobalto de Precisión (#2563eb / #1d4ed8) y Cyan Eléctrico
   ========================================================================== */

:root {
  /* Paleta cromática: Modern Tech Suizo */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-accent-soft: #eff6ff;

  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-active: #2563eb;
  --border-focus: rgba(37, 99, 235, 0.25);
  --border-glow: rgba(37, 99, 235, 0.12);

  --text-main: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Acentos de Precisión Suiza: Cobalto & Deep Tech Navy */
  --tech-cobalt: #2563eb;
  --tech-cobalt-dark: #1d4ed8;
  --tech-cobalt-light: #3b82f6;
  --tech-navy: #0f172a;
  --tech-navy-deep: #090d16;
  --tech-ice: #eff6ff;
  --tech-cyan: #0284c7;

  /* Aliases para compatibilidad */
  --gold-primary: #2563eb;
  --gold-light: #3b82f6;
  --gold-dark: #1d4ed8;
  --gold-soft: rgba(37, 99, 235, 0.08);

  --blue-accent: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.08);

  --danger-accent: #ef4444;
  --success-accent: #10b981;

  /* Tipografías */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Sombras y transiciones suizas hiper-limpias */
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 14px -2px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 10px 28px -4px rgba(37, 99, 235, 0.12), 0 2px 6px 0 rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 20px 45px -12px rgba(15, 23, 42, 0.08);
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  /* Micro-cuadrícula de precisión suiza estilo Linear */
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1.1px, transparent 1.1px);
  background-size: 28px 28px;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Multimedia e imágenes responsivas universales */
img, picture, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevención universal de desbordamiento horizontal por palabras largas */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

p, a, span, li {
  overflow-wrap: break-word;
}

/* Reglas estrictas para contener tamaños de SVGs e iconos */
svg {
  box-sizing: content-box;
}

/* Luces ambientales sutiles en cobalto e hielo */
.bg-ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.5;
}

.glow-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  top: -120px;
  left: -100px;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.04) 0%, transparent 70%);
  top: 40%;
  right: -150px;
}

/* Contenedor general */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TIPOGRAFÍA Y ELEMENTOS REUTILIZABLES
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #090d16 0%, #1e3a8a 55%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.section-badge {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: #2563eb;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 650px;
  margin: 0 auto;
}

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

.section {
  padding: 80px 0;
  position: relative;
}

/* Panel Suizo de Alta Precisión */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--bg-surface);
  border-color: #93c5fd;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   BOTONES MODERN TECH
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-sm {
  padding: 9px 20px !important;
  font-size: 0.86rem !important;
  line-height: 1.2 !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  overflow: hidden;
}

.btn-primary svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary:active {
  transform: translateY(0);
  background: #1e40af;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e40af;
  transform: translateY(-1px);
}

/* En héroes oscuros (landing-hero, hero-section) */
.landing-hero .btn-secondary,
.hero-section .btn-secondary,
.hero-ctas .btn-secondary,
.landing-hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.landing-hero .btn-secondary:hover,
.hero-section .btn-secondary:hover,
.hero-ctas .btn-secondary:hover,
.landing-hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.25);
}

.btn-glass {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  border-radius: 9999px;
  padding: 14px 26px;
  font-weight: 600;
}

.btn-glass:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn-glass:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: #ffffff;
  color: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 12px 24px;
}

.btn-outline-gold:hover {
  background: #eff6ff;
  color: #4361ee;
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.02rem;
  border-radius: 9999px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition-smooth);
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar.scrolled {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-isotopo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.logo:hover .logo-isotopo {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(66, 133, 244, 0.3));
}

.logo-text-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-subtag {
  font-size: 0.63rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.06em;
  margin-top: 2px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.91rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 4px 2px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links a:active {
  color: #1d4ed8;
  transform: translateY(1px) scale(0.98);
}

.nav-links a.active {
  color: #2563eb;
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  border-radius: 2px;
}

a:active {
  color: #1d4ed8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 620px;
  padding: 95px 0 55px;
  background: #090e1a;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background Photo & Atmospheric Overlays (Integración Directa en Background) */
.hero-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Resplandor ambiental de fondo que da profundidad azul/cian al lienzo oscuro */
.hero-bg-glow {
  position: absolute;
  top: 18%;
  right: max(0px, calc((100vw - 1280px) / 2));
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
}

/* Fotografía de Cristina integrada 100% como BACKGROUND cinemático (Mirada directa al usuario y escena unificada) */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero-bg-cristina-editorial.webp?v=hero_natural_42yo_v2');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  opacity: 0.72;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Scrim ambiental que garantiza legibilidad óptima del texto fundiéndose con la escena */
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(90deg, #090e1a 0%, #090e1a 30%, rgba(9, 14, 26, 0.82) 48%, rgba(9, 14, 26, 0.30) 70%, transparent 88%),
    linear-gradient(180deg, rgba(9, 14, 26, 0.3) 0%, transparent 15%, rgba(9, 14, 26, 0.45) 85%, #090e1a 100%);
}

/* Hero Content Grid */
.hero-mobile-visual {
  display: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2.05rem, 3.3vw, 2.8rem);
  line-height: 1.16;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-weight: 800;
  text-wrap: balance;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.0rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-subtitle strong {
  color: #f1f5f9;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* Glass button on dark background */
.hero-section .btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hero-section .btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-badge-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 22px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #bae6fd;
  margin-top: 14px;
  margin-bottom: 0;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-status-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-status-sep {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.hero-badge-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.badge-pill-divider {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.hero-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  transition: all 0.2s ease;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-pill-link:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Hero Trust / Stats Card */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-top: 0;
  width: 100%;
  max-width: 580px;
  box-sizing: border-box;
}

.hero-trust .trust-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.hero-trust .trust-divider {
  width: 1px;
  height: 38px;
  align-self: center;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
}

.hero-trust .stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 2px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero-trust .stat-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}

/* Hero Visual / Columna Derecha: Reserva el espacio para la imagen cinematográfica sin elementos superpuestos */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   GRIDS Y SECCIÓN RETO/SOLUCIÓN
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.case-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ==========================================================================
   SOBRE MÍ
   ========================================================================== */

/* ==========================================================================
   TRAYECTORIA & SOLVENCIA (FUSIÓN UNIFICADA)
   ========================================================================== */

.about-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.about-section .container {
  max-width: 1240px;
}

.author-avatar-wrap {
  position: relative;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  padding: 4.5px;
  background: linear-gradient(135deg, #2563eb, #60a5fa, #38bdf8);
  box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  display: block;
}

.avatar-live-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: #10b981;
  border: 3.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
  z-index: 2;
}

.author-tagline {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.author-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
}

/* ==========================================================================
   FORMULARIO Y CONTACTO
   ========================================================================== */

.contact-section {
  background: #ffffff;
}

.contact-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 56px 48px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 38px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row-3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group-full {
  width: 100%;
}

.form-group-full select {
  width: 100%;
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-submit {
  margin-top: 10px;
}

.form-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.disclaimer-icon {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.form-success-message {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 16px;
}

.success-icon {
  width: 20px;
  height: 20px;
  color: #16a34a;
}

/* ==========================================================================
   FOOTER: ANCLAJE TECNOLÓGICO MINIMALISTA (DEEP TECH NAVY)
   ========================================================================== */

.footer {
  background: #070c18;
  color: #94a3b8;
  padding: 72px 0 32px;
  border-top: 1px solid #1e293b;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Soporte y distribución para footer de páginas satélite y producto */
.footer-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

.footer-brand {
  flex: 1 1 320px;
  max-width: 400px;
}

.footer-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 14px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.footer-title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}

.footer-col a,
.footer-links a,
.footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover,
.footer-links a:hover,
.footer a:hover {
  color: #38bdf8;
  transform: translateX(2px);
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-bio {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-links-group h3,
.footer-links-group h4 {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links-group a:hover {
  color: #60a5fa;
  transform: translateX(2px);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
  font-size: 0.84rem;
}

.location-icon {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: #94a3b8;
  margin: 0;
}

.legal-links,
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.legal-links a,
.footer-bottom-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.legal-links a:hover,
.footer-bottom-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1025px) {
  .hero-container {
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }

  .hero-bg-photo {
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    opacity: 0.72;
    background-position: 70% center;
  }

  .hero-visual {
    display: none;
  }

  .hero-trust,
  .hero-badge-pill {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1240px) {
  .logo-subtag {
    display: none;
  }
}

@media (max-width: 992px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .navbar.menu-open .nav-links,
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
    gap: 6px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .navbar.menu-open .nav-links a,
  .nav-links.active a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1.02rem;
    font-weight: 600;
    color: #0f172a;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
  }

  .navbar.menu-open .nav-links a:hover,
  .navbar.menu-open .nav-links a:active,
  .nav-links.active a:active {
    background: #eff6ff;
    color: #2563eb;
  }

  .nav-links a.active::after {
    bottom: 6px;
    left: 16px;
    width: 24px;
  }
}

@media (max-width: 768px) {

  .section {
    padding: 38px 0 !important;
  }

  .section-header {
    margin-bottom: 22px !important;
  }

  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .hero-section {
    position: relative;
    min-height: auto !important;
    padding: 72px 0 28px !important;
    background: #090e1a;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .hero-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    display: block !important;
  }

  /* En móvil eliminamos la foto de background para evitar que el texto tape la cara */
  .hero-bg-photo {
    display: none !important;
  }

  .hero-bg-scrim {
    display: none !important;
  }

  /* Landing hero con suficiente espacio bajo navbar fija */
  .landing-hero {
    padding-top: 75px !important;
    padding-bottom: 24px !important;
  }

  .landing-hero-container {
    display: flex !important;
    flex-direction: column !important;
    text-align: left;
    gap: 16px !important;
    padding: 0 16px !important;
  }

  .landing-hero-content {
    display: contents !important;
  }

  

  .landing-hero-title {
    order: 2;
    font-size: clamp(1.65rem, 6.2vw, 2.15rem) !important;
    line-height: 1.16 !important;
    margin-bottom: 10px !important;
  }

  .landing-hero-desc {
    order: 3;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin: 0 0 14px !important;
  }

  .hero-spec-card,
  .landing-hero-trust-card {
    order: 4 !important;
    padding: 16px 14px !important;
    gap: 12px !important;
    border-radius: 14px !important;
    margin-top: 0 !important;
    width: 100% !important;
  }

  .landing-hero-actions {
    order: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    justify-content: flex-start;
    gap: 10px !important;
    margin-top: 14px !important;
    margin-bottom: 4px;
  }

  .landing-hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .spec-items-list {
    gap: 8px !important;
  }

  .spec-item {
    gap: 10px !important;
    padding: 3px 0 !important;
  }

  .hero-bg-glow {
    position: absolute;
    top: 10%;
    right: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.10) 50%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    display: block !important;
  }

  /* Propuesta móvil: H1 primero, texto segundo, showcase de Cristina y CTAs limpios */
  .hero-mobile-visual {
    display: block !important;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 20px;
    order: 3;
  }

  .hero-mobile-card {
    position: relative;
    width: 100%;
    height: clamp(175px, 36vw, 192px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: #0d1527;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.65), 0 0 20px rgba(37, 99, 235, 0.15);
  }

  .hero-mobile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 86% 15%;
    transform: scale(1.06);
    transform-origin: 86% 16%;
    display: block;
  }

  .hero-mobile-card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
      linear-gradient(90deg, rgba(9, 14, 26, 0.97) 0%, rgba(9, 14, 26, 0.92) 54%, rgba(9, 14, 26, 0.35) 74%, transparent 92%),
      linear-gradient(180deg, rgba(9, 14, 26, 0.18) 0%, transparent 40%, rgba(9, 14, 26, 0.60) 100%);
  }

  /* Integración de los 4 elementos con mayor separación hacia la derecha y encuadre compacto */
  .hero-mobile-card-stats {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: clamp(62%, 65%, 70%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(8px, 2vw, 12px) clamp(14px, 3.5vw, 24px);
    align-content: center;
    padding: clamp(10px, 2.5vw, 16px) clamp(10px, 2.5vw, 16px) clamp(10px, 2.5vw, 16px) clamp(18px, 4.5vw, 28px);
    box-sizing: border-box;
    z-index: 2;
  }

  .card-stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .card-stat-num {
    font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
  }

  .card-stat-igaming {
    font-size: clamp(1.02rem, 2.8vw, 1.18rem);
    letter-spacing: -0.01em;
  }

  .card-stat-desc {
    font-size: clamp(0.62rem, 1.6vw, 0.70rem);
    line-height: 1.25;
    color: #cbd5e1;
    font-weight: 500;
  }

  /* CTAs en móvil: orden natural, ancho completo y fáciles de pulsar */
  .hero-ctas {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
    order: 4;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 13px 20px;
  }

  .hero-title {
    order: 1;
  }

  .hero-subtitle {
    order: 2;
  }

  /* Las métricas de confianza ya están integradas dentro del widget */
  .hero-trust {
    display: none !important;
  }

  .hero-badge-pill {
    order: 5;
  }

  .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-content {
    max-width: 92%;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.22;
    margin-bottom: 14px;
    text-align: left;
  }

  .hero-br {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 85%;
    text-align: left;
  }

  /* Widget de métricas ultra-compacto: altura reducida de ~380px a ~80px */
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin-top: 20px;
    max-width: 100%;
  }

  .hero-trust .trust-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .hero-trust .stat-num {
    font-size: 1.25rem;
    margin-bottom: 0;
    line-height: 1;
    flex-shrink: 0;
  }

  .hero-trust .stat-desc {
    font-size: 0.70rem;
    line-height: 1.2;
    color: #94a3b8;
  }

  .hero-trust .trust-divider {
    display: none;
  }

  .hero-badge-pill {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    padding: 16px 20px;
    gap: 12px;
    text-align: center;
  }

  .hero-badge-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    font-size: 0.8rem;
  }

  .hero-status-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 600;
  }

  .hero-status-sep {
    display: none;
  }

  .hero-status-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 400;
  }

  .hero-badge-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-pill-link {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  .trust-divider {
    display: none;
  }

  

  

  

  

  .form-row,
  .form-row-3col {
    grid-template-columns: 1fr;
  }

  

  .author-title {
    font-size: 1.55rem;
  }

  .contact-box {
    padding: 36px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    justify-content: flex-start;
  }

  .footer-col {
    width: 100%;
    gap: 8px;
  }

  .footer-col a {
    color: #cbd5e1;
    display: inline-block;
    padding: 6px 0;
    min-height: 38px;
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .footer-col a:hover {
    color: #38bdf8;
  }

  

  

  /* Formulario móvil optimizado: sin zoom automático en iOS y con zona táctil 48px */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: 12px 14px;
    -webkit-appearance: none;
    appearance: none;
  }

  .form-group textarea {
    min-height: 120px;
  }

  /* Botones con área táctil mínima de 48px según WCAG y sin desbordamiento */
  .btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  .btn-large {
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .form-submit {
    width: 100%;
  }

  .form-submit .btn,
  .form-submit button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    padding: 14px 18px !important;
    font-size: 0.94rem !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
    padding: 0 4px;
    margin-top: 14px;
  }

  .disclaimer-icon {
    flex-shrink: 0;
  }

  .hero-pill-link {
    padding: 6px 12px;
    font-size: 0.78rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .container {
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  

  

  

  

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 18px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 18px;
  }
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQS ACCORDION)
   ========================================================================== */

.faqs-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.faqs-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: #bfdbfe;
}

.faq-item.active {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.08);
}

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

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2563eb;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   SECCIÓN DE PRODUCTOS & PLANES ESTRATÉGICOS
   ========================================================================== */

.products-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 85px 0 95px;
}

.products-section .container {
  max-width: 1240px;
}

/* GRID DE PRODUCTOS: 3 CAJAS POR FILA (2 FILAS = 6 PRODUCTOS) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1240px;
  margin: 40px auto 0;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.09);
  border-color: #93c5fd;
}

/* Featured / Más Demandado */
.product-card.featured-product {
  border-color: #3b82f6;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  position: relative;
}

.product-card.featured-product::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 2px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-badge-wrap {
  min-height: 28px;
  margin-bottom: 12px;
}

.product-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.product-category-tag svg {
  flex-shrink: 0;
}

.product-category-tag.ai-tag {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.product-category-tag.ai-tag svg {
  color: #16a34a;
}

.product-category-tag.enterprise-tag {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

.product-category-tag.enterprise-tag svg {
  color: #7c3aed;
}

.product-category-tag.audit-tag {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.product-category-tag.audit-tag svg {
  color: #ea580c;
}

.product-category-tag.app-tag {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

.product-category-tag.app-tag svg {
  color: #0d9488;
}

.product-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.product-featured-badge svg {
  color: #fbbf24;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.25;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.product-audience {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 48px;
}

/* CAJA DE PRECIOS ESTRUCTURADA: SETUP INICIAL + CUOTA MENSUAL */
.product-price-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px 12px;
  margin-bottom: 18px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card.featured-product .product-price-box {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-from-prefix {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card.featured-product .price-from-prefix {
  color: #1e40af;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2563eb;
}

.substep-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 17px;
  padding: 0 4px;
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 0.63rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.product-card.featured-product .substep-badge {
  background: #ffffff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* TOTAL PRICE HERO BOX AT TOP */
.price-total-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 3px;
}

.product-card.featured-product .price-total-badge {
  color: #1d4ed8;
}

.price-breakdown-subtext {
  font-size: 0.73rem;
  color: #475569;
  line-height: 1.35;
  margin-top: 6px;
  text-align: center;
}

.price-breakdown-subtext strong {
  color: #0f172a;
}

.product-card.featured-product .price-breakdown-subtext strong {
  color: #1e3a8a;
}

/* TOTAL INVESTMENT SUMMARY WIDGET */
.total-investment-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.total-investment-info {
  flex: 1 1 340px;
  min-width: 280px;
}

.total-investment-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.total-investment-action .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .total-investment-summary {
    padding: 20px 16px !important;
    margin-top: 12px !important;
  }

  .total-investment-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .total-investment-info {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .total-investment-action {
    flex: 0 1 auto !important;
    width: 100% !important;
  }

  .total-investment-action .btn {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  #proceso-fases {
    padding: 28px 0 20px !important;
  }

  #contacto-plan {
    padding: 20px 0 36px !important;
  }

  #contacto-plan .glass-panel {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 640px) {
  .glass-panel {
    padding: 18px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
  }

  .phase-price-pill {
    white-space: normal !important;
    text-align: center;
    line-height: 1.35;
    display: inline-block;
  }
}

.phase-num-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 5px;
}

.product-card.featured-product .phase-num-tag {
  background: #2563eb;
}

.phase-price-pill {
  font-size: 0.69rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.product-card.featured-product .phase-price-pill {
  background: #ffffff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* COMPACT 3-PHASE SUMMARY CARDS IN HOME */
.product-summary-phases {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 13px;
  transition: all 0.2s ease;
}

.product-card.featured-product .product-summary-phases {
  background: rgba(255, 255, 255, 0.9);
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.04);
}

.summary-phase-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-phase-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.product-card.featured-product .summary-phase-row {
  border-bottom-color: #dbeafe;
}

.summary-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.summary-phase-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.77rem;
  font-weight: 700;
  color: #0f172a;
}

.phase-mini-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.product-card.featured-product .phase-mini-tag {
  background: #2563eb;
}

.summary-phase-desc {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.42;
  margin: 0;
  padding-left: 25px;
}

/* CTA BUTTON */
.product-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 11px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-cta .btn-landing-link {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.product-cta .btn-landing-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

.product-cta .btn-landing-link svg {
  transition: transform 0.2s ease;
}

.product-cta .btn-landing-link:hover svg {
  transform: translateX(3px);
}

.product-cta .btn-plan-select-secondary {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.80rem;
  padding: 8px 12px;
  font-weight: 500;
}

.product-cta .btn-plan-select-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: none;
  box-shadow: none;
}

.product-cta .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.product-cta .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

/* GENERIC PRODUCT GUARANTEES (ACROSS ALL PLANS) */
.pricing-footer-guarantees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 36px auto 0;
}

.pricing-guarantee-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.05);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-guarantee-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.guarantee-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-icon-wrap.icon-direct {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.guarantee-icon-wrap.icon-scope {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.guarantee-content {
  flex-grow: 1;
}

.guarantee-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.guarantee-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1180px) and (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 36px auto 0;
  }
  
  .pricing-footer-guarantees {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 16px;
    margin-top: 36px;
  }
  
  .pricing-guarantee-card {
    padding: 18px;
    gap: 14px;
  }
}

/* Contact dropdown highlight animation when selected from plan */
@keyframes selectGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); border-color: #2563eb; }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.25); border-color: #2563eb; }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Responsiveness */

.service-highlight-pulse {
  animation: selectGlow 1.8s ease-in-out;
  border-color: #2563eb !important;
}

/* ==========================================================================
   LANDING HERO HEADER (CABECERA PREMIUM PARA PÁGINAS SATÉLITE)
   ========================================================================== */

.landing-hero {
  position: relative;
  padding: 105px 0 42px;
  background: #090e1a;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero .hero-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.landing-hero .hero-bg-glow {
  position: absolute;
  top: 10%;
  right: max(0px, calc((100vw - 1280px) / 2));
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
}

.landing-hero .hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero-bg-cristina-editorial.webp?v=hero_natural_42yo_v2');
  background-repeat: no-repeat;
  background-position: right 15%;
  background-size: cover;
  opacity: 0.12;
  filter: grayscale(80%) contrast(1.2);
  mix-blend-mode: luminosity;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.landing-hero .hero-bg-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    linear-gradient(90deg, #090e1a 0%, rgba(9, 14, 26, 0.95) 50%, rgba(9, 14, 26, 0.8) 100%),
    linear-gradient(180deg, rgba(9, 14, 26, 0.5) 0%, transparent 25%, #090e1a 100%);
}

.landing-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
}

.landing-hero-content {
  flex: 1 1 600px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
}

/* TARJETA FLOTANTE DE GARANTÍA DIRECTA */
.landing-hero-trust-card {
  flex: 0 0 420px;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.18);
  border-radius: 20px;
  padding: 26px 26px 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.landing-hero-trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 28px 55px -10px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.2);
}

.landing-hero-trust-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
}

.trust-card-contact-link {
  font-size: 0.76rem;
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  transition: all 0.22s ease;
}

.trust-card-contact-link:hover {
  color: #ffffff;
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateX(3px);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  text-decoration: none;
}

.tech-badge-cyan {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.tech-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* FICHA RESUMEN DEL SERVICIO EN HERO (ELEGANTE, LIMPIA Y SIN SATURACIÓN) */
.hero-spec-card {
  flex: 0 0 500px;
  width: 100%;
  max-width: 530px;
  background: linear-gradient(145deg, rgba(13, 20, 36, 0.95) 0%, rgba(20, 30, 52, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.15);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 65px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.18);
}

.hero-spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
}

.spec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.spec-plan-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.spec-plan-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
  flex-wrap: wrap;
  white-space: normal;
}

.spec-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: badge-pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

.spec-delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2.5px 8px;
  border-radius: 6px;
  margin-left: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.spec-delivery-tag svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.spec-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.spec-price-number {
  font-size: 1.48rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1;
  white-space: nowrap;
}

.spec-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.spec-items-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spec-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item-content strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.spec-item-content span {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

.spec-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
}

.spec-avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.spec-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), 0 8px 18px rgba(0, 0, 0, 0.4);
  display: block;
}

.spec-avatar-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2.5px solid #0d1424;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.btn-spec-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  color: #ffffff !important;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-spec-cta:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(56, 189, 248, 0.25) 100%);
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
  color: #ffffff !important;
}

.btn-spec-cta-text {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-align: left;
  white-space: nowrap;
}

.btn-spec-cta svg {
  flex-shrink: 0;
  color: #38bdf8;
  transition: transform 0.25s ease, color 0.25s ease;
}

.btn-spec-cta:hover svg {
  transform: translateX(3px);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .landing-hero-container {
    flex-direction: column;
    text-align: left;
    gap: 24px;
  }
  .landing-hero-content {
    flex: 0 1 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-spec-card,
  .landing-hero-trust-card {
    order: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .landing-hero-actions {
    order: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: 14px !important;
  }
  .landing-hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 580px) {
  .hero-spec-card {
    padding: 16px 14px !important;
  }
  .spec-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .spec-price-wrap {
    align-items: flex-start;
  }
  .spec-plan-name {
    font-size: 0.98rem;
    white-space: normal;
    word-break: break-word;
  }
}

.landing-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.landing-hero-title .text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-desc {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 0 28px;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

/* BREADCRUMB EN ZONA BLANCA (SIN CORTE DE BACKGROUND) */
.landing-breadcrumb-bar {
  background: transparent;
  padding: 24px 0 8px 0;
  width: 100%;
  position: relative;
  z-index: 5;
}

.landing-bc-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.landing-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
  padding: 8px 20px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.landing-breadcrumb:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.landing-breadcrumb a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-breadcrumb a:hover {
  color: #0284c7;
}

.landing-breadcrumb span.bc-sep,
.landing-breadcrumb span:not([style]):not(.bc-current) {
  color: #94a3b8;
  font-size: 0.70rem;
  user-select: none;
}

.landing-breadcrumb .bc-current,
.landing-breadcrumb span[style*="color"] {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  .landing-breadcrumb-bar {
    padding: 16px 0 8px 0;
  }
  .landing-breadcrumb {
    font-size: 0.74rem;
    line-height: 1.55;
    padding: 10px 20px;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 6px 8px;
    background: #ffffff;
  }
}

/* CARTA PERSONAL CONTEMPORÁNEA */
.handwritten-letter-card {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 50px 38px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
}

.handwritten-letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #818cf8);
}

.handwritten-body {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.62;
  color: #1e293b;
  margin-bottom: 24px;
  letter-spacing: 0.015em;
}

.handwritten-body p {
  margin: 0 0 16px;
}

.handwritten-body strong {
  color: #0f172a;
  font-weight: 700;
  background: rgba(224, 242, 254, 0.7);
  padding: 1px 6px;
  border-radius: 4px;
}

/* PIE DE CARTA REFINADO */
.letter-footer-block {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.letter-signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.signature-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signature-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.signature-name {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 2.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  display: block;
  letter-spacing: 0.01em;
  margin: 0 0 0 -3px;
}

.signature-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.2;
}

.letter-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.90rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.letter-story-btn svg {
  color: #2563eb;
  transition: transform 0.2s ease;
}

.letter-story-btn:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.letter-story-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .letter-signature-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .signature-actions {
    margin-left: 0;
    width: auto;
  }
  .letter-story-btn {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .handwritten-letter-card {
    padding: 28px 22px 24px;
  }
  .handwritten-body {
    font-size: 1.34rem;
    line-height: 1.58;
  }
  .signature-name {
    font-size: 2.35rem;
    margin: 0 0 0 -2px;
  }
  .signature-role {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }
}

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL: FASES DE PRODUCTO Y CARTA COLAPSABLES
   ========================================================================== */

/* En escritorio (> 768px): Todo visible por defecto, botones de toggle ocultos */
@media (min-width: 769px) {
  .btn-toggle-phases-mobile {
    display: none !important;
  }
  .product-summary-phases {
    display: flex !important;
  }
  .btn-letter-expand {
    display: none !important;
  }
  .handwritten-collapsed-wrapper {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* En móvil (<= 768px): Colapsado inteligente para reducir altura de scroll */
@media (max-width: 768px) {
  /* 1. Botón de fases en tarjetas */
  .btn-toggle-phases-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    margin: 14px 0 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-toggle-phases-mobile:hover,
  .btn-toggle-phases-mobile:active {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
  }

  .product-card.featured-product .btn-toggle-phases-mobile {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
  }

  .btn-toggle-phases-mobile svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .btn-toggle-phases-mobile.is-open svg {
    transform: rotate(180deg);
  }

  .product-summary-phases {
    display: none;
    margin-top: 0;
  }

  .product-summary-phases.is-open {
    display: flex;
    animation: phaseFadeIn 0.25s ease forwards;
  }

  @keyframes phaseFadeIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 2. Carta colapsable */
  .handwritten-collapsed-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }

  .handwritten-collapsed-wrapper.is-open {
    max-height: 1500px;
    opacity: 1;
    margin-top: 8px;
  }

  .btn-letter-expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
  }

  .btn-letter-expand:hover,
  .btn-letter-expand:active {
    background: #f8fafc;
    border-color: #94a3b8;
  }

  .btn-letter-expand svg {
    transition: transform 0.25s ease;
  }

  .btn-letter-expand.is-open svg {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   SERVICIOS PAGE - COMPARATIVA DE INVERSIÓN & FAQS ESPECÍFICAS
   ========================================================================== */

.investment-comparison-card {
  background: linear-gradient(145deg, #0b1120 0%, #172554 45%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 40px 36px;
  color: #ffffff;
  margin-bottom: 48px;
  box-shadow: 0 24px 60px -15px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.investment-comparison-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8, #34d399);
}

.comparison-header {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

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

.comparison-header h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: #ffffff;
  margin: 12px 0;
  line-height: 1.25;
}

.comparison-header p {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.6;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comparison-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.comparison-col:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.comparison-col.highlight-col {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 40px -10px rgba(2, 132, 199, 0.35);
  position: relative;
}

.comparison-col-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.comparison-col-badge.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison-col-badge.alert {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-col-badge.success {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.comparison-col h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  line-height: 1.3;
}

.comparison-col p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 18px;
}

.comparison-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.84rem;
}

.comparison-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  color: #94a3b8;
}

.comparison-points-list li strong {
  color: #f1f5f9;
}

.comparison-col.highlight-col .comparison-points-list li {
  color: #e2e8f0;
}

.comparison-points-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-footer-callout {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.comparison-footer-callout p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.comparison-footer-callout strong {
  color: #38bdf8;
}

@media (max-width: 992px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .investment-comparison-card {
    padding: 28px 20px;
  }

  .comparison-header h3 {
    font-size: 1.5rem;
  }
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  margin: 28px 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 50%, #93c5fd 100%);
}

.timeline-card {
  position: relative;
  padding-left: 54px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  z-index: 1;
}

.timeline-card-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card-content:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.1);
}

.timeline-era-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  line-height: 1.4;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: 10px;
}

.timeline-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.timeline-card-desc {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .about-principles-grid {
    grid-template-columns: 1fr;
  }
}

.about-principle-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, #2563eb);
}

.about-principle-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
}

.about-principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.about-principle-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.about-principle-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.18);
  margin-bottom: 0;
}

.about-principle-title {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  line-height: 1.35;
}

.about-principle-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.about-principle-badge {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-skills-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.about-skill-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
}

.about-skill-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-skill-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
  

  

  .about-skills-matrix {
    grid-template-columns: 1fr;
  }

  /* Timeline en móvil: mayor holgura y badges proporcionales */
  .timeline-card {
    padding-left: 36px;
  }

  .timeline-list::before {
    left: 10px;
  }

  .timeline-dot {
    left: 2px;
    width: 16px;
    height: 16px;
    top: 16px;
  }

  .timeline-card-content {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .timeline-era-badge {
    padding: 7px 14px;
    font-size: 0.72rem;
    line-height: 1.45;
    border-radius: 10px;
    margin-bottom: 10px;
  }
}

