/* ── REXA Landing Page — Main Stylesheet ── */
/* Author: RTIC */

:root {
  /* ── HERO / DARK zones ── */
  --dark-bg: #0b0f1e;
  --dark-bg2: #111528;
  --dark-bg3: #161b35;
  --dark-border: rgba(99, 120, 255, 0.18);
  --dark-muted: #8fa3c8;
  --dark-white: #eef2ff;

  /* ── LIGHT zones ── */
  --light-bg: #ffffff;
  --light-bg2: #f4f6fb;
  --light-bg3: #edf0f8;
  --light-text: #0f1424;
  --light-muted: #5a6585;
  --light-border: #e2e6f0;

  /* ── BRAND ── */
  --blue: #2d6ef5;
  --blue2: #1a54d4;
  --violet: #7040f0;
  --violet2: #5530cc;
  --cyan: #00c8f0;
  --accent: #2d6ef5;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(15, 20, 40, 0.08), 0 1px 2px rgba(15, 20, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 20, 40, 0.10), 0 2px 6px rgba(15, 20, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 20, 40, 0.12), 0 4px 12px rgba(15, 20, 40, 0.08);
  --shadow-xl: 0 24px 64px rgba(15, 20, 40, 0.16);

  /* legacy aliases used by modal/form (kept for compat) */
  --bg: var(--dark-bg);
  --bg2: var(--dark-bg2);
  --bg3: var(--dark-bg3);
  --white: var(--dark-white);
  --muted: var(--dark-muted);
  --border: var(--dark-border);
  --card: rgba(255, 255, 255, 0.04);
  --glow: 0 0 40px rgba(45, 110, 245, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--light-bg);
  color: var(--light-text);
  overflow-x: hidden;
}

/* ── LIGHT SECTION BASE ── */
.light-section {
  background: var(--light-bg);
  color: var(--light-text);
}

.light-section-alt {
  background: var(--light-bg2);
  color: var(--light-text);
}

.light-section h2,
.light-section-alt h2 {
  color: var(--light-text);
}

.light-section .section-tag,
.light-section-alt .section-tag {
  color: var(--blue);
}

.light-section .section-sub,
.light-section-alt .section-sub {
  color: var(--light-muted);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Remove outline only for non-keyboard focus */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── LANG SWITCHER ── */
.lang-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2rem;
  height: 34px;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--dark-muted);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 3px;
  font-weight: 600;
}

.lang-btn.active {
  border-color: var(--blue);
  color: #fff;
  background: rgba(45, 110, 245, 0.15);
}

.lang-btn:hover {
  color: #fff;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 2px;
  font-size: 0.8rem;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  height: 62px;
  background: rgba(11, 15, 30, 0.97);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(20px);
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: #fff;
  border-bottom-color: var(--light-border);
  box-shadow: var(--shadow-sm);
}

nav.scrolled .nav-links a {
  color: var(--light-muted);
}

nav.scrolled .nav-links a:hover {
  color: var(--blue);
}

nav.scrolled .btn-ghost {
  color: var(--light-muted);
  border-color: var(--light-border);
}

nav.scrolled .btn-ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
}

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

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--violet2), var(--blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  letter-spacing: -1px;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--dark-white);
}

.nav-logo-text span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-ghost {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 18px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-primary {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 9px 22px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(45, 110, 245, 0.4);
}

.btn-primary:hover {
  background: var(--blue2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 110, 245, 0.5);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 124px 4vw 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99, 120, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 120, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 40% 60%, black, transparent);
}

.hero-glow-1 {
  position: absolute;
  top: 5%;
  left: 55%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(112, 64, 240, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(45, 110, 245, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 110, 245, 0.12);
  border: 1px solid rgba(45, 110, 245, 0.25);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #93b8ff;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: #fff;
}

h1 .grad {
  background: linear-gradient(115deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--dark-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 14px 30px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'Exo 2', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s;
  border: none;
}

.btn-hero-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 110, 245, 0.45);
}

.btn-hero-primary:hover {
  background: var(--blue2);
  box-shadow: 0 6px 28px rgba(45, 110, 245, 0.6);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Space Mono', monospace;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--dark-muted);
  letter-spacing: 0.05em;
  margin-top: 5px;
  line-height: 1.4;
}

/* ── SECTION COMMON ── */
section {
  padding: 96px 4vw;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--blue2);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.section-sub {
  font-size: 1rem;
  color: var(--light-muted);
  line-height: 1.75;
  max-width: 560px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── CHANNELS / FEATURES ── */
#features {
  background: var(--light-bg2);
}

.features-header {
  max-width: 600px;
  margin: 0 auto 4rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-border);
  max-width: 1200px;
  margin: 0 auto;
}

.feat-card {
  background: var(--light-bg2);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.feat-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet2), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.feat-card:hover::after {
  transform: scaleX(1);
}

.feat-icon {
  font-size: 2rem;
  margin-bottom: 1.1rem;
  line-height: 1;
}

.feat-icon i,
.forwhom-icon i,
.demo-ch-icon i {
  display: inline-block;
  line-height: 1;
}

.success-icon i {
  display: inline-block;
  line-height: 1;
  color: var(--blue);
}

.hero-badge i {
  vertical-align: middle;
  margin-right: 5px;
  font-size: 1em;
  color: #22c55e;
}

.btn-hero i {
  margin-right: 6px;
  vertical-align: middle;
  font-size: 1em;
}


.testi-stars i {
  font-size: 0.95rem;
}

.feat-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--light-text);
}

.feat-desc {
  font-size: 0.86rem;
  color: var(--light-muted);
  line-height: 1.65;
}

/* ── PRICING ── */
#pricing {
  background: var(--light-bg);
}

.pricing-header {
  max-width: 580px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-toggle label {
  font-size: 0.85rem;
  color: var(--light-muted);
  font-weight: 600;
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 25px;
}

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

.slider {
  position: absolute;
  inset: 0;
  background: var(--light-border);
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  background: #aab;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked+.slider {
  background: var(--blue);
}

.toggle-switch input:checked+.slider::before {
  transform: translateX(21px);
  background: #fff;
}

.badge-save {
  font-size: 0.68rem;
  background: rgba(45, 110, 245, 0.1);
  color: var(--blue);
  border: 1px solid rgba(45, 110, 245, 0.25);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  background: #fff;
  border: 1.5px solid var(--light-border);
  border-radius: 14px;
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 110, 245, 0.3);
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(45, 110, 245, 0.18);
}

.plan-card.featured::before {
  content: attr(data-popular-label);
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 16px;
  border-radius: 20px;
}

.plan-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.plan-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-muted);
  margin-top: 8px;
}

.plan-amount {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1;
  color: var(--light-text);
  font-family: 'Space Mono', monospace;
}

.plan-period {
  font-size: 0.82rem;
  color: var(--light-muted);
  align-self: flex-end;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.83rem;
  color: var(--light-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.plan-divider {
  height: 1px;
  background: var(--light-border);
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  font-size: 0.84rem;
  color: var(--light-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.plan-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features li.no::before {
  content: '✕';
  color: var(--light-border);
}

.plan-features li.no {
  opacity: 0.55;
}

.btn-plan {
  width: 100%;
  padding: 11px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.22s;
  border: none;
}

.btn-plan-outline {
  background: none;
  border: 1.5px solid var(--light-border);
  color: var(--light-muted);
}

.btn-plan-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(45, 110, 245, 0.04);
}

.btn-plan-fill {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(45, 110, 245, 0.35);
}

.btn-plan-fill:hover {
  background: var(--blue2);
  box-shadow: 0 4px 18px rgba(45, 110, 245, 0.5);
}

/* ── TESTIMONIALS ── */
#testimonials {
  background: var(--light-bg2);
}

.testi-header {
  max-width: 500px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testi-card {
  background: #fff;
  border: 1.5px solid var(--light-border);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}

.testi-card:hover {
  box-shadow: var(--shadow-md);
}

.testi-stars {
  color: #f59e0b;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  display: flex;
  gap: 2px;
}

.testi-text {
  font-size: 0.88rem;
  color: var(--light-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet2), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--light-text);
}

.testi-role {
  font-size: 0.73rem;
  color: var(--light-muted);
}

/* ── FAQ ── */
#faq {
  background: var(--light-bg);
}

.faq-header {
  max-width: 500px;
  margin: 0 auto 3rem;
  text-align: center;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--light-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item.open {
  border-color: rgba(45, 110, 245, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--light-text);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 1.3rem 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q:hover {
  color: var(--blue);
}

.faq-arrow {
  font-size: 0.75rem;
  color: var(--blue);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a-inner {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.87rem;
  color: var(--light-muted);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

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

/* ── INTL-TEL-INPUT — dropdown por encima del modal ── */
.iti--container {
  z-index: 3000 !important;
}

/* ── REGISTER MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 9, 26, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUp 0.35s ease;
}

/* Pantallas grandes: un poco más de ancho */
@media (min-width: 1400px) {
  .modal {
    max-width: 580px;
  }
}

/* Viewports cortos (laptops, 900px o menos de alto): reducir padding y max-height */
@media (max-height: 900px) {
  .modal {
    max-height: 94vh;
    max-height: 94dvh;
  }
  .modal-header {
    padding: 1.4rem 2rem 0;
  }
  .modal-body {
    padding: 1rem 2rem 1.5rem;
  }
  .modal-title {
    font-size: 1.2rem;
  }
  .reg-steps {
    margin-bottom: 0.8rem;
  }
  .form-group {
    margin-bottom: 0.7rem;
  }
}

@media (max-height: 700px) {
  .modal {
    max-height: 97vh;
    max-height: 97dvh;
  }
  .modal-header {
    padding: 1rem 2rem 0;
  }
  .modal-body {
    padding: 0.8rem 2rem 1rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
  .reg-steps {
    margin-bottom: 0.5rem;
  }
  .form-group {
    margin-bottom: 0.5rem;
  }
  .form-group textarea {
    min-height: 52px;
    resize: none;
  }
}


@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* #regForm es hijo directo de .modal — debe propagar el flex hacia header y body */
#regForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal-header {
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0; /* reset h2 margin */
  line-height: 1.3;
}

.modal-title span {
  color: var(--cyan);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--white);
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0; /* crítico para que overflow funcione en flexbox */
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.5rem;
}

.plan-opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  /* reset estilos de botón nativo */
  font-family: 'Exo 2', sans-serif;
  width: 100%;
}

.plan-opt:hover,
.plan-opt.selected {
  border-color: var(--blue);
  background: rgba(0, 170, 255, 0.08);
}

.plan-opt.selected {
  border-color: var(--cyan);
}

.plan-opt-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

.plan-opt-price {
  font-size: 0.7rem;
  color: var(--cyan);
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
}

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

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

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 6px;
  outline: none; /* focus style handled by border-color transition below */
  transition: border-color 0.2s;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue);
}

.form-group select option {
  background: var(--bg2);
  color: var(--white);
}

.form-group input::placeholder {
  color: rgba(136, 150, 179, 0.5);
}

.field-error {
  font-size: 0.73rem;
  color: #f87171;
  margin-top: 2px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-group input.error,
.form-group select.error {
  border-color: #f87171;
}

.terms-error {
  font-size: 0.73rem;
  color: #f87171;
  margin-top: 4px;
  display: none;
}

.terms-error.visible {
  display: block;
}


.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.terms-check input {
  margin-top: 3px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.terms-check label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.terms-check a {
  color: var(--cyan);
  text-decoration: none;
}

.btn-register {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--violet2), var(--blue));
  border: none;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.35);
  transition: all 0.25s;
}

.btn-register:hover {
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  display: none;
  text-align: center;
  padding: 2.5rem;
}

.success-screen.active {
  display: block;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.2rem;
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.success-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 2rem;
}

.success-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.step-num {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--violet2), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

.step-text strong {
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 3.5rem 4vw 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.83rem;
  color: var(--dark-muted);
  line-height: 1.65;
  max-width: 270px;
}

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  font-size: 0.82rem;
  color: var(--dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--dark-muted); /* #8fa3c8 — contraste 5.9:1 sobre #0b0f1e ✓ */
}

/* ── NAV LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
}

.rexa-logo-svg {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.rexa-logo-dark {
  display: block;
}

.rexa-logo-light {
  display: none;
}

nav.scrolled .rexa-logo-dark {
  display: none;
}

nav.scrolled .rexa-logo-light {
  display: block;
}

.rexa-logo-footer {
  height: 36px;
  opacity: 0.85;
}

@media(max-width:768px) {
  .rexa-logo-svg {
    height: 34px;
  }
}

@media(max-width:380px) {
  .rexa-logo-svg {
    height: 28px;
  }
}

/* ── REGISTER STEPS ── */
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.8rem;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.reg-step.active {
  color: var(--cyan);
}

.reg-step.done {
  color: var(--blue);
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reg-step.active .step-dot {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}

.reg-step.done .step-dot {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.step-line {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 0 4px;
}

/* ── SCROLL FADE ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOR WHOM ── */
#for-whom {
  background: var(--light-bg);
}

.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.forwhom-card {
  background: #fff;
  border: 1.5px solid var(--light-border);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.25s;
  cursor: default;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.forwhom-card:hover {
  border-color: rgba(45, 110, 245, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.forwhom-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.forwhom-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 0.55rem;
}

.forwhom-desc {
  font-size: 0.84rem;
  color: var(--light-muted);
  line-height: 1.65;
}

.forwhom-tag {
  display: inline-block;
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue2);
  background: rgba(45, 110, 245, 0.08);
  border: 1px solid rgba(45, 110, 245, 0.2);
  border-radius: 5px;
  padding: 3px 10px;
}

/* ── BENEFIT PILLS on features ── */
.feat-benefit {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue2);
  background: rgba(45, 110, 245, 0.08);
  border: 1px solid rgba(45, 110, 245, 0.18);
  border-radius: 5px;
  padding: 3px 10px;
  margin-top: auto;
  letter-spacing: 0.04em;
}

/* ── DEMO MOCKUP SECTION ── */
#demo {
  background: var(--dark-bg2);
}

.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-text p {
  font-size: 0.95rem;
  color: var(--dark-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.demo-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dark-muted);
}

.demo-feat::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-screen {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.demo-topbar {
  background: rgba(0, 170, 255, 0.08);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-title-bar {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 8px;
  font-family: 'Space Mono', monospace;
}

.demo-body {
  padding: 16px;
}

.demo-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.demo-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.demo-stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
}

.demo-stat-lbl {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}

.demo-conv-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-conv {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-ch-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.demo-ch-info {
  flex: 1;
}

.demo-ch-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
}

.demo-ch-msg {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.demo-ch-badge {
  font-size: 0.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet2), var(--blue));
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
}

.demo-ch-time {
  font-size: 0.6rem;
  color: var(--muted);
}

/* ── COMPARISON ── */
#comparison {
  background: var(--light-bg2);
}

.comp-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--light-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comp-table th {
  background: var(--light-bg3);
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--light-muted);
  border-bottom: 1.5px solid var(--light-border);
}

.comp-table th.rexa-col {
  background: rgba(45, 110, 245, 0.07);
  color: var(--blue);
}

.comp-table td {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--light-muted);
  border-bottom: 1px solid var(--light-border);
  background: #fff;
}

.comp-table td.rexa-col {
  color: var(--light-text);
  font-weight: 600;
  background: rgba(45, 110, 245, 0.04);
}

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

.comp-yes {
  color: #16a34a;
  font-weight: 700;
}

.comp-no {
  color: rgba(0, 0, 0, 0.2);
}

.comp-partial {
  color: #d97706;
}

.iti--separate-dial-code.iti--show-flags .iti__selected-dial-code {
color: var(--white);
}

/* ── MOBILE ── */
@media(max-width:768px) {
  .lang-bar {
    height: 32px;
    padding: 0 0.6rem;
    gap: 1px;
    justify-content: flex-end;
  }

  .lang-btn {
    padding: 2px 8px;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .lang-sep {
    margin: 0 1px;
    font-size: 0.7rem;
  }

  nav {
    top: 32px;
    height: 58px;
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-cta {
    gap: 6px;
  }

  .btn-ghost {
    padding: 7px 12px;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
  }

  .btn-primary {
    padding: 7px 16px;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
  }

  #hero {
    padding: 100px 1.4rem 50px;
  }

  h1 {
    font-size: clamp(2rem, 8.5vw, 3.2rem);
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 1.6rem;
    line-height: 1.65;
  }

  .hero-badge {
    font-size: 0.66rem;
    padding: 5px 12px;
    letter-spacing: 0.06em;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-hero {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 13px 13px;
    font-size: 0.88rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
  }

  .hero-stats .stat {
    min-width: calc(50% - 0.5rem);
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  section {
    padding: 60px 1.2rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feat-card {
    padding: 1.8rem 1.5rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .plan-card.featured::before {
    font-size: 0.6rem;
    padding: 3px 12px;
  }

  .pricing-toggle {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .faq-q {
    font-size: 0.88rem;
    padding: 1.2rem 1rem;
  }

  .faq-a-inner {
    padding: 0 1rem 1.2rem;
    font-size: 0.83rem;
  }

  .modal {
    border-radius: 12px;
    position: static;
    max-width: calc(100% - 2rem);
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto;
  }

  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .modal-header {
    padding: 1rem 1rem 0;
  }

  .modal-body {
    padding: 0.8rem 1rem 1rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .reg-steps {
    margin-bottom: 0.6rem;
  }

  .plan-selector {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 0.8rem;
  }

  .plan-opt {
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  .form-group {
    margin-bottom: 0.6rem;
  }

  .form-group label {
    font-size: 0.65rem;
    margin-bottom: 3px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 7px 10px;
    font-size: 0.82rem;
    width: 100%;
  }

  .form-group textarea {
    rows: 2;
    min-height: 52px;
    resize: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .terms-check {
    margin: 0.5rem 0;
    font-size: 0.75rem;
  }

  .btn-register {
    padding: 10px;
    font-size: 0.85rem;
  }

  .reg-steps {
    gap: 0;
  }

  .step-line {
    width: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .success-screen {
    padding: 1.5rem;
  }

  .demo-wrap {
    grid-template-columns: 1fr;
  }

  .comp-table {
    font-size: 0.75rem;
  }

  .comp-table th,
  .comp-table td {
    padding: 0.7rem 0.8rem;
  }
}

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

@media(max-width:380px) {
  .lang-btn {
    padding: 2px 7px;
    font-size: 0.62rem;
  }

  .btn-ghost {
    display: none;
  }

  .btn-primary {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  nav {
    padding: 0 0.8rem;
  }

  .nav-logo-icon-img {
    height: 28px;
  }

  .nav-logo-name {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero {
    min-width: unset;
    width: 100%;
  }
}