/* ==========================================================================
   AnalizaContratos - Main Stylesheet (Vanilla Modern CSS)
   ========================================================================== */

:root {
  /* Paleta Base Oscura (SaaS Dark Mode) */
  --bg-root: #09090b;
  --bg-surface-1: #101014;
  --bg-surface-2: #18181b;
  --bg-surface-3: #27272a;
  --bg-surface-glass: rgba(18, 18, 22, 0.75);
  --bg-surface-glass-border: rgba(255, 255, 255, 0.08);

  /* Colores de Marca y Gradientes */
  --brand-cyan: #22d3ee;
  --brand-sky: #0284c7;
  --brand-indigo: #6366f1;
  --brand-violet: #a855f7;
  --brand-purple: #9333ea;

  --grad-brand: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
  --grad-glow: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(168, 85, 247, 0.15) 100%);
  --grad-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  --grad-btn-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #7e22ce 100%);

  /* Semáforo de Riesgos */
  --risk-critical: #f43f5e;
  --risk-critical-bg: rgba(244, 63, 94, 0.1);
  --risk-critical-border: rgba(244, 63, 94, 0.3);

  --risk-warning: #f59e0b;
  --risk-warning-bg: rgba(245, 158, 11, 0.1);
  --risk-warning-border: rgba(245, 158, 11, 0.3);

  --risk-safe: #10b981;
  --risk-safe-bg: rgba(16, 185, 129, 0.1);
  --risk-safe-border: rgba(16, 185, 129, 0.3);

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;

  /* Bordes y Sombras */
  --border-color: #27272a;
  --border-subtle: #1f1f23;
  --border-glow: rgba(99, 102, 241, 0.4);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.25);

  /* Espaciado & Contenedor */
  --container-max-width: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Contenedores y Tipografía Global
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.text-gradient {
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  position: relative;
  scroll-margin-top: 84px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  margin-block-end: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-block-end: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-btn);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--grad-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease;
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-brand img,
.site-brand svg {
  height: 38px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Menú móvil drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-block-start: clamp(3rem, 6vw, 5.5rem);
  padding-block-end: clamp(4rem, 7vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero-glow-ambient {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(34, 211, 238, 0.12) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-block-end: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-block-end: 2.25rem;
  max-width: 740px;
  margin-inline: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block-end: 2.5rem;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block-start: 1rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge-item svg {
  color: var(--brand-cyan);
}

/* ==========================================================================
   Sección de Demo en Vídeo de la Plataforma
   ========================================================================== */
.demo-video-section {
  position: relative;
  overflow: hidden;
}

.demo-video-wrapper {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
}

.video-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.12) 50%, transparent 75%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.video-window-frame {
  position: relative;
  z-index: 1;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05), var(--shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-window-frame:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.25);
}

.video-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(18, 18, 23, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.window-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.video-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  animation: pulseGlow 1.5s infinite;
}

.video-player-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.demo-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.video-play-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play-overlay-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-violet));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.play-btn-circle svg {
  margin-left: 4px;
}

.play-btn-ripple {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
  animation: pulseGlow 2s infinite ease-out;
  z-index: 1;
}

.play-btn-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
}

.video-features-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .video-features-row {
    grid-template-columns: 1fr;
  }
}

.video-feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.video-feature-pill:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.feature-pill-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.video-feature-pill strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.video-feature-pill span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.video-cta-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* ==========================================================================
   Características (Features Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-description {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Rigor Legal & RAG (Grounding)
   ========================================================================== */
.rag-section {
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
}

.rag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.rag-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.rag-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rag-list-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--risk-safe-border);
  color: var(--risk-safe);
  display: flex;
  align-items: center;
  justify-content: center;
  shrink: 0;
  margin-top: 0.1rem;
}

.rag-interactive-visual {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.rag-flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-block-end: 0.75rem;
}

.rag-flow-arrow {
  text-align: center;
  color: var(--brand-indigo);
  margin-block: 0.25rem;
  font-size: 1.25rem;
}

/* ==========================================================================
   Calculadora Interactiva de Ahorro ROI
   ========================================================================== */
.calc-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

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

.calc-slider-group {
  margin-block-end: 2rem;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-slider-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

input[type="range"].calc-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-surface-3);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-indigo);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"].calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results-box {
  background: var(--bg-surface-2);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.calc-result-metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.calc-result-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-primary);
}

.calc-roi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--risk-safe-border);
  color: var(--risk-safe);
  font-weight: 800;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
}

/* ==========================================================================
   Planes y Precios (Pricing)
   ========================================================================== */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-block-end: 3.5rem;
}

.pricing-toggle-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.toggle-option {
  padding: 0.45rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.toggle-option.is-active {
  background: var(--brand-indigo);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.badge-discount {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--brand-cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.is-popular {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-surface-1) 100%);
  box-shadow: 0 0 35px -5px rgba(99, 102, 241, 0.3);
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .pricing-card.is-popular {
    transform: none;
  }
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-btn);
  color: #ffffff;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-block-end: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 40px;
  margin-block-end: 1.5rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-block-end: 1.75rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-block-end: 2rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  color: var(--risk-safe);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ Accordion)
   ========================================================================== */
.faq-wrap {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-question-btn {
  width: 100%;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-cyan);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

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

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding-block-end: 1.35rem;
}

.faq-answer p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Banner Final CTA
   ========================================================================== */
.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%), var(--bg-surface-1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cta-banner-title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: #ffffff;
  margin-block-end: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: 2.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060608;
  border-top: 1px solid var(--border-color);
  padding-block: 4.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-block-end: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-block-end: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block-start: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-bottom-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.footer-bottom-legal-links a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-desktop,
  .nav-actions .btn-login-desktop {
    display: none;
  }
  .btn-menu-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Cookie Consent Banner & Granular Configuration Modal (AEPD / RGPD)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 9990;
  pointer-events: none;
  animation: cookieFadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.cookie-banner .container {
  pointer-events: auto;
}

.cookie-banner-inner {
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 245, 160, 0.1);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 740px;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.cookie-banner-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-text strong {
  color: #ffffff;
}

.cookie-link {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.cookie-link:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Cookie Configuration Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-card {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cookie-modal-overlay.is-active .cookie-modal-card {
  transform: translateY(0) scale(1);
}

.cookie-modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(18, 18, 24, 0.6);
}

.cookie-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.cookie-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.cookie-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 0;
}

.cookie-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.cookie-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie-category-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  transition: border-color 0.2s ease;
}

.cookie-category-row:hover {
  border-color: rgba(0, 245, 160, 0.25);
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.cookie-category-title-row strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.cookie-badge-required {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 245, 160, 0.15);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 245, 160, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.cookie-badge-optional {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.cookie-category-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Switch Toggle */
.cookie-switch-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-switch-label {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.25s ease;
  border-radius: 24px;
}

.cookie-switch-label::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cookie-switch-input:checked + .cookie-switch-label {
  background-color: var(--brand-cyan, #00f5a0);
}

.cookie-switch-input:checked + .cookie-switch-label::before {
  transform: translateX(20px);
  background-color: #0b0b10;
}

.cookie-switch-input:disabled + .cookie-switch-label {
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(14, 14, 18, 0.8);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0.75rem;
  }
  .cookie-banner-inner {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner-actions .btn {
    flex: 1;
    min-width: 130px;
    text-align: center;
    justify-content: center;
  }
  .cookie-modal-card {
    max-height: 94vh;
  }
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   Legal Document Master Template Styles
   ========================================================================== */
.legal-page-wrapper {
  position: relative;
  padding-top: calc(var(--header-height, 72px) + 3.5rem);
  padding-bottom: 6rem;
  min-height: 100vh;
  overflow: hidden;
}

.legal-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.07) 0%, rgba(0, 217, 245, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.legal-document-card {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.legal-back-nav {
  margin-bottom: 2rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.legal-back-link:hover {
  transform: translateX(-4px);
  opacity: 0.9;
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}

.legal-meta-item svg {
  color: var(--brand-cyan);
}

.legal-body-content {
  color: #c4c4d0;
  font-size: 0.975rem;
  line-height: 1.85;
}

.legal-body-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--brand-cyan);
  padding-left: 0.85rem;
  letter-spacing: -0.01em;
}

.legal-body-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-body-content p {
  margin-bottom: 1.25rem;
}

.legal-body-content strong {
  color: #ffffff;
}

.legal-body-content ul,
.legal-body-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-body-content li {
  margin-bottom: 0.5rem;
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: rgba(18, 18, 24, 0.4);
}

.legal-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

.legal-alert-box {
  background: rgba(0, 245, 160, 0.04);
  border: 1px solid rgba(0, 245, 160, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-primary);
}

.legal-alert-box strong {
  color: var(--brand-cyan);
}

.legal-document-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-support-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.legal-support-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .legal-document-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
  .legal-meta-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .legal-support-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
