/* ============================================================
   styles.css — Tuxii · Estilos principales
   ============================================================ */

/* === DESIGN TOKENS ======================================== */
:root {
  /* ============================================================
     Sitio orientado a cadenas — tokens de la home nueva.
     Convive con la paleta vieja de abajo, que todavía usan
     como-funciona, autodiagnostico, preguntas-frecuentes y etags.
     ============================================================ */
  --navy-900:     #0D2444;  /* secciones oscuras, texto sobre claro */
  --navy-950:     #0A1C34;  /* barra de datos y sección de impacto */
  --navy-1000:    #081729;  /* footer */
  --bg-light:     #F4F6FA;  /* secciones claras */
  --border-light: #DCE4F0;  /* bordes de tarjetas y tablas */
  --text-body:    #42566F;  /* párrafos sobre claro */
  --text-muted:   #5A6A7A;  /* texto secundario */
  --text-faint:   #8496AE;  /* etiquetas de tabla, numeración */

  /* Tipografía. Archivo es la misma familia que usan las etiquetas e-ink,
     así que la marca se lee igual en pantalla y en góndola. */
  --font-display: 'Archivo', 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Ritmo */
  --container:    1240px;
  --gutter:       40px;
  --section-y:    104px;
  --radius-card:  14px;
  --radius-btn:   8px;
  --radius-chip:  100px;

  /* Escala de la home nueva */
  --h1:           62px;
  --h2:           44px;
  --h3:           21px;
  --lead:         19px;
  --lead-sm:      17px;
  --body:         15px;
  --mono-sm:      11px;
  --mono:         12px;

  /* Colores */
  --navy:         #1B3A6B;
  --navy-mid:     #4A6FA5;
  --navy-light:   #EEF2FA;
  --navy-tint:    #D6E4F7;
  --navy-dark:    #0D2444;
  --dark:         #0A1628;
  --dark-2:       #060F1E;
  --orange:       #FF7A35;
  --orange-dark:  #CC5A1A;
  --orange-tint:  #FFF0E8;
  --slate:        #5A6A7A;
  --white:        #ffffff;
  --green:        #00C07F;
  --red-soft:     #FF5050;

  /* Tipografía */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-lg:   18px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  clamp(28px, 5vw, 44px);

  /* Espaciado */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.4);
}

/* === RESET ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }
input, textarea, select { font: inherit; }

/* === BASE ================================================= */
html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* === UTILIDADES =========================================== */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  background: var(--orange);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  font-weight: 400;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  background: transparent;
  color: var(--navy);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--navy);
  transition: background 0.15s ease;
}
.btn-outline-navy:hover { background: var(--navy-light); }

/* Grid helpers */
.grid-2 { display: grid; gap: var(--space-6); }
.grid-3 { display: grid; gap: var(--space-6); }

/* ============================================================
   WHATSAPP DESACTIVADO TEMPORALMENTE (todavía sin número).
   Oculta botones flotantes, links de contacto y CTAs de WA.
   Para reactivar: borrar este bloque y poner el número real
   en WHATSAPP_NUMBER (api/config.php) y en los href wa.me.
   ============================================================ */
a[href*="wa.me/59899000000"],
.whatsapp-float,
.contacto-alt,
.modal-divider,
#modal-wa-btn,
#modal-whatsapp-btn { display: none !important; }

/* Honeypot anti-bots: invisible para humanos, los bots lo llenan */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* === NAV ================================================== */
/* Escopeado a #nav: las páginas internas tienen otros <nav> (breadcrumb) */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: box-shadow 0.2s ease;
}
#nav.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.nav-link--active { color: var(--white); }

.nav-cta {
  padding: 0 var(--space-5);
  min-height: 38px;
  font-size: var(--text-sm);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1023px) {
  .nav-hamburger { display: flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--dark);
  z-index: 99;
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* === HERO ================================================= */
#hero {
  padding: calc(64px + var(--space-20)) 0 var(--space-20);
  background: radial-gradient(ellipse at 30% 50%, rgba(27,58,107,0.4) 0%, transparent 60%),
              var(--dark);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,122,53,0.12);
  border: 1px solid rgba(255,122,53,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: led-pulse 1.8s ease-in-out infinite;
}

.hero-h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-5);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-h1 em {
  font-style: normal;
  color: var(--navy-mid);
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

/* Stats strip */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 0 auto;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-4);
}
.stat-number {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* === SECCIÓN PROBLEMA ===================================== */
#problema {
  padding: var(--space-20) 0;
  background: var(--dark);
}

#problema .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.problema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.problema-col {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255,255,255,0.06);
}
.problema-col--antes {
  background: rgba(255,255,255,0.02);
}
.problema-col--despues {
  background: rgba(27,58,107,0.15);
  border-color: rgba(74,111,165,0.2);
}

.problema-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.problema-col--antes .problema-col-title { color: rgba(255,255,255,0.35); }
.problema-col--despues .problema-col-title { color: var(--navy-mid); }

.problema-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: var(--text-sm);
}
.problema-item:last-child { border-bottom: none; }
.problema-item--antes { color: rgba(255,255,255,0.45); }
.problema-item--despues { color: rgba(255,255,255,0.85); }

.problema-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}
.problema-icon--x {
  background: rgba(255,80,80,0.15);
  color: var(--red-soft);
}
.problema-icon--check {
  background: rgba(0,192,127,0.15);
  color: var(--green);
}

/* Números impacto */
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.impacto-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.impacto-number {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.impacto-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* === SECCIÓN DEMO ========================================= */
#demo {
  padding: var(--space-20) 0;
  background: var(--navy-dark);
}

#demo .section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

@keyframes chat-visual-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes chat-visual-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
@keyframes chat-visual-price-flash {
  0%   { filter: brightness(1); }
  40%  { filter: brightness(1.4); }
  100% { filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-visual, .chat-visual-dot, .chat-visual-led-dot, .chat-visual-new {
    animation: none !important;
  }
}

/* Typing indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4) !important;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* === SECCIÓN CÓMO FUNCIONA ================================ */
#como {
  padding: var(--space-20) 0;
  background: var(--dark);
}
#como .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.como-steps { display: flex; flex-direction: column; gap: var(--space-3); }

.como-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.como-step:hover {
  background: rgba(27,58,107,0.12);
  border-color: rgba(74,111,165,0.2);
}

.como-step-num {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
}

.como-step-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-1);
}
.como-step-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* === SECCIÓN CAPACIDADES ================================== */
#capacidades {
  padding: var(--space-20) 0;
  background: var(--navy-dark);
}
#capacidades .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.capacidades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .capacidades-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .capacidades-grid { grid-template-columns: repeat(3, 1fr); }
}

.cap-card {
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cap-card:hover {
  background: rgba(27,58,107,0.2);
  border-color: rgba(74,111,165,0.25);
}
.cap-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,122,53,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 18px;
}
.cap-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.cap-example {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  font-style: italic;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid rgba(255,122,53,0.3);
}

/* === SECCIÓN PRECIOS ====================================== */
#precios {
  padding: var(--space-20) 0;
  background: var(--dark);
}
#precios .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

/* === SECCIÓN CONTACTO ===================================== */
#contacto {
  padding: var(--space-20) 0;
  background: var(--navy-dark);
  text-align: center;
}

.contacto-box {
  max-width: 480px;
  margin: 0 auto;
}

.contacto-alt {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}
.contacto-alt a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contacto-alt a:hover { color: var(--white); }

.contacto-guarantee {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

/* === FOOTER =============================================== */
footer {
  padding: var(--space-12) 0;
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-brand-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  margin-top: var(--space-3);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
}
.footer-legal a { color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* === MODAL ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay.is-open {
  display: flex;
}

.modal-panel {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);

  /* Scrollbar delgado y on-brand (no la barra de Windows fea) */
  scrollbar-width: thin;                         /* Firefox */
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.modal-panel::-webkit-scrollbar {                /* Chrome / Safari / Edge */
  width: 6px;
}
.modal-panel::-webkit-scrollbar-track {
  background: transparent;
}
.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,36,68,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  line-height: 1;
  z-index: 5;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.modal-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-top: var(--space-2);
}
.modal-logo { margin: 0 auto var(--space-4); }
.modal-title {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.modal-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

/* Formulario */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-field {
  margin-bottom: var(--space-3);
  position: relative;
}

.form-input,
.form-select {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--text-sm);
  transition: border-color 0.15s ease;
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(74,111,165,0.6);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input.input-error,
.form-select.input-error { border-color: var(--red-soft); }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: 36px;
}
.form-select option { background: var(--dark); }

.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s ease;
}
.form-textarea:focus {
  outline: none;
  border-color: rgba(74,111,165,0.6);
}
.form-textarea::placeholder { color: rgba(255,255,255,0.3); }

.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--red-soft);
  margin-top: 4px;
  min-height: 16px;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: rgba(255,255,255,0.2);
  font-size: var(--text-xs);
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.modal-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: var(--radius-md);
  color: #25D366;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 0.15s ease;
}
.modal-wa-btn:hover { background: rgba(37,211,102,0.18); }

.modal-footer-note {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
}

.form-global-error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--red-soft);
  margin-top: var(--space-3);
}

/* Success view */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(0,192,127,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.success-title {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.success-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-8);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

/* ==========================================================
   SECCIONES NUEVAS DEL REDISEÑO
   ========================================================== */

/* --- Hero: layout con ilustración a la derecha ------------ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-8);
  text-align: left;
}
.hero-text { text-align: left; }
.hero-text .hero-h1,
.hero-text .hero-sub,
.hero-text .hero-ctas,
.hero-text .stats-strip {
  margin-left: 0;
  margin-right: 0;
}
.hero-illustration {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.hero-illustration svg {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  #hero { text-align: left; }
  .hero-text .hero-ctas { justify-content: flex-start; }
  .hero-text .stats-strip { margin-left: 0; margin-right: 0; }
}

/* === SECCIÓN SISTEMA (flujo animado) ====================== */
#sistema {
  padding: var(--space-20) 0;
  background: var(--dark);
}
#sistema .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.flow-diagram {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
}
.flow-diagram svg { width: 100%; height: auto; display: block; }

.flow-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .flow-legend { grid-template-columns: repeat(3, 1fr); }
}
.flow-legend-item {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
}
.flow-legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: var(--space-2);
}
.flow-legend-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}
.flow-legend-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* === SECCIÓN PANEL WEB ==================================== */
#panel {
  padding: var(--space-20) 0;
  background: var(--navy-light); /* Sección cálida clara */
  color: var(--navy-dark);
}
#panel .section-label { color: var(--orange-dark); }
#panel .section-title { color: var(--navy-dark); }
#panel .section-sub   { color: var(--slate); }

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  margin-top: var(--space-10);
}
@media (min-width: 900px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
}

.panel-text h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--navy-dark);
  margin-bottom: var(--space-3);
}
.panel-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.panel-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--navy-dark);
  line-height: 1.55;
}
.panel-feature-bullet {
  width: 20px; height: 20px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 1px;
}

/* Mockup del dashboard */
.dashboard-mockup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(27,58,107,0.18);
  overflow: hidden;
  border: 1px solid var(--navy-tint);
}
.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F4F6FB;
  border-bottom: 1px solid var(--navy-tint);
}
.dashboard-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dashboard-chrome .dot.r { background: #FF5F57; }
.dashboard-chrome .dot.y { background: #FEBC2E; }
.dashboard-chrome .dot.g { background: #28C840; }
.dashboard-chrome .url {
  font-size: 11px;
  color: var(--slate);
  margin-left: 10px;
  background: white;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--navy-tint);
  flex: 1;
  max-width: 240px;
  text-align: center;
}
.dashboard-body { display: flex; }
.dashboard-sidebar {
  width: 110px;
  background: #FAFBFE;
  padding: 14px 10px;
  border-right: 1px solid var(--navy-tint);
  font-size: 10px;
}
.dashboard-sidebar-item {
  padding: 6px 8px;
  color: var(--slate);
  border-radius: 4px;
  margin-bottom: 2px;
}
.dashboard-sidebar-item.active {
  background: var(--navy-tint);
  color: var(--navy-dark);
  font-weight: 600;
}
.dashboard-main {
  flex: 1;
  padding: 16px;
  min-width: 0;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.dashboard-stat-card {
  background: #F4F6FB;
  border-radius: 6px;
  padding: 10px 8px;
}
.dashboard-stat-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1;
}
.dashboard-stat-label {
  font-size: 9px;
  color: var(--slate);
  margin-top: 2px;
}
.dashboard-table {
  background: #FAFBFE;
  border-radius: 6px;
  padding: 10px;
  font-size: 10px;
}
.dashboard-table-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--navy-tint);
  color: var(--navy-dark);
}
.dashboard-table-row:last-child { border-bottom: none; }
.dashboard-table-row .chg-up { color: var(--green); font-weight: 600; }
.dashboard-table-row .chg-dn { color: #E04A4A; font-weight: 600; }

/* === SECCIÓN HISTORIA ===================================== */
#historia {
  padding: var(--space-20) 0;
  background: var(--dark);
}
#historia .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .historia-grid { grid-template-columns: 1fr 1fr; }
}

.historia-col {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.06);
}
.historia-col--antes {
  background: rgba(255,255,255,0.02);
}
.historia-col--ahora {
  background: linear-gradient(140deg, rgba(27,58,107,0.22) 0%, rgba(255,122,53,0.08) 100%);
  border-color: rgba(74,111,165,0.25);
}

.historia-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.historia-col--antes .historia-tag {
  background: rgba(255,80,80,0.12);
  color: var(--red-soft);
}
.historia-col--ahora .historia-tag {
  background: rgba(0,192,127,0.15);
  color: var(--green);
}

.historia-illustration {
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--space-5);
}
.historia-illustration svg { width: 100%; height: auto; display: block; }

.historia-text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  font-style: italic;
}
.historia-text strong {
  color: var(--white);
  font-weight: 500;
  font-style: normal;
}

.historia-protagonista {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* === CALCULADORA ROI ====================================== */
#calculadora {
  padding: var(--space-20) 0;
  background: var(--navy-dark);
}
#calculadora .section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.calc-net-value--pos { color: #00E090; }
.calc-net-value--neg { color: #FF8989; }

/* Responsive: apilar en mobile */
@media (max-width: 640px) {
  .calc-balance {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .calc-balance-sign {
    font-size: 28px;
    padding: 0;
    transform: rotate(90deg);
  }
}

/* Pop animation (aplica sobre los valores que cambian al mover los sliders) */
.calc-balance-value.pop,
.calc-net-value.pop,
.calc-balance-foot span.pop {
  animation: money-pop 0.35s ease forwards;
}

/* === SECCIÓN FAQ (tema claro) ============================= */
#faq {
  padding: var(--space-20) 0;
  background: var(--navy-light);
  color: var(--navy-dark);
}
#faq .section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
#faq .section-label { color: var(--orange-dark); }
#faq .section-title { color: var(--navy-dark); }
#faq .section-sub   { color: var(--slate); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border: 1px solid var(--navy-tint);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13,36,68,0.04);
}
.faq-item.is-open {
  border-color: rgba(255,122,53,0.35);
  box-shadow: 0 4px 12px rgba(13,36,68,0.08);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--navy-dark);
  background: transparent;
  transition: background 0.15s ease;
}
.faq-question:hover { background: rgba(13,36,68,0.025); }
.faq-toggle-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
}
.faq-answer {
  padding: 0 var(--space-6);
  color: var(--slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}
.faq-answer strong { color: var(--navy-dark); font-weight: 500; }

/* Link "Ver todas las preguntas" debajo del listado */
.faq-more {
  max-width: 720px;
  margin: var(--space-8) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.faq-more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  background: white;
  border: 1px solid var(--navy-tint);
  border-radius: var(--radius-full);
  color: var(--navy-dark);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(13,36,68,0.04);
}
.faq-more-link:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,36,68,0.08);
}
.faq-more-link svg {
  transition: transform 0.2s ease;
}
.faq-more-link:hover svg { transform: translateX(3px); }
.faq-more-hint {
  font-size: var(--text-xs);
  color: var(--slate);
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* ============================================================
   PÁGINA DEDICADA: preguntas-frecuentes.html
   ============================================================ */

/* Page header (breadcrumb + título) */
.page-header {
  padding: calc(var(--space-20) + 64px) 0 var(--space-12);
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-5);
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-current] { color: rgba(255,255,255,0.75); }

.page-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.page-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.55);
  max-width: 640px;
  line-height: 1.6;
}

/* FAQ completo con grupos (categorías) — override del #faq base */
#faq.faq-full {
  padding: var(--space-16) 0;
}
.faq-group {
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--navy-tint);
}

/* En la página dedicada, el contacto tiene fondo oscuro como la home */
.page-faq #contacto {
  padding: var(--space-16) 0;
}

/* === SECCIÓN SOBRE TUXII (primera persona) ================ */
#sobre {
  padding: var(--space-20) 0;
  background: var(--navy-light);
  color: var(--navy-dark);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .sobre-grid { grid-template-columns: 280px 1fr; gap: var(--space-12); }
}

.sobre-illustration {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.sobre-illustration svg { width: 100%; height: auto; display: block; }

.sobre-text .section-label { color: var(--orange-dark); }
.sobre-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy-dark);
  margin-bottom: var(--space-5);
}
.sobre-body {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.75;
}
.sobre-body p { margin-bottom: var(--space-4); }
.sobre-body p:last-child { margin-bottom: 0; }
.sobre-body strong { color: var(--navy-dark); font-weight: 500; }
.sobre-origin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 1px solid var(--navy-tint);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Bandera UY mini --- */
.flag-uy {
  width: 14px; height: 10px;
  border-radius: 1px;
  overflow: hidden;
}

/* === Mención secundaria del panel dentro de #sistema ====== */
.sistema-note {
  max-width: 760px;
  margin: var(--space-8) auto 0;
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,122,53,0.2);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.sistema-note-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.sistema-note strong {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 2px;
}

/* === Línea de origen en el footer ========================= */
.footer-brand-origin {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  max-width: 320px;
}
.footer-brand-origin svg {
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}

/* === WHATSAPP FLOAT ======================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================================
   TOPBAR — Programa Fundadores (dismissable)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--orange) 0%, #FF9560 100%);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.topbar[hidden] { display: none !important; }
.topbar-close {
  flex-shrink: 0;
  color: white;
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
}
.topbar-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
}

/* Body offsets cuando la topbar está visible */
body.has-topbar nav { top: 44px; }
body.has-topbar main { padding-top: 0; }

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    padding: 8px var(--space-4);
  }
  .topbar-badge { font-size: var(--text-xs); }
  .topbar-msg { font-size: var(--text-xs); width: 100%; order: 3; }
  .topbar-cta { font-size: var(--text-xs); }
  body.has-topbar nav { top: 72px; }
}

/* Link de highlight en nav (Fundadores) */
.nav-link-highlight {
  color: var(--orange) !important;
  font-weight: 600;
}

/* Hero badge: link interno */
.hero-badge-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-badge-link:hover { color: var(--orange-dark); }

/* Hero guarantee badge (risk reversal) */
.hero-guarantee {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 0;
  margin-bottom: var(--space-10);
  padding: 8px 14px;
  background: rgba(0, 192, 127, 0.08);
  border: 1px solid rgba(0, 192, 127, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.hero-guarantee svg { flex-shrink: 0; }
.hero-guarantee strong {
  color: #00E090;
  font-weight: 600;
}

/* En mobile la guarantee se centra con los CTAs; en desktop queda a la izquierda */
@media (max-width: 1023px) {
  .hero-guarantee {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .pricing-guarantee {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
}

/* ============================================================
   SECCIÓN FUNDADORES — pre-cierre con scarcity
   ============================================================ */
#fundadores {
  padding: var(--space-16) 0;
  background: var(--navy-light);
  color: var(--navy-dark);
}

@media (max-width: 640px) {
  .fundadores-card { padding: var(--space-6); }
  .fundadores-counter-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HOME: teaser de #sistema (reemplaza sección completa)
   ============================================================ */
#sistema-teaser {
  padding: var(--space-16) 0;
  background: var(--dark);
}
#sistema-teaser .section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.sistema-teaser-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.sistema-teaser-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1 140px;
  min-width: 140px;
  max-width: 200px;
}

.sistema-teaser-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 53, 0.08);
  border: 1px solid rgba(255, 122, 53, 0.2);
  border-radius: var(--radius-lg);
}

.sistema-teaser-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
}

.sistema-teaser-arrow {
  color: rgba(255, 122, 53, 0.55);
  font-size: 24px;
  font-weight: 300;
  align-self: center;
  margin-top: -28px;
}

.sistema-teaser-cta {
  text-align: center;
  margin-top: var(--space-10);
}
.sistema-teaser-link {
  display: inline-flex;
  align-items: center;
  color: var(--orange);
  font-weight: 500;
  font-size: var(--text-base);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.sistema-teaser-link:hover {
  border-bottom-color: var(--orange);
}
.sistema-teaser-hint {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--space-2);
}

@media (max-width: 640px) {
  .sistema-teaser-arrow { transform: rotate(90deg); margin-top: 0; }
  .sistema-teaser-flow { flex-direction: column; gap: var(--space-3); }
  .sistema-teaser-step { max-width: 100%; }
}

/* ============================================================
   PÁGINA DEDICADA: como-funciona.html
   ============================================================ */

/* Cuando #sistema está dentro de su propia página (no en home),
   no necesita padding superior porque el page-header ya lo tiene. */
.sistema-page {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--dark);
}
.sistema-page .flow-diagram { margin-top: 0; }

/* --- KIT SECTION (Base, Etiquetas, App) -------------------- */
.kit-section {
  padding: var(--space-20) 0;
  background: var(--navy-light);
  color: var(--navy-dark);
}
.kit-section .section-label { color: var(--orange-dark); }
.kit-section .section-title { color: var(--navy-dark); }
.kit-section .section-sub   { color: var(--slate); }

.kit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) {
  .kit-grid { grid-template-columns: repeat(3, 1fr); }
}

.kit-card {
  background: var(--white);
  border: 1px solid var(--navy-tint);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 53, 0.35);
  box-shadow: 0 6px 20px rgba(13, 36, 68, 0.06);
}

.kit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 53, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
}

.kit-card-title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--navy-dark);
  margin: 0;
}
.kit-card-desc {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}
.kit-card-specs {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--navy);
  border-top: 1px dashed var(--navy-tint);
  padding-top: var(--space-3);
}
.kit-card-specs li {
  position: relative;
  padding-left: 14px;
}
.kit-card-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* --- PANEL SECTION (panel web + features) ------------------ */
.panel-section {
  padding: var(--space-20) 0;
  background: var(--dark);
  color: var(--white);
}
.panel-section .panel-grid {
  margin-top: 0;
}
.panel-title {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
  margin: var(--space-3) 0 var(--space-4);
}
.panel-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  max-width: 540px;
}

.panel-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.panel-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}
.panel-features li strong {
  color: var(--white);
  font-weight: 500;
}
.panel-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 192, 127, 0.15);
  color: #00E090;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 1px;
}

.panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
  .panel-visual { order: -1; }
}

/* ============================================================
   HOME: banda de nudge al autodiagnóstico
   ============================================================ */
.autod-nudge {
  background: linear-gradient(90deg, rgba(255,122,53,0.08), rgba(255,122,53,0.02));
  border-top: 1px solid rgba(255,122,53,0.15);
  border-bottom: 1px solid rgba(255,122,53,0.15);
  padding: var(--space-6) 0;
}
.autod-nudge-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.autod-nudge-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.autod-nudge-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 600;
}
.autod-nudge-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}
.autod-nudge-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}
.autod-nudge-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: rgba(255,122,53,0.12);
  border: 1px solid rgba(255,122,53,0.35);
  color: var(--orange);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.autod-nudge-cta:hover {
  background: rgba(255,122,53,0.2);
  border-color: var(--orange);
}

/* ============================================================
   PÁGINA DEDICADA: autodiagnostico.html
   ============================================================ */

.autod-section {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--dark);
  color: var(--white);
}

/* Meta header con contador y barra de progreso */
.autod-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-width: 720px;
  margin: 0 auto var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}
.autod-meta-item {
  text-align: center;
  flex-shrink: 0;
}
.autod-meta-num {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.autod-meta-num--total {
  color: rgba(255,255,255,0.35);
}
.autod-meta-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.autod-progress {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.autod-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 4px;
  transition: width 0.25s ease, background 0.3s ease;
}
.autod-progress-bar[data-level="verde"]    { background: #00C07F; }
.autod-progress-bar[data-level="amarillo"] { background: #F4B740; }
.autod-progress-bar[data-level="rojo"]     { background: #E85A5A; }

/* Checklist */
.autod-checklist {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.autod-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.autod-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255, 122, 53, 0.25);
}
.autod-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.autod-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  margin-top: 2px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.autod-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}
.autod-item input:checked ~ .autod-check {
  background: var(--orange);
  border-color: var(--orange);
}
.autod-item input:checked ~ .autod-check::after {
  transform: rotate(45deg) scale(1);
}
.autod-item input:focus-visible ~ .autod-check {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.autod-text {
  flex: 1;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.autod-text strong {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 4px;
}
.autod-text span {
  color: rgba(255,255,255,0.55);
}

/* Resultado */
.autod-result {
  max-width: 720px;
  margin: var(--space-12) auto 0;
  padding: var(--space-8);
  background: linear-gradient(180deg, rgba(255,122,53,0.08), rgba(255,122,53,0.02));
  border: 1px solid rgba(255,122,53,0.25);
  border-radius: var(--radius-lg);
}
.autod-result-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.autod-result-badge {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.autod-result-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
}
.autod-result-body {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0 0 var(--space-6);
}
.autod-result-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.autod-result-guarantee {
  font-size: var(--text-xs);
  color: rgba(0, 224, 144, 0.85);
  margin: 0;
}

/* Compartir */
.autod-share {
  max-width: 720px;
  margin: var(--space-10) auto 0;
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.autod-share p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin: 0 0 var(--space-2);
}
.autod-share-link {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.autod-share-link:hover {
  border-bottom-color: var(--orange);
}

@media (max-width: 640px) {
  .autod-meta {
    flex-direction: column;
    gap: var(--space-3);
  }
  .autod-progress { width: 100%; }
  .autod-item { padding: var(--space-4); }
}

/* ============================================================================
   SITIO ORIENTADO A CADENAS — home nueva
   ----------------------------------------------------------------------------
   Todo lo de acá abajo va con prefijo .rt- para convivir con los estilos que
   siguen usando como-funciona, autodiagnostico, preguntas-frecuentes y etags.
   Alternancia de fondos: oscuro (hero, datos) -> claro (producto) -> oscuro
   (tecnologia) -> claro (operacion) -> oscuro (impacto) -> claro (integracion)
   -> oscuro (piloto, footer). No hay un tercer color de fondo.
   ========================================================================= */

body.rt {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-light);
  margin: 0;
}

.rt-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografia ---------- */
.rt-h2, .rt-h3, .rt-hero-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--navy-900);
  margin: 0;
}
.rt-hero-title { font-size: clamp(28px, 6.6vw, var(--h1)); font-weight: 800; line-height: 1.06; color: #fff; }
.rt-h2         { font-size: clamp(25px, 4.2vw, var(--h2)); font-weight: 700; line-height: 1.14; }
.rt-h3         { font-size: var(--h3); font-weight: 600; line-height: 1.3; }
.rt-h2--on-dark, .rt-h3--on-dark { color: #fff; }

.rt-kicker {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  margin: 0 0 16px;
}

.rt-section-lead {
  font-size: var(--lead);
  font-weight: 300;
  line-height: 1.6;
  max-width: 62ch;
  margin: 18px 0 0;
}
.rt-section-lead--on-dark { color: rgba(255,255,255,.72); }

/* ---------- Secciones ---------- */
.rt-section { padding: var(--section-y) 0; }
.rt-section--light  { background: var(--bg-light); color: var(--text-body); }
.rt-section--dark   { background: var(--navy-900); color: rgba(255,255,255,.72); }
.rt-section--darker { background: var(--navy-950); color: rgba(255,255,255,.72); }

/* ---------- CTA: un solo boton en toda la pagina ---------- */
.rt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.rt-cta:hover  { background: var(--orange-dark); }
.rt-cta:active { transform: translateY(1px); }
.rt-cta--lg    { font-size: 16px; padding: 16px 28px; }
.rt-cta--block { width: 100%; }

.rt-link-arrow {
  font-size: var(--lead-sm);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding-bottom: 2px;
}
.rt-link-arrow:hover { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Navegacion ---------- */
/* Especificidad ID+clase a propósito: la regla #nav de las otras páginas fija
   height:64px y display:flex, y como es un selector de ID le gana a .rt-nav
   sin importar el orden. Con #nav.rt-nav gana esta y la otra queda intacta. */
#nav.rt-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: auto;
  display: block;
  background: rgba(13,36,68,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rt-nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.rt-nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.rt-nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0 auto 0 12px;
  padding: 0;
}
.rt-nav-links a {
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease;
}
.rt-nav-links a:hover { color: #fff; }
.rt-cta--nav { padding: 10px 18px; font-size: 14px; }

.rt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.rt-hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

.rt-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.rt-mobile-menu.is-open { display: flex; }
.rt-mobile-menu a {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 11px 0;
}
.rt-mobile-menu .rt-cta { margin-top: 10px; }

/* ---------- Hero ---------- */
.rt-hero {
  position: relative;
  background: var(--navy-900);
  padding: calc(68px + 120px) 0 var(--section-y);
  overflow: hidden;
  isolation: isolate;
}
/* La foto no cubre todo el hero: es un panel a la derecha, más chico y
   centrado en vertical. Dos motivos:
   - El titular queda sobre navy sólido, sin competir con la etiqueta grande
     que la foto tiene en su centro.
   - Al mostrarse a ~600px de ancho en vez de a todo el viewport, la imagen
     (1110x475) NO se agranda: se ve nítida. Antes se estiraba ~1,4x. */
.rt-hero-photo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  max-width: 720px;
  height: 62%;
  max-height: 430px;
  z-index: -2;
  /* El fade lo hace la máscara: se desvanece hacia la izquierda y hacia los
     bordes, así la foto se integra al navy en vez de quedar como un recorte. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 34%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 34%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.rt-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 76% 58%;
  display: block;
}
/* Velo suave sobre la foto para que no compita con el texto en pantallas
   angostas, donde el panel se acerca al titular. */
.rt-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #0D2444 42%, rgba(13,36,68,.55) 62%, rgba(13,36,68,.18) 100%);
}
.rt-hero-inner { max-width: 760px; }
.rt-hero-lead {
  font-size: var(--lead);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 26px 0 0;
}
.rt-hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* ---------- Barra de datos ---------- */
.rt-facts { background: var(--navy-950); padding: 54px 0; }
.rt-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.rt-fact-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
}
.rt-fact-desc {
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(255,255,255,.66);
  margin: 12px 0 0;
  max-width: 30ch;
}

/* ---------- Tarjetas de producto ---------- */
.rt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}
.rt-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* <picture> es inline por defecto y sin altura propia, así que el height:100%
   de la <img> de adentro resuelve contra una caja sin altura definida y el
   navegador lo trata como auto: la foto no llena el contenedor. Se fuerza a
   bloque en todos los marcos de foto del sitio. */
.rt-card-photo picture,
.rt-split-photo picture,
.rt-caso-photo picture,
.rt-destacado-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.rt-card-photo { height: 250px; overflow: hidden; background: var(--navy-950); }
.rt-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-card:nth-child(2) .rt-card-photo img { object-position: 65% 50%; }
.rt-card-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.rt-card-num {
  font-family: var(--font-mono);
  font-size: var(--mono);
  color: var(--text-faint);
}
.rt-card-body p { margin: 0; font-size: var(--body); line-height: 1.62; }

/* Chips: nowrap adentro, wrap en el contenedor. */
.rt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.rt-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 400;
  padding: 5px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-chip);
  background: var(--bg-light);
  color: var(--text-muted);
}

/* ---------- Feed simulado (tarjeta 03) ---------- */
.rt-feed {
  background: var(--navy-950);
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.rt-feed-row { display: flex; align-items: center; gap: 11px; }
.rt-feed-text {
  flex: 1;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.78);
  line-height: 1.4;
}
.rt-feed-time {
  font-family: var(--font-mono);
  font-size: var(--mono-sm);
  color: rgba(255,255,255,.42);
  flex-shrink: 0;
}
.rt-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.rt-dot--ok   { background: var(--green); }
.rt-dot--warn { background: var(--orange); }
.rt-dot--idle { background: var(--navy-mid); }

/* ---------- Pasos de tecnologia ---------- */
.rt-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
}
.rt-step { border-top: 2px solid rgba(255,255,255,.14); padding-top: 20px; }
.rt-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--mono);
  color: var(--orange);
  margin-bottom: 12px;
}
.rt-step h3 { margin-bottom: 10px; }
.rt-step p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* ---------- Operacion: foto + lista ---------- */
.rt-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.rt-split-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.rt-split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* min-width:0 en los hijos de grid: sin esto, un texto largo o una tabla ancha
   fuerza la columna a crecer y la página desborda en horizontal. Es la causa
   clásica y el spec pide que no desborde a 1280, 1024 ni 390. */
.rt-split-text,
.rt-split > *,
.rt-two-col > *,
.rt-calc > *,
.rt-cards > *,
.rt-steps > *,
.rt-facts-grid > *,
.rt-footer-inner > * { min-width: 0; }

/* Filas de una sola columna, titulo arriba de la descripcion. */
.rt-list { list-style: none; margin: 40px 0 0; padding: 0; }
.rt-list li {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
}
.rt-list li:last-child { border-bottom: 1px solid var(--border-light); }
.rt-list h3 { margin-bottom: 8px; }
.rt-list p  { margin: 0; font-size: var(--body); line-height: 1.62; }

/* ---------- Calculadora ---------- */
.rt-calc {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  margin-top: 52px;
  align-items: start;
}
.rt-calc-controls { display: flex; flex-direction: column; gap: 30px; }
.rt-calc-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255,255,255,.78);
  margin-bottom: 12px;
}
.rt-calc-out {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}
.rt-calc-field input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.18);
  border-radius: 3px;
  outline: none;
}
.rt-calc-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 0;
}
.rt-calc-field input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 0;
}

.rt-calc-result {
  background: var(--orange);
  border-radius: var(--radius-card);
  padding: 34px;
  color: #fff;
}
.rt-calc-result-label {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 8px;
  color: rgba(255,255,255,.88);
}
.rt-calc-hours {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rt-calc-detail { margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.rt-calc-detail > div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 12px; }
.rt-calc-detail dt { font-size: 13px; color: rgba(255,255,255,.85); }
.rt-calc-detail dd {
  font-family: var(--font-mono);
  font-size: 19px;
  margin: 4px 0 0;
}

/* ---------- Integracion + ficha ---------- */
.rt-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.rt-check-list { list-style: none; margin: 34px 0 0; padding: 0; }
.rt-check-list li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--body);
}
.rt-check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.rt-spec { width: 100%; border-collapse: collapse; margin-top: 34px; }
.rt-spec th, .rt-spec td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  font-weight: 400;
  vertical-align: top;
}
.rt-spec th {
  font-family: var(--font-mono);
  font-size: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  width: 38%;
  padding-right: 18px;
}
.rt-spec td { font-size: 14.5px; color: var(--text-body); }

/* ---------- Cierre ---------- */
.rt-close-inner { max-width: 660px; }
.rt-close-inner .rt-cta { margin-top: 34px; }
.rt-close-note { font-size: 14px; color: rgba(255,255,255,.55); margin: 22px 0 0; }
.rt-close-note a { color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.rt-footer { background: var(--navy-1000); color: rgba(255,255,255,.6); padding: 68px 0 30px; }
.rt-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
}
.rt-footer-brand p { font-size: 14px; margin: 16px 0 0; max-width: 34ch; line-height: 1.6; }
.rt-footer-nav h2 {
  font-family: var(--font-body);
  font-size: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.rt-footer-nav a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  padding: 5px 0;
}
.rt-footer-nav a:hover { color: #fff; }
.rt-footer-place { font-size: 14px; margin: 8px 0 0; }
.rt-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 13px;
}
.rt-footer-tag { color: var(--text-faint); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .rt-split { grid-template-columns: 1fr; gap: 40px; }
  .rt-split-photo { aspect-ratio: 4 / 3; }
  .rt-split-photo img { object-position: center 42%; }
  .rt-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .rt-steps { grid-template-columns: repeat(2, 1fr); }
  .rt-calc { grid-template-columns: 1fr; gap: 36px; }
  .rt-two-col { grid-template-columns: 1fr; gap: 48px; }
  .rt-nav-links { display: none; }
  .rt-cta--nav { display: none; }
  .rt-hamburger { display: flex; }
  .rt-nav-inner { justify-content: space-between; }
  .rt-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* El panel de foto se achica y baja su opacidad: a este ancho el titular
     lo pisaria. */
  .rt-hero-photo { width: 62%; height: 48%; opacity: .5; }
}

@media (max-width: 720px) {
  /* La foto no se oculta: pasa a ser una banda debajo del texto. En celular
     el hero es la primera y muchas veces unica pantalla que se mira, y sin
     imagen no se entiende que es el producto. */
  .rt-hero { display: flex; flex-direction: column; }
  .rt-hero-inner { order: 1; }
  .rt-hero-photo {
    order: 2;
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    height: 210px;
    max-height: none;
    opacity: 1;
    margin: 34px 22px 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: auto;
  }
  /* El velo era para leer texto SOBRE la foto; acá la foto va aparte y el
     velo solo la taparia. */
  .rt-hero::before { display: none; }
  .rt-hero { padding: 148px 0 80px; }
  .rt-section { padding: 80px 0; }
  .rt-container { padding: 0 22px; }
  .rt-mobile-menu { padding-left: 22px; padding-right: 22px; }
  .rt-section-lead, .rt-hero-lead { font-size: var(--lead-sm); }
  .rt-facts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .rt-cards { grid-template-columns: 1fr; }
  .rt-steps { grid-template-columns: 1fr; gap: 24px; }
  .rt-calc-hours { font-size: 50px; }
  .rt-footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .rt-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   Casos de uso
   ------------------------------------------------------------
   Fondo blanco, como se pidio. Es la unica seccion que rompe la
   alternancia oscuro/claro del resto: se apoya en el borde de las
   tarjetas para que no se pierdan sobre el blanco.
   ============================================================ */
.rt-casos { background: #fff; }

.rt-casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.rt-caso {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 26px;
  /* El hover se anima solo en estas dos, no en "all": animar todo obliga al
     navegador a recalcular capas que no cambian. */
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.rt-caso:hover {
  transform: translateY(-4px);
  border-color: var(--navy-tint);
  box-shadow: 0 12px 28px rgba(13, 36, 68, .10);
}
.rt-caso:hover .rt-caso-photo img { transform: scale(1.04); }

.rt-caso-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--navy-700);
  margin-bottom: 18px;
}
.rt-caso-icon svg { width: 20px; height: 20px; }
.rt-caso:hover .rt-caso-icon { color: var(--orange); border-color: rgba(255,122,53,.35); }

.rt-caso-photo {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}
.rt-caso-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}

.rt-caso h3 { margin-bottom: 8px; }
.rt-caso p  { margin: 0; font-size: var(--body); line-height: 1.62; }

/* ---------- Bloque destacado de cierre ---------- */
.rt-destacado {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center;
  margin-top: 52px;
  padding: 34px;
  background: var(--navy-900);
  border-radius: var(--radius-card);
}
.rt-destacado-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.rt-destacado-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rt-destacado-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
}
.rt-destacado-text p {
  font-size: var(--lead-sm);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,.74);
  margin: 0 0 26px;
  max-width: 52ch;
}

/* min-width:0: sin esto el texto largo estira la columna y desborda. */
.rt-casos-grid > *,
.rt-destacado > * { min-width: 0; }

@media (max-width: 1100px) {
  .rt-casos-grid { grid-template-columns: repeat(2, 1fr); }
  .rt-destacado { grid-template-columns: 1fr; gap: 28px; }
  .rt-destacado-photo { aspect-ratio: 16 / 7; }
}

@media (max-width: 720px) {
  .rt-casos-grid { grid-template-columns: 1fr; gap: 20px; }
  .rt-caso { padding: 20px; }
  .rt-destacado { padding: 22px; margin-top: 34px; }
  .rt-destacado-title { font-size: 23px; }
  /* En touch el hover no aplica: no se levanta la tarjeta. */
  .rt-caso:hover { transform: none; }
}

/* Respeta a quien pidió menos movimiento en el sistema. */
@media (prefers-reduced-motion: reduce) {
  .rt-caso,
  .rt-caso-photo img { transition: none; }
  .rt-caso:hover { transform: none; }
  .rt-caso:hover .rt-caso-photo img { transform: none; }
}
