/* ==========================================================================
   SCRIPTLABEL — BRAND SYSTEM 1.0 (OFFICIAL STYLESHEET)
   Familias Oficiales: Bricolage Grotesque (Display/Body) & IBM Plex Mono (Code/UI)
   ========================================================================== */

:root {
  /* Paleta Primaria Oficial */
  --ink: #090D16;
  --paper: #FFFFFF;
  --surface: #F8FAFC;
  --surface-hover: #F1F5F9;
  --white: #FFFFFF;
  --muted: #475569;
  --muted-light: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  /* Tríada del Gradiente Solar */
  --blue: #2563EB;
  --red: #F21F4B;
  --yellow: #FBBF24;
  --green: #25D366;

  /* Tipografías Oficiales (Sin fuentes externas no autorizadas) */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --font: var(--font-display);
  --mono: var(--font-mono);

  /* Gradientes Oficiales */
  --gradient: linear-gradient(135deg, #2563EB 0%, #2563EB 15%, #F21F4B 50%, #FBBF24 95%, #FBBF24 100%);
  --gradient-text: linear-gradient(135deg, #2563EB 0%, #F21F4B 45%, #FBBF24 95%);

  /* Geometría y Sombras */
  --container: 1240px;
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --shadow-sm: 0 2px 8px rgba(9, 13, 22, .04);
  --shadow-md: 0 12px 32px -8px rgba(9, 13, 22, .08);
  --shadow-lg: 0 24px 50px -12px rgba(9, 13, 22, .14);
}

/* ==========================================================================
   RESET & CONFIGURACIÓN GLOBAL
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
::selection { background: var(--blue); color: #FFFFFF; }
::-moz-selection { background: var(--blue); color: #FFFFFF; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.section-space { padding: 96px 0; }
.sr-anchor { position: absolute; margin-top: -96px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   UTILIDADES & GRADIENTES ANIMADOS
   ========================================================================== */
.gradient-text,
.text-solar {
  background: linear-gradient(
    115deg,
    #2563EB 0%,
    #F21F4B 45%,
    #FBBF24 75%,
    #F21F4B 90%,
    #2563EB 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  max-width: 100%;
  animation: gradientTextFlow 8s ease-in-out infinite alternate;
  will-change: background-position;
}

@keyframes gradientTextFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text,
  .text-solar,
  .mini-headline em {
    animation: none !important;
    background-position: 0% 50% !important;
  }
}

/* Encabezados de sección */
.section-heading {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: end;
  margin-bottom: 52px;
}
.section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-kicker span { color: var(--red); }
.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--ink);
}
.section-aside {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Botones universales */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  user-select: none;
}
.button:active, .nav-cta:active { transform: scale(0.97) !important; }
.button-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 10px 24px -6px rgba(9, 13, 22, 0.2);
}
.button-dark:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}
.button-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.button-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN (STICKY 74PX)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 74px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease;
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.brand-logo-link:hover {
  transform: translateY(-1px);
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-left: auto;
}
.main-nav a { transition: color 0.18s ease; }
.main-nav a:not(.nav-cta):hover { color: var(--red); }
.nav-cta {
  font-weight: 700;
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================================
   HERO SECTION & 3D PARALLAX MOCKUP
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 68px);
  padding-bottom: 0;
  background-color: var(--paper);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, .06), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(242, 31, 75, .04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-kicker .kicker-index {
  color: var(--red);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--ink);
}

/* Wordmark scriptLabel en Hero: script (mono) + L con degradado interactivo */
.hero-brand {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: -0.025em;
  vertical-align: baseline;
  cursor: pointer;
}

.hero-brand .brand-mono {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.94em;
  letter-spacing: -0.035em;
  color: inherit;
  transition: opacity 0.2s ease;
}

.hero-brand .brand-l-flash {
  position: relative;
  display: inline-block;
  font-family: inherit;
  font-weight: 800;
  color: inherit; /* Color base negro en tema claro, blanco en tema oscuro */
}

/* Capa superpuesta con degradado oficial de alta saturación y contraste */
.hero-brand .brand-l-flash::after {
  content: 'L';
  position: absolute;
  left: 0;
  top: 0;
  width: 140%;
  height: 100%;
  /* Gradiente solar oficial */
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  /* Estado de reposo: oculto abajo */
  clip-path: inset(100% -40% 0% -10%);
  opacity: 0;
  transition: clip-path 0.44s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  will-change: clip-path, opacity;
}

/* Cuando el cursor entra, el degradado sube de abajo hacia arriba y se mantiene */
.hero-brand:hover:not(.is-exiting-up) .brand-l-flash::after,
.hero-brand.is-hovered:not(.is-exiting-up) .brand-l-flash::after {
  clip-path: inset(0% -40% 0% -10%);
  opacity: 1;
  transition: clip-path 0.44s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Al retirar el cursor, el degradado continúa subiendo y desaparece hacia arriba (no regresa) */
.hero-brand.is-exiting-up .brand-l-flash::after {
  clip-path: inset(0% -40% 100% -10%) !important;
  opacity: 0 !important;
  transition: clip-path 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
}

/* Reset silencioso en la base inferior sin transición tras desaparecer arriba */
.hero-brand.is-resetting .brand-l-flash::after {
  clip-path: inset(100% -40% 0% -10%) !important;
  opacity: 0 !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand .brand-l-flash::after {
    transition: none !important;
  }
}
.hero-lead {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}
.hero-scroll-btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white) !important;
  border: 1px solid var(--ink);
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.15);
}
.hero-scroll-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.hero-scroll-btn .btn-arrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.hero-scroll-btn:hover .btn-arrow {
  transform: translateY(2px);
}

.hero-wa-btn {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-wa-btn svg {
  color: #25D366;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.hero-wa-btn:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-2px);
}
.hero-wa-btn:hover svg {
  transform: scale(1.1);
}
.hero-wa-btn .btn-arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.hero-wa-btn:hover .btn-arrow {
  transform: translateY(2px);
}

/* Escenario Mockup 3D */
.hero-visual {
  min-height: 440px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.browser-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  width: min(400px, 92%);
  box-shadow: 0 20px 50px -10px rgba(9, 13, 22, .1), 0 0 0 1px rgba(9, 13, 22, .04);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: box-shadow .3s ease;
}
.browser-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow));
  z-index: 10;
}
.browser-top {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; }
.browser-dots i:first-child { background: var(--red); }
.browser-dots i:nth-child(2) { background: var(--yellow); }
.browser-dots i:nth-child(3) { background: var(--blue); }
.browser-url {
  margin-inline: auto;
  background: #FFFFFF;
  color: var(--muted);
  height: 24px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
}
.url-lock { font-size: 10px; color: var(--green); }
.browser-menu { color: var(--muted-light); letter-spacing: 2px; font-weight: 700; font-size: 13px; }

.browser-content {
  min-height: 290px;
  padding: 22px 24px 26px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.mini-nav { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink);
}
.mini-brand b {
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 3px;
  display: inline-block;
}
.mini-nav-lines { display: flex; gap: 4px; }
.mini-nav-lines i { width: 14px; height: 3px; background: var(--line-strong); border-radius: 2px; }

.mini-kicker {
  font-family: var(--mono);
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.mini-kicker span { width: 14px; height: 2px; background: var(--red); }
.mini-headline {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  position: relative;
  z-index: 2;
  color: var(--ink);
}
.mini-copy { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; position: relative; z-index: 2; }
.mini-copy i { display: block; height: 3px; width: 140px; max-width: 70%; background: #E2E8F0; border-radius: 3px; }
.mini-copy i:nth-child(2) { width: 110px; }
.mini-copy i:nth-child(3) { width: 85px; }

.mini-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
  border-radius: 30px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.mini-button span { color: var(--yellow); }

.mini-tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  background: #090D16;
  color: #FFFFFF;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(9, 13, 22, 0.18);
}

/* Chips flotantes satélite */
.floating-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -4px rgba(9, 13, 22, 0.08), 0 2px 6px rgba(9, 13, 22, 0.04);
  border-radius: 12px;
  padding: 10px 14px;
  position: absolute;
  z-index: 5;
  backdrop-filter: blur(12px);
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.floating-chip:active,
.floating-chip.is-dragging {
  cursor: grabbing;
  border-color: var(--blue);
  box-shadow: 0 22px 48px -6px rgba(9, 13, 22, 0.24), 0 8px 20px rgba(9, 13, 22, 0.12);
}
.floating-chip b { display: block; font-size: 11px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.floating-chip small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 1px; font-family: var(--mono); }
.chip-code { left: -18px; top: 68px; }
.chip-bracket {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.chip-gradient { right: -18px; bottom: 50px; }
.chip-gradient-bar {
  width: 5px;
  height: 32px;
  border-radius: 4px;
  background: var(--gradient);
}

/* Cinta Técnica */
.tech-Ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}
.ribbon-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.ribbon-sep { color: var(--red); font-weight: 700; }

/* ==========================================================================
   01 / SOLUCIONES DIGITALES & GUÍA DE DECISIÓN
   ========================================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.24s var(--ease);
  position: relative;
  overflow: hidden;
}
.guide-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.guide-card:hover, .guide-card.active-sol, .guide-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.guide-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.guide-card:hover::after, .guide-card.active-sol::after, .guide-card:focus-visible::after {
  opacity: 1;
}
.guide-card-header {
  margin-bottom: 18px;
}
.guide-situation {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.guide-card-header h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.guide-recommendation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}
.rec-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 4px;
}
.rec-name {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.guide-recommendation p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.guide-action {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  transition: color 0.18s ease;
}
.guide-action span {
  font-size: 14px;
  transition: transform 0.18s ease;
}
.guide-card:hover .guide-action, .guide-card.active-sol .guide-action {
  color: var(--blue);
}
.guide-card:hover .guide-action span, .guide-card.active-sol .guide-action span {
  transform: translateX(4px);
}

/* Pulso de Selección Visible y Contundente (1 solo ciclo tras llegar al elemento) */
@keyframes optionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.75);
    border-color: var(--blue);
    transform: scale(1.025);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
    border-color: var(--blue);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    transform: scale(1);
    border-color: var(--blue);
  }
}
.est-option.flash-selection,
.btn-quick-wa.flash-selection {
  animation: optionPulse 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1;
  border-color: var(--blue) !important;
  z-index: 3;
}

/* ==========================================================================
   02 / COTIZADOR INTERACTIVO EN TIEMPO REAL
   ========================================================================== */
.estimator-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}
.est-step-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.step-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.est-step-box h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 18px;
}
.est-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.est-option {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.est-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.est-option.active {
  background: var(--white);
  border: 2px solid var(--blue);
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.18);
}
.est-option strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.est-option span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.45;
}
.est-option-delivery {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  margin-top: 8px;
}

/* Complementos / Addons Chips */
.addons-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addon-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s ease;
  user-select: none;
}
.addon-chip i {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 10px;
  color: transparent;
  transition: all 0.18s ease;
}
.addon-chip:hover { border-color: var(--line-strong); }
.addon-chip.selected {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}
.addon-chip.selected i {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  font-weight: 800;
}

/* Chip de Actualización integrado como un complemento más */
.addon-chip-update {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
}
.addon-chip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
}
.addon-chip-freq {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.chip-freq-pill {
  padding: 3px 9px;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-freq-pill.active {
  background: var(--ink);
  color: #FFFFFF;
}

/* Consola Resumen Lateral Sticky */
.est-summary {
  position: sticky;
  top: 96px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #94A3B8;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}
.summary-project-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--white);
}
.summary-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--yellow);
  margin-bottom: 18px;
  display: inline-block;
  background: rgba(251, 191, 36, 0.12);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.summary-list {
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.summary-list li::before {
  content: "✓ ";
  color: var(--yellow);
  font-weight: 700;
}
.est-note-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.est-note-input:focus { border-color: var(--yellow); }

.btn-primary-request {
  width: 100%;
  background: var(--gradient);
  color: #FFFFFF !important;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 17px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.22s ease;
  box-shadow: 0 8px 24px -6px rgba(242, 31, 75, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.btn-primary-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(242, 31, 75, 0.65);
}
.btn-primary-request .btn-arrow {
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.btn-primary-request:hover .btn-arrow {
  transform: translate(2px, -2px);
}
.summary-addon-item {
  color: #38BDF8 !important;
  font-weight: 600;
}
.summary-note {
  font-family: var(--mono);
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.summary-pay-link-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.summary-pay-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid #FBBF24;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.summary-pay-link:hover {
  background: #FBBF24;
  color: #090D16;
  border-color: #FBBF24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
  text-decoration: none;
}
.pay-link-icon {
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(251, 191, 36, 0.22);
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.summary-pay-link:hover .pay-link-icon {
  background: rgba(9, 13, 22, 0.14);
  transform: scale(1.08);
}
.pay-link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pay-link-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  transition: color 0.18s ease;
}
.pay-link-action {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #FDE047;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease;
}
.pay-link-arrow {
  display: inline-block;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.summary-pay-link:hover .pay-link-title,
.summary-pay-link:hover .pay-link-action,
.summary-pay-link:hover .pay-link-arrow {
  color: #090D16 !important;
}
.summary-pay-link:hover .pay-link-arrow {
  transform: translateY(2px);
}

/* Módulo de Activación por Código de Confirmación */
.project-code-panel {
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-code-panel.flash-selection {
  animation: codePanelPulse 1.6s ease-out;
  border-color: var(--blue) !important;
}
@keyframes codePanelPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.code-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.code-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 4px;
}
.project-code-panel h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.code-secure-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(4, 120, 87, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}
.code-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 820px;
}
.code-desc strong {
  color: var(--ink);
}
.code-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 600px;
}
.code-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.code-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.code-prefix {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-right: 6px;
  user-select: none;
}
.code-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  text-transform: uppercase;
  padding: 12px 0;
}
.code-input::placeholder {
  color: var(--muted-light);
  opacity: 0.9;
}
.btn-code-submit {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--ink);
  color: #FFFFFF;
  border: none;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-code-submit:hover {
  background: var(--blue);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.code-status-msg {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.code-status-msg.error {
  background: rgba(242, 31, 75, 0.08);
  border: 1px solid rgba(242, 31, 75, 0.25);
  color: var(--red);
}
.code-status-msg.success {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--ink);
}
.code-verified-box .verified-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.verified-head strong { color: var(--blue); }
.verified-badge {
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}
.code-verified-box p {
  margin: 6px 0 16px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--muted);
}
.btn-proceed-verified {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-proceed-verified:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Optimización de Rendimiento para PageSpeed Insights (FCP & TBT) */
#proceso,
#faq,
#contacto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 650px;
}

/* ==========================================================================
   03 / PROCESO DE TRABAJO
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.proc-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  position: relative;
  transition: all 0.25s var(--ease);
}
.proc-step:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.proc-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}
.proc-step h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}
.proc-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   04 / PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
details.faq-item {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
details.faq-item[open] {
  border-color: var(--ink);
  background: var(--surface);
}
details.faq-item summary {
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 700;
  color: var(--red);
  font-size: 17px;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { content: "—"; }
details.faq-item p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==========================================================================
   05 / CONTACTO RÁPIDO & DIRECTO
   ========================================================================== */
.quick-contact-section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.quick-contact-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}
.quick-contact-text {
  max-width: 580px;
}
.quick-contact-text h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 4px 0 10px;
}
.quick-contact-text p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.quick-contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.btn-quick-wa {
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.btn-quick-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(37, 211, 102, 0.45);
}
.quick-contact-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 36px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav > span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 12px;
  color: #CBD5E1;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: #94A3B8;
}
.footer-bottom a { color: #CBD5E1; }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   CHECKOUT MODAL / PAGO SEGURO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s var(--ease);
}
.modal-backdrop.open .modal-card {
  transform: translateY(0);
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
}
.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 0;
  color: var(--ink);
}
.modal-close-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all 0.18s ease;
}
.modal-close-btn:hover { background: var(--ink); color: white; }

.modal-body { padding: 24px 28px 28px; }
.checkout-summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 22px;
}
.checkout-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.checkout-project-badge {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.checkout-delivery-pill {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.checkout-summary-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.checkout-summary-details strong { color: var(--ink); }
.checkout-terms-badge {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.checkout-terms-badge strong { color: var(--blue); }

.checkout-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.checkout-field input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.checkout-field input:focus { border-color: var(--blue); }

.checkout-methods-title {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.payment-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.payment-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.18s ease;
}
.payment-tab.active {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.05);
}
.payment-tab strong { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }
.payment-tab small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }

.payment-panel { display: none; }
.payment-panel.active { display: block; }

.card-inputs-row { display: flex; flex-direction: column; gap: 10px; }
.card-dual-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secure-badge {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 10px;
}

.transfer-info-card, .paypal-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}
.transfer-info-card ul { margin: 8px 0; padding-left: 20px; }
.transfer-info-card code { background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 4px; font-weight: 700; color: var(--ink); }

.modal-footer-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.modal-submit-btn { width: 100%; padding: 14px; font-size: 13.5px; }
.modal-disclaimer {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}

/* Success Screen */
.success-screen { text-align: center; padding: 16px 0; }
.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.success-ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
}
.ticket-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ticket-row:last-child { border: none; }
.success-next-steps { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.success-next-steps ol { padding-left: 20px; margin-top: 6px; }
.success-actions { display: flex; gap: 12px; justify-content: center; }

/* ==========================================================================
   MODO OSCURO (OFICIAL SCRIPTLABEL — CONTRASTE 100% WCAG AAA)
   ========================================================================== */
html[data-theme="dark"] {
  --ink: #F8FAFC;
  --paper: #090D16;
  --surface: #0F172A;
  --surface-hover: #1E293B;
  --white: #FFFFFF;
  --muted: #CBD5E1;
  --muted-light: #E2E8F0;
  --line: #1E293B;
  --line-strong: #334155;
}

html[data-theme="dark"] :focus-visible {
  outline-color: #38BDF8;
}

html[data-theme="dark"] body {
  background-color: #090D16;
  color: #F8FAFC;
}
html[data-theme="dark"] .site-header {
  background: rgba(9, 13, 22, .92);
  border-bottom-color: #1E293B;
}
html[data-theme="dark"] .main-nav > a:not(.nav-cta) { color: #CBD5E1; }
html[data-theme="dark"] .main-nav > a:not(.nav-cta):hover { color: #FFFFFF; }
html[data-theme="dark"] .nav-cta { background: #FFFFFF; color: #090D16 !important; }
html[data-theme="dark"] .theme-toggle { background: #0F172A; border-color: #1E293B; color: #FFFFFF; }
html[data-theme="dark"] .theme-icon .icon-moon { display: none; }
html[data-theme="dark"] .theme-icon .icon-sun { display: inline; }
html[data-theme="dark"] .menu-toggle span { background: #FFFFFF; }

html[data-theme="dark"] .button-dark { background: #FFFFFF; color: #090D16; border-color: #FFFFFF; }
html[data-theme="dark"] .button-dark:hover { background: #E2E8F0; border-color: #E2E8F0; }
html[data-theme="dark"] .button-outline { background: #131A2B; color: #FFFFFF; border-color: #334155; }
html[data-theme="dark"] .button-outline:hover { background: #1E293B; border-color: #475569; }

/* Tipografía y Kickers Globales en Modo Oscuro */
html[data-theme="dark"] .section-kicker { color: #38BDF8; }
html[data-theme="dark"] .section-kicker span { color: #FDE047; }
html[data-theme="dark"] .section-aside { color: #CBD5E1; }

/* Hero en Modo Oscuro */
html[data-theme="dark"] .hero {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, .08), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(242, 31, 75, .05), transparent 50%);
}
html[data-theme="dark"] .hero-bg-grid {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, .08), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(242, 31, 75, .05), transparent 50%);
}
html[data-theme="dark"] .hero-kicker { color: #CBD5E1; }
html[data-theme="dark"] .hero-kicker .kicker-index { color: #38BDF8; }
html[data-theme="dark"] .hero-lead { color: #CBD5E1; }
html[data-theme="dark"] .hero-scroll-btn {
  background: #FFFFFF;
  color: #090D16 !important;
  border-color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .hero-scroll-btn:hover {
  background: #E2E8F0;
  border-color: #E2E8F0;
  color: #090D16 !important;
}
html[data-theme="dark"] .hero-wa-btn {
  background: transparent;
  border-color: #1E293B;
  color: #CBD5E1;
}
html[data-theme="dark"] .hero-wa-btn:hover {
  background: #0F172A;
  border-color: #334155;
  color: #FFFFFF;
}

html[data-theme="dark"] .browser-card {
  background: #131A2B;
  border-color: #1E293B;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .browser-top { background: #0F172A; border-bottom-color: #1E293B; }
html[data-theme="dark"] .browser-url { background: #090D16; color: #CBD5E1; border-color: #334155; }
html[data-theme="dark"] .browser-content { background: #0B1120; }
html[data-theme="dark"] .mini-brand { color: #FFFFFF; }
html[data-theme="dark"] .mini-brand b { background: #FFFFFF; }
html[data-theme="dark"] .mini-kicker { color: #CBD5E1; }
html[data-theme="dark"] .mini-headline { color: #FFFFFF; }
html[data-theme="dark"] .mini-copy i { background: #1E293B; }
html[data-theme="dark"] .mini-button { background: #FFFFFF; color: #090D16; }
html[data-theme="dark"] .mini-tag {
  background: #FFFFFF;
  color: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .floating-chip {
  background: rgba(19, 26, 43, .95);
  border-color: rgba(255, 255, 255, .15);
}
html[data-theme="dark"] .floating-chip:active,
html[data-theme="dark"] .floating-chip.is-dragging {
  border-color: #38BDF8;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.72);
}
html[data-theme="dark"] .floating-chip b { color: #FFFFFF; }
html[data-theme="dark"] .chip-bracket { background: #FFFFFF; color: #090D16; }

/* Cinta Técnica */
html[data-theme="dark"] .tech-Ribbon { background: #0B1120; border-color: #1E293B; }
html[data-theme="dark"] .ribbon-list { color: #CBD5E1; }

/* Soluciones en Modo Oscuro */
html[data-theme="dark"] .guide-card {
  background: #0F172A;
  border-color: #1E293B;
}
html[data-theme="dark"] .guide-card:hover, html[data-theme="dark"] .guide-card.active-sol, html[data-theme="dark"] .guide-card:focus-visible {
  border-color: #38BDF8;
}
html[data-theme="dark"] .guide-card:focus-visible {
  outline-color: #38BDF8;
}
html[data-theme="dark"] .guide-situation {
  color: #FDE047;
}
html[data-theme="dark"] .guide-card-header h3 {
  color: #FFFFFF;
}
html[data-theme="dark"] .guide-recommendation {
  background: #090D16;
  border-color: #1E293B;
}
html[data-theme="dark"] .rec-name {
  color: #FFFFFF;
}
html[data-theme="dark"] .rec-label {
  color: #CBD5E1;
}
html[data-theme="dark"] .guide-recommendation p {
  color: #CBD5E1;
}
html[data-theme="dark"] .guide-action {
  color: #E2E8F0;
  border-top-color: #1E293B;
}
html[data-theme="dark"] .guide-card:hover .guide-action, html[data-theme="dark"] .guide-card.active-sol .guide-action {
  color: #38BDF8;
}

/* Cotizador en Modo Oscuro */
html[data-theme="dark"] .est-step-box { background: #0F172A; border-color: #1E293B; }
html[data-theme="dark"] .step-badge { background: #1E293B; color: #FFFFFF; border: 1px solid #334155; }
html[data-theme="dark"] .est-step-box h3 { color: #FFFFFF; }
html[data-theme="dark"] .est-option { background: #131A2B; border-color: #1E293B; }
html[data-theme="dark"] .est-option:hover { border-color: #334155; }
html[data-theme="dark"] .est-option.active { background: #182238; border-color: var(--blue); }
html[data-theme="dark"] .est-option strong { color: #FFFFFF; }
html[data-theme="dark"] .est-option span { color: #CBD5E1; }
html[data-theme="dark"] .est-option-delivery { color: #FDE047; }
html[data-theme="dark"] .est-option.flash-selection,
html[data-theme="dark"] .btn-quick-wa.flash-selection {
  animation: optionPulseDark 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1;
  border-color: #38BDF8 !important;
  z-index: 3;
}
@keyframes optionPulseDark {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.75);
    border-color: #38BDF8;
    transform: scale(1.025);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(56, 189, 248, 0);
    border-color: #38BDF8;
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    transform: scale(1);
    border-color: #38BDF8;
  }
}

html[data-theme="dark"] .addon-chip { background: #131A2B; border-color: #1E293B; color: #CBD5E1; }
html[data-theme="dark"] .addon-chip:hover { border-color: #334155; }
html[data-theme="dark"] .addon-chip.selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38BDF8;
  color: #FFFFFF;
}
html[data-theme="dark"] .addon-chip i { border-color: #475569; }
html[data-theme="dark"] .addon-chip.selected i {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #090D16;
  font-weight: 800;
}

html[data-theme="dark"] .addon-chip-update { background: #131A2B; border-color: #1E293B; }
html[data-theme="dark"] .addon-chip-freq { background: #090D16; border-color: #1E293B; }
html[data-theme="dark"] .chip-freq-pill { color: #CBD5E1; }
html[data-theme="dark"] .chip-freq-pill.active { background: #FFFFFF; color: #090D16; font-weight: 700; }

html[data-theme="dark"] .est-summary { background: #080C16; border-color: #1E293B; }
html[data-theme="dark"] .summary-head { color: #CBD5E1; border-bottom-color: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .summary-project-title { color: #FFFFFF; }
html[data-theme="dark"] .summary-list { color: #CBD5E1; border-bottom-color: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .est-note-input { background: #111827; border-color: #1E293B; color: #FFFFFF; }
html[data-theme="dark"] .est-note-input::placeholder { color: #64748B; opacity: 1; }
html[data-theme="dark"] .btn-primary-request { color: #FFFFFF !important; }
html[data-theme="dark"] .summary-note { color: #CBD5E1; }

/* Enlace/Tarjeta de Confirmación de Pago en Modo Oscuro */
html[data-theme="dark"] .summary-pay-link {
  background: rgba(253, 224, 71, 0.12);
  border: 1.5px solid #FDE047;
  color: #FFFFFF;
}
html[data-theme="dark"] .summary-pay-link .pay-link-icon {
  background: rgba(253, 224, 71, 0.22);
}
html[data-theme="dark"] .summary-pay-link .pay-link-title {
  color: #FFFFFF;
}
html[data-theme="dark"] .summary-pay-link .pay-link-action {
  color: #FDE047;
}
html[data-theme="dark"] .summary-pay-link:hover {
  background: #FDE047;
  border-color: #FDE047;
  color: #090D16;
  box-shadow: 0 8px 26px rgba(253, 224, 71, 0.38);
}
html[data-theme="dark"] .summary-pay-link:hover .pay-link-icon {
  background: rgba(9, 13, 22, 0.14);
}
html[data-theme="dark"] .summary-pay-link:hover .pay-link-title,
html[data-theme="dark"] .summary-pay-link:hover .pay-link-action,
html[data-theme="dark"] .summary-pay-link:hover .pay-link-arrow {
  color: #090D16 !important;
}

/* Panel de Código en Modo Oscuro */
html[data-theme="dark"] .project-code-panel { background: #0F172A; border-color: #1E293B; }
html[data-theme="dark"] .project-code-panel.flash-selection {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}
html[data-theme="dark"] .code-kicker { color: #38BDF8; }
html[data-theme="dark"] .project-code-panel h4 { color: #FFFFFF; }
html[data-theme="dark"] .code-secure-badge {
  color: var(--green);
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
}
html[data-theme="dark"] .code-desc { color: #CBD5E1; }
html[data-theme="dark"] .code-desc strong { color: #FFFFFF; }
html[data-theme="dark"] .code-input-wrap { background: #131A2B; border-color: #334155; }
html[data-theme="dark"] .code-input-wrap:focus-within {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}
html[data-theme="dark"] .code-prefix { color: #38BDF8; }
html[data-theme="dark"] .code-input { color: #FFFFFF; }
html[data-theme="dark"] .code-input::placeholder { color: #94A3B8; opacity: 1; }
html[data-theme="dark"] .btn-code-submit { background: #FFFFFF; color: #090D16; }
html[data-theme="dark"] .btn-code-submit:hover { background: #38BDF8; color: #090D16; }
html[data-theme="dark"] .code-status-msg.success { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.3); color: #F8FAFC; }
html[data-theme="dark"] .code-status-msg.error { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.4); color: #FCA5A5; }
html[data-theme="dark"] .verified-head strong { color: #38BDF8; }
html[data-theme="dark"] .verified-badge { color: var(--green); background: rgba(37, 211, 102, 0.15); }
html[data-theme="dark"] .code-verified-box p { color: #CBD5E1; }
html[data-theme="dark"] .code-verified-box p strong { color: #FFFFFF; }
html[data-theme="dark"] .btn-proceed-verified { background: #38BDF8; color: #090D16; font-weight: 800; }
html[data-theme="dark"] .btn-proceed-verified:hover { background: #7DD3FC; color: #090D16; }

/* Proceso en Modo Oscuro */
html[data-theme="dark"] .proc-step { background: #0F172A; border-color: #1E293B; }
html[data-theme="dark"] .proc-step:hover { border-color: #334155; }
html[data-theme="dark"] .proc-num { color: #38BDF8; }
html[data-theme="dark"] .proc-step h3 { color: #FFFFFF; }
html[data-theme="dark"] .proc-step p { color: #CBD5E1; }

/* FAQ en Modo Oscuro */
html[data-theme="dark"] .faq-item { background: #0F172A; border-color: #1E293B; }
html[data-theme="dark"] .faq-item:hover { border-color: #334155; }
html[data-theme="dark"] .faq-item[open] { background: #131A2B; border-color: var(--blue); }
html[data-theme="dark"] .faq-item summary { color: #FFFFFF; }
html[data-theme="dark"] details.faq-item summary::after { color: #FDE047; }
html[data-theme="dark"] .faq-item p { color: #CBD5E1; border-top-color: #1E293B; }

/* Contacto Rápido en Modo Oscuro */
html[data-theme="dark"] .quick-contact-section { border-top-color: #1E293B; }
html[data-theme="dark"] .quick-contact-wrap { background: #0F172A; border-color: #1E293B; }
html[data-theme="dark"] .quick-contact-text h2 { color: #FFFFFF; }
html[data-theme="dark"] .quick-contact-text p { color: #CBD5E1; }
html[data-theme="dark"] .btn-quick-wa { background: #FFFFFF; color: #090D16; }
html[data-theme="dark"] .btn-quick-wa:hover { background: #25D366; color: #FFFFFF; }
html[data-theme="dark"] .quick-contact-hint { color: #CBD5E1; }

/* Modal en Modo Oscuro */
html[data-theme="dark"] .modal-card { background: #0B1120; border: 1px solid #1E293B; }
html[data-theme="dark"] .modal-header { border-bottom-color: #1E293B; }
html[data-theme="dark"] .modal-kicker { color: #38BDF8; }
html[data-theme="dark"] .modal-header h3 { color: #FFFFFF; }
html[data-theme="dark"] .modal-close-btn { background: #131D31; border-color: #334155; color: #FFFFFF; }
html[data-theme="dark"] .checkout-summary-box { background: #111827; border-color: #1E293B; }
html[data-theme="dark"] .checkout-project-badge { color: #FFFFFF; }
html[data-theme="dark"] .checkout-delivery-pill {
  color: #FDE047;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}
html[data-theme="dark"] .checkout-summary-details { border-bottom-color: #1E293B; color: #CBD5E1; }
html[data-theme="dark"] .checkout-summary-details strong { color: #FFFFFF; }
html[data-theme="dark"] .checkout-terms-badge { color: #CBD5E1; }
html[data-theme="dark"] .checkout-field { color: #FFFFFF; }
html[data-theme="dark"] .checkout-field input { background: #111827; border-color: #1E293B; color: #FFFFFF; }
html[data-theme="dark"] .checkout-field input::placeholder { color: #64748B; opacity: 1; }
html[data-theme="dark"] .checkout-methods-title { color: #FFFFFF; }
html[data-theme="dark"] .payment-tab { background: #111827; border-color: #1E293B; }
html[data-theme="dark"] .payment-tab.active { background: rgba(37, 99, 235, 0.15); border-color: var(--blue); }
html[data-theme="dark"] .payment-tab strong { color: #FFFFFF; }
html[data-theme="dark"] .payment-tab small { color: #CBD5E1; }
html[data-theme="dark"] .transfer-info-card, html[data-theme="dark"] .paypal-info-card { background: #111827; border-color: #1E293B; color: #CBD5E1; }
html[data-theme="dark"] .modal-footer-actions { border-top-color: #1E293B; }
html[data-theme="dark"] .modal-submit-btn { color: #FFFFFF !important; }
html[data-theme="dark"] .modal-disclaimer { color: #CBD5E1; }
html[data-theme="dark"] .success-ticket { background: #111827; border-color: #1E293B; color: #CBD5E1; }
html[data-theme="dark"] .ticket-row { border-bottom-color: #1E293B; }

/* Footer en Modo Oscuro */
html[data-theme="dark"] .site-footer { background: #040711; border-top-color: #1E293B; }
html[data-theme="dark"] .footer-grid { border-bottom-color: #1E293B; }
html[data-theme="dark"] .footer-nav a { color: #CBD5E1; }
html[data-theme="dark"] .footer-nav a:hover { color: #FDE047; }
html[data-theme="dark"] .footer-bottom { color: #94A3B8; }
html[data-theme="dark"] .footer-bottom a { color: #CBD5E1; }
html[data-theme="dark"] .footer-bottom a:hover { color: #FFFFFF; }

/* ==========================================================================
   RESPONSIVE DESIGN (SWISS FLUID BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .section-heading,
  .estimator-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .solutions-grid,
  .guide-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .est-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .section-space { padding: 64px 0; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.25s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .solutions-grid,
  .guide-grid,
  .process-grid,
  .faq-grid,
  .est-options-grid,
  .addons-grid,
  .payment-tabs-nav,
  .checkout-fields-grid {
    grid-template-columns: 1fr;
  }
  .guide-card {
    padding: 22px 18px;
  }
  .guide-card-header h3 {
    font-size: 15px;
  }
  .browser-card { width: 100%; }
  .chip-code { left: 4px; }
  .chip-gradient { right: 4px; }
}

@media (max-width: 640px) {
  .section-space { padding: 48px 0; }
  .code-input-group {
    flex-direction: column;
  }
  .btn-code-submit {
    height: 48px;
    justify-content: center;
  }
  .quick-contact-wrap {
    padding: 28px 18px;
  }
  .hero-visual {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .floating-chip {
    padding: 7px 10px;
    gap: 8px;
  }
  .chip-bracket {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .chip-gradient-bar {
    height: 26px;
  }
  .project-code-panel {
    padding: 20px 16px;
  }
}
/* Mobile performance: keep offscreen sections from doing work before they are needed. */
@media (max-width: 768px){ section:not(:first-of-type){content-visibility:auto;contain-intrinsic-size:700px;} }
