/* ===================================================================
   Mundo CPA - Red Global de Marketing de Rendimiento
   Diseño Limpio, Sencillo y Humano en Español
   Paleta: Blanco, Esmeralda, Menta y Carbón Obsidiana
   Tipografía: Space Grotesk (Titulares) + DM Sans (Cuerpo)
   =================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f8faf9;
  --bg-emerald-light: #ecfdf5;
  --bg-emerald-soft: #d1fae5;

  --emerald-primary: #059669;
  --emerald-dark: #047857;
  --emerald-deep: #064e3b;
  --emerald-mint: #10b981;

  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-emerald: #a7f3d0;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition: all 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilidades */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-emerald { color: var(--emerald-primary) !important; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.bg-light { background-color: var(--bg-subtle); }

/* Barra Superior */
.top-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--text-body);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-tag {
  background: var(--bg-emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.top-link {
  color: var(--emerald-dark);
  font-weight: 600;
  text-decoration: none;
}

.top-link:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
  border-bottom-color: var(--border-medium);
}

.navbar .container {
  max-width: 1220px;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
  width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-symbol {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-logo:hover .brand-symbol {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 10px rgba(5, 150, 105, 0.35));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-accent {
  color: var(--emerald-primary);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* Menú Central */
.nav-menu {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(10px, 1.4vw, 22px);
  margin: 0;
  padding: 0;
}

.menu-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.menu-link:hover {
  color: var(--emerald-dark);
  background: var(--bg-emerald-light);
  transform: translateY(-1px);
}

/* Área de Autenticación / Acciones */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-nav-login {
  background: #ffffff !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-title) !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  background: var(--bg-subtle) !important;
  border-color: var(--emerald-primary) !important;
  color: var(--emerald-dark) !important;
  transform: translateY(-1px);
}

.btn-nav-signup {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: 1px solid transparent !important;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.28);
  transition: all 0.2s ease;
}

.btn-nav-signup:hover {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
  transform: translateY(-1.5px);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-emerald {
  background: var(--emerald-primary);
  color: #ffffff;
}

.btn-emerald:hover {
  background: var(--emerald-dark);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-title);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-body);
}

.btn-light {
  background: var(--bg-subtle);
  border-color: var(--border-light);
  color: var(--text-title);
}

.btn-light:hover {
  background: #ffffff;
  border-color: var(--border-medium);
}

.btn-white {
  background: #ffffff;
  color: var(--emerald-dark);
}

.btn-white:hover {
  background: var(--bg-emerald-light);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.98rem;
}

/* Mobile Toggle & Menú Móvil */
.mobile-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  transition: var(--transition);
}

.mobile-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-title);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-btn.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-btn.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-btn.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop del Menú Móvil */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(340px, 86vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  border-left: 1px solid var(--border-light);
  padding: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.close-menu {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.close-menu:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-title);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.2s ease;
}

.m-link:hover {
  background: var(--bg-emerald-light);
  color: var(--emerald-dark);
  padding-left: 18px;
}

.mobile-auth-actions {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* HERO SECTION */
.hero-section {
  padding: 80px 0 60px;
  background: #ffffff;
}

.hero-container {
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-emerald-light);
  color: var(--emerald-dark);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-title);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-body);
  flex-wrap: wrap;
}

.hl-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hl-icon {
  color: var(--emerald-primary);
  font-weight: 700;
}

/* STATS STRIP */
.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--emerald-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SECCIONES COMUNES */
.section {
  padding: 75px 0;
}

.section-title-wrap {
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--emerald-primary);
  display: inline-block;
  margin-bottom: 8px;
}

.section-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-title-wrap p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* MODELOS (Afiliados vs Anunciantes) */
.modelos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.modelo-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge-role {
  display: inline-block;
  background: var(--bg-emerald-light);
  color: var(--emerald-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.badge-role.badge-dark {
  background: #f1f5f9;
  color: var(--text-title);
}

.modelo-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 10px;
}

.modelo-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-bullets li {
  font-size: 0.9rem;
  color: var(--text-body);
  position: relative;
  padding-left: 20px;
}

.feature-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--emerald-primary);
  font-weight: 700;
}

/* TABLA DE OFERTAS */
.offers-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.f-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.f-pill.active {
  background: var(--text-title);
  color: #ffffff;
  border-color: var(--text-title);
}

.search-wrap input {
  padding: 8px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.86rem;
  outline: none;
  min-width: 250px;
}

.search-wrap input:focus {
  border-color: var(--emerald-primary);
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.clean-table th {
  background: var(--bg-subtle);
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.clean-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.clean-table tr:last-child td {
  border-bottom: none;
}

.clean-table tr:hover td {
  background: #fbfdfc;
}

.t-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pill-cat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cat-salud { background: #dcfce7; color: #15803d; }
.cat-finanzas { background: #fef9c3; color: #a16207; }
.cat-ecom { background: #e0e7ff; color: #4338ca; }
.cat-sorteos { background: #f3e8ff; color: #7e22ce; }
.cat-apps { background: #e0f2fe; color: #0369a1; }

.table-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* CALCULADORA DE INGRESOS */
.calc-card {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: #ffffff;
}

.calc-intro {
  margin-bottom: 32px;
}

.calc-intro h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.form-item {
  margin-bottom: 22px;
}

.form-lbl {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-title);
  display: block;
  margin-bottom: 6px;
}

.lbl-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.val-pill {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald-primary);
}

.select-clean {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-title);
  outline: none;
}

.select-clean:focus {
  border-color: var(--emerald-primary);
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-primary);
  cursor: pointer;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-results-side {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.res-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--emerald-dark);
}

.res-main-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.1;
  margin: 4px 0;
}

.res-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.res-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.rb-title {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rb-num {
  font-size: 0.9rem;
  color: var(--text-title);
}

/* VENTAJAS (Editorial 4 Columnas) */
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ventaja-item {
  border-top: 2px solid var(--emerald-primary);
  padding-top: 18px;
}

.v-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald-primary);
  display: block;
  margin-bottom: 6px;
}

.ventaja-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.ventaja-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TESTIMONIOS */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonio-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 10px;
}

.testimonio-txt {
  font-size: 0.9rem;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.avatar-green { background: #047857; }
.avatar-dark { background: #0f172a; }

.testimonio-autor strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-title);
}

.testimonio-autor span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-wrap {
  max-width: 750px;
}

.faq-accordion {
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
  text-align: left;
  cursor: pointer;
}

.faq-toggle:hover {
  color: var(--emerald-primary);
}

.faq-sign {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-sign {
  transform: rotate(45deg);
  color: var(--emerald-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.active .faq-content {
  max-height: 180px;
  padding-bottom: 18px;
}

/* CTA BANNER */
.cta-banner {
  background: var(--emerald-dark);
  color: #ffffff;
  padding: 60px 0;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 550px;
  margin: 0 auto 26px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* FOOTER */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 50px 0 24px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.f-col h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
}

.f-col a:hover {
  color: var(--emerald-primary);
}

.footer-bottom-row {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.f-legal-links {
  display: flex;
  gap: 8px;
}

.f-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ===================================================================
   MODAL DE REGISTRO E INICIO DE SESIÓN
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  background: #ffffff;
  color: var(--text-title);
}

.modal-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.m-tab-btn {
  background: transparent;
  border: none;
  padding: 14px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.m-tab-btn.active {
  color: var(--emerald-dark);
  border-bottom-color: var(--emerald-primary);
  background: #ffffff;
}

.modal-content-area {
  padding: 28px;
}

.modal-header-info {
  text-align: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.role-opt input {
  display: none;
}

.role-tag {
  display: block;
  text-align: center;
  padding: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.role-opt input:checked + .role-tag {
  background: var(--bg-emerald-light);
  border-color: var(--emerald-primary);
  color: var(--emerald-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 4px;
}

.input-text {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--text-title);
  outline: none;
}

.input-text:focus {
  border-color: var(--emerald-primary);
}

.campo-help {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.campo-check {
  margin: 14px 0 18px;
}

.chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.chk-label a {
  color: var(--emerald-primary);
  text-decoration: none;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

/* VISTA DE ÉXITO EXACTA SOLICITADA */
.vista-exito {
  text-align: center;
  padding: 6px 0;
}

.icono-exito {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-emerald-light);
  border: 2px solid var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.exito-titulo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 10px;
}

.alerta-exito {
  background: var(--bg-emerald-light);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.mensaje-exito {
  color: var(--emerald-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.detalle-exito {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.resumen-solicitud {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  text-align: left;
}

.fila-res {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fila-res span {
  color: var(--text-muted);
}

.badge-estado {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.enlace-olvido {
  font-size: 0.78rem;
  color: var(--emerald-primary);
  text-decoration: none;
}

.aviso-demo {
  margin-top: 12px;
  background: var(--bg-emerald-light);
  border: 1px solid var(--border-emerald);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--emerald-dark);
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1140px) and (min-width: 993px) {
  .nav-content {
    gap: 1rem;
  }
  .nav-links {
    gap: 8px;
  }
  .menu-link {
    font-size: 0.86rem;
    padding: 6px 10px;
  }
  .btn-nav-login {
    padding: 7px 14px;
    font-size: 0.84rem;
  }
  .btn-nav-signup {
    padding: 7px 16px;
    font-size: 0.84rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .mobile-btn {
    display: flex;
  }
  .nav-auth {
    margin-left: 0;
  }
  .hero-headline { font-size: 2.5rem; }
  .modelos-grid { grid-template-columns: 1fr; }
  .calc-body { grid-template-columns: 1fr; }
  .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
  .footer-top-row { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .nav-content {
    height: 64px;
  }
  .nav-auth .btn-nav-login,
  .nav-auth .btn-nav-signup {
    display: none;
  }
  .hero-headline { font-size: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .ventajas-grid { grid-template-columns: 1fr; }
  .modal-content-area { padding: 20px 16px; }
  .calc-card { padding: 24px 16px; }
  .footer-links { grid-template-columns: 1fr; gap: 16px; }
}
