/* ==========================================================================
   Servicios Informáticos LT - Main Website Stylesheet (Dark Mode Edition)
   Modern, Sleek, Eye-friendly, Flat Design & Ultra-fast
   ========================================================================== */

:root {
  /* Dark Mode Palette */
  --bg-body: #0B0F19;
  --bg-surface: #111827;
  --bg-card: #151D30;
  --bg-card-hover: #1C263F;
  --bg-card-elevated: #1E293B;
  --bg-accent-subtle: rgba(37, 99, 235, 0.12);

  /* Primary Accent & Glows */
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.3);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-primary: rgba(37, 99, 235, 0.5);

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-heading: #F8FAFC;
  --text-body: #94A3B8;
  --text-muted: #64748B;
  --text-highlight: #60A5FA;

  /* Accents */
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.2);

  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  overscroll-behavior-x: none;
  position: relative;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-white);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-heading);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--text-white);
  background-color: var(--bg-accent-subtle);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--bg-surface);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

.btn-dark:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--text-white);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Announcement Top Notice */
.top-notice {
  background-color: #060911;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.top-notice strong {
  color: var(--text-highlight);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* Prominent Dark-Mode Logo */
.nav-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
  margin: 0 24px;
}

.nav-link {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: var(--primary-light);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

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

.mobile-only-link,
.nav-menu-cta {
  display: none !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-heading);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 75px 0 55px 0;
  background: radial-gradient(circle at 80% 15%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 85%, rgba(30, 41, 59, 0.25) 0%, transparent 45%),
              var(--bg-body);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: rgba(37, 99, 235, 0.16);
  color: #93C5FD;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-light);
  box-shadow: 0 0 8px var(--primary-light);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--primary-light);
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.35);
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-heading);
}

.trust-item svg {
  color: var(--primary-light);
}

/* Terminal Mockup Card */
.hero-visual {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--text-white);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #EF4444; }
.terminal-dots span:nth-child(2) { background: #F59E0B; }
.terminal-dots span:nth-child(3) { background: #10B981; }

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #86EFAC;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.visual-feature-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.visual-feature-box h4 {
  color: var(--text-white);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.visual-feature-box p {
  color: var(--text-body);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-bg-darker {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px auto;
}

.section-subtitle {
  color: var(--primary-light);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.15rem;
  margin-bottom: 14px;
  color: var(--text-heading);
}

.section-desc {
  color: var(--text-body);
  font-size: 1.02rem;
}

/* Service Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--bg-accent-subtle);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.pillar-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.pillar-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.pillar-specs {
  list-style: none;
  margin-bottom: 26px;
  flex-grow: 1;
}

.pillar-specs li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.pillar-specs li svg {
  color: var(--primary-light);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Pricing Section */
.pricing-section {
  padding: 85px 0;
  background-color: var(--bg-body);
}

.tabs-control {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.tabs-container {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 22px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.billing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.toggle-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

input:checked + .slider {
  background-color: var(--primary);
}

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

.badge-discount {
  background-color: rgba(16, 185, 129, 0.18);
  color: #86EFAC;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Segmented 4-Cycle Billing Control (1M, 3M, 6M, 1Y) */
.billing-cycle-control {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.cycle-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  justify-content: center;
}

.cycle-pill-btn {
  background: transparent;
  border: none;
  padding: 9px 18px;
  font-family: var(--font-family);
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cycle-pill-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.cycle-pill-btn.active {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.cycle-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  color: #93C5FD;
  letter-spacing: 0.2px;
}

.cycle-pill-btn.active .cycle-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cycle-badge.highlight {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.cycle-pill-btn.active .cycle-badge.highlight {
  background: #10B981;
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #18233C 0%, #111827 100%);
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.28);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.card-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.card-plan-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 18px;
}

.card-price-box {
  margin-bottom: 20px;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-body);
  vertical-align: top;
}

.price-amount {
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-billing-note {
  font-size: 0.78rem;
  color: var(--primary-light);
  margin-top: 4px;
}

.card-cta-top {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.card-cta-top svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.card-cta-top:hover svg {
  transform: translateX(3px);
}

.card-features-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
}

.card-features-divider::before,
.card-features-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--border-subtle);
}

.card-features {
  list-style: none;
  margin-bottom: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease;
  min-height: 32px;
}

.card-features li.feature-item:last-child {
  border-bottom: none;
}

.card-features .feature-icon {
  margin-top: 2px;
  flex-shrink: 0;
  display: inline-flex;
}

.card-features li.feature-item.included .feature-icon {
  color: var(--success);
}

.card-features li.feature-item.excluded {
  opacity: 0.45;
}

.card-features li.feature-item.excluded .feature-icon {
  color: var(--text-muted);
}

.feature-text {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.feature-label {
  color: var(--text-heading);
  font-weight: 500;
}

.feature-item.excluded .feature-label {
  color: var(--text-muted);
}

.feature-val {
  color: var(--text-white);
  font-weight: 700;
}

.feature-val.val-highlight {
  color: #93C5FD;
}

.feature-item.excluded .feature-val {
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.badge-exclusive {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(37, 99, 235, 0.22);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.45);
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 4px;
  white-space: nowrap;
}

.feature-item.is-exclusive {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

/* Reseller Banner */
.reseller-banner {
  background: linear-gradient(135deg, #131C2E 0%, #0B101D 100%);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  color: var(--text-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

.reseller-content h3 {
  color: var(--text-white);
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.reseller-content p {
  color: var(--text-body);
  font-size: 0.94rem;
  max-width: 680px;
}

/* ==========================================================================
   ADAPTIVE SLIDING STEP CARDS / CAROUSEL (Eliminación de Espacio en Blanco)
   ========================================================================== */
.slider-wrapper {
  position: relative;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

/* Step Tabs Navigation */
.step-tabs-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.step-tab-btn {
  flex: 1;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-body);
  font-family: var(--font-family);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.step-tab-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.step-tab-btn.active {
  background: var(--bg-card-elevated);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.3);
}

.step-tab-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-light);
  display: block;
  margin-bottom: 2px;
}

.step-tab-title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Adaptive Height Container */
.slider-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  contain: paint;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  /* Altura fluida y adaptable sin estiramiento forzado */
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: height;
  touch-action: pan-y;
}

.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  /* IMPORTANTE: align-items flex-start evita que las tarjetas cortas se estiren a 1800px */
  align-items: flex-start;
  touch-action: pan-y;
  will-change: transform;
}

.slide-card {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 34px 38px;
  color: var(--text-body);
  overflow-wrap: break-word;
  word-break: break-word;
}

.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.slide-step-badge {
  background: var(--primary);
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.slide-title {
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.slide-desc {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 22px;
}

.card-subgrid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.card-subgrid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

/* Slider Navigation Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 4px;
}

.slider-arrow-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.06);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary-light);
  width: 26px;
  border-radius: 10px;
  box-shadow: 0 0 8px var(--primary-light);
}

/* Beginner-friendly Guide Step Boxes */
.step-instruction-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.step-instruction-card h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-instruction-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

.guide-step {
  display: flex;
  gap: 18px;
  margin: 20px 0;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.guide-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.guide-step-body {
  flex-grow: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.guide-screenshot {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin: 14px 0;
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
  background: #000;
  display: block;
}

.download-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-weight: 700;
  margin-right: 12px;
  margin-bottom: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.download-pill:hover {
  background-color: var(--primary-light);
  color: var(--text-white);
  transform: translateY(-2px);
}

.download-pill.secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-light);
  color: var(--text-white);
  box-shadow: none;
}

.download-pill.secondary:hover {
  background-color: var(--bg-card-hover);
}

/* Code Elements (Global Responsive Wrap) */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.35);
  color: #93C5FD;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}

/* Callouts */
.info-callout {
  background: rgba(37, 99, 235, 0.12);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #DBEAFE;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-callout strong {
  color: var(--text-white);
}

.info-callout code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93C5FD;
}

/* Guide CTA Support Strip */
.cta-strip {
  padding: 50px 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-strip h2 {
  font-size: 1.85rem;
  color: var(--text-white);
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.cta-strip p {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.cta-strip .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* FAQ in Dark Mode */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION & INTERACTIVE FORM (WhatsApp + Email)
   ========================================================================== */
.contact-section {
  padding: 85px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-info-title {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-channel-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  transform: translateX(4px);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.contact-channel-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 2px;
}

.contact-channel-info span,
.contact-channel-info a {
  font-size: 0.88rem;
  color: var(--text-highlight);
}

.contact-channel-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-badges-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.contact-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.contact-badge-item svg {
  color: var(--success);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-header h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 6px;
}

.contact-form-header p {
  font-size: 0.92rem;
  color: var(--text-body);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  color: var(--text-white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: #0F1626;
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-control option {
  background: var(--bg-card);
  color: var(--text-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.form-privacy-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #86EFAC;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  background-color: #080C15;
  color: var(--text-muted);
  padding: 65px 0 28px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 46px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 16px;
  color: var(--text-muted);
}

.footer-title {
  color: var(--text-heading);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-body);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  color: var(--text-highlight);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background-color: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .pillars-grid, .pricing-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 540px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .reseller-banner {
    flex-direction: column;
    text-align: center;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .slide-card {
    padding: 24px 18px;
  }
}

@media (max-width: 768px) {
  /* Navbar / Mobile Navigation */
  .navbar {
    padding: 12px 0;
  }
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .nav-brand img {
    height: 38px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
  }
  .mobile-toggle {
    display: block;
    margin-left: auto;
    z-index: 1001;
    padding: 8px 6px;
  }
  /* Crucial: Hide cramped buttons from the top bar */
  .nav-actions {
    display: none !important;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    gap: 12px;
    margin: 0;
    z-index: 9999;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 0.96rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .mobile-only-link {
    display: block !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 6px;
    padding-top: 6px;
  }
  .nav-menu-cta {
    display: none !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-bottom > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* Reseller Banner */
  .reseller-banner {
    padding: 28px 18px;
    gap: 20px;
  }
  .reseller-banner .btn {
    width: 100%;
    white-space: normal;
  }

  /* Guides Slider */
  .slider-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .step-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    scrollbar-width: thin;
    max-width: 100%;
    width: 100%;
  }
  .step-tab-btn {
    min-width: 135px;
    flex-shrink: 0;
  }
  .slider-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    contain: paint;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
  .slide-card {
    padding: 20px 14px;
    max-width: 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
  }
  .card-subgrid-2,
  .card-subgrid-3 {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .guide-step {
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }
  .guide-step-body {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .download-pill {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 0.90rem;
    line-height: 1.35;
  }
}

/* Specific Small Screen Optimizations (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .hero {
    padding: 45px 0 35px 0;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-trust {
    gap: 12px;
  }
  .hero-visual {
    padding: 20px 14px;
  }
  .section {
    padding: 55px 0;
  }
  .section-title {
    font-size: 1.65rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .section-header {
    margin-bottom: 30px;
  }

  /* Service Tabs on Mobile */
  .tabs-control {
    width: 100%;
    margin-bottom: 18px;
  }
  .tabs-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 4px;
    gap: 4px;
  }
  .tab-btn {
    flex: 1;
    padding: 10px 4px;
    font-size: 0.80rem;
    text-align: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
  }

  /* 4 Billing Cycle Pills into 2x2 Grid */
  .billing-cycle-control {
    width: 100%;
    margin-bottom: 26px;
  }
  .cycle-pill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding: 6px;
  }
  .cycle-pill-btn {
    width: 100%;
    padding: 8px 4px;
    font-size: 0.78rem;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
    text-align: center;
  }
  .cycle-badge {
    font-size: 0.62rem;
    padding: 2px 4px;
  }

  /* Pricing Cards on Mobile */
  .pricing-card {
    padding: 26px 16px;
  }
  .card-plan-name {
    font-size: 1.25rem;
  }
  .card-plan-desc {
    min-height: auto;
    margin-bottom: 14px;
  }
  .price-amount {
    font-size: 2.30rem;
  }
  .card-cta-top {
    font-size: 0.88rem;
    padding: 12px 10px;
  }

  /* Contact Section on Mobile */
  .contact-info-card,
  .contact-form-card {
    padding: 22px 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-channel-item {
    padding: 10px 8px;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-channel-info {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .contact-badges-row {
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
  }
  .contact-badge-item {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .form-control {
    font-size: 0.90rem;
    padding: 11px 12px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Legal and Error Cards */
  .legal-card {
    padding: 24px 16px;
  }
  .legal-section h2 {
    font-size: 1.15rem;
    flex-wrap: wrap;
  }
  .legal-header h1 {
    font-size: 1.75rem;
  }
  .error-card {
    padding: 32px 16px;
  }
  .error-code {
    font-size: 4.5rem;
  }
  .error-title {
    font-size: 1.35rem;
  }

  /* Floating WhatsApp */
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  /* Guide CTA on Mobile */
  .cta-strip {
    padding: 38px 0;
  }
  .cta-strip h2 {
    font-size: 1.45rem;
  }
  .cta-strip p {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   LEGAL PAGES & DOCUMENTATION STYLES (terminos.html & privacidad.html)
   ========================================================================== */
.legal-header {
  padding: 60px 0 35px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header h1 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.legal-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.legal-wrapper {
  padding: 55px 0 85px 0;
  background-color: var(--bg-body);
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  line-height: 1.75;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  color: var(--text-heading);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 span.section-num {
  color: var(--primary-light);
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.legal-section p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.legal-section ul {
  list-style: none;
  margin: 14px 0 16px 0;
  padding-left: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--text-heading);
}

.legal-section ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary-light);
  font-weight: bold;
}

.legal-callout {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--text-heading);
}

.legal-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #F59E0B;
}

.legal-callout strong {
  color: var(--text-white);
}

/* ==========================================================================
   404 ERROR PAGE STYLES
   ========================================================================== */
.error-page-wrapper {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 65%);
}

.error-card {
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(37, 99, 235, 0.2);
}

.error-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.error-code {
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: -0.05em;
  margin-bottom: 10px;
  text-shadow: 0 0 35px rgba(37, 99, 235, 0.5);
}

.error-title {
  font-size: 1.65rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 28px 20px;
  }
  .error-code {
    font-size: 4.8rem;
  }
}

