:root {
  --bg-page: #f5f7fb;
  --bg-white: #ffffff;
  --primary: #0558F8;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
}

/* RESET */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.header {
  padding: 20px 20px 20px 20px;
  display: flex;
  justify-content: center;
  background: var(--bg-white);
  color: var(--text-main);
  position: relative;
}

.header-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  align-items: center;
  width: 200px;
  height: 37px;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  pointer-events: none;
  /* Prevent clicks when hidden */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a,
.mobile-nav button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
}

.mobile-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.mobile-nav a:hover {
  background: var(--bg-page);
}

/* HERO */

.hero {
  background: #ecf2ff;
  padding: 32px 20px 56px;
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-left: 40px;
}

.hero-inner>div:first-child {
  max-width: 460px;
}

.hero-title {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 430px;
  margin-bottom: 24px;
}

.hero-cta {
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}


/* PHONES */

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

.hero-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #0558F8);
  opacity: 0.18;
  z-index: 0;
}

.phone-stack {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.phone-stack img {
  border: 0px solid #C7F000;
  border-radius: 20px;
}



/* MAIN */

.main {
  flex: 1;
  padding: 36px 20px 40px;
  display: flex;
  justify-content: center;
}

.main-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* SIMULADOR */

.simulator-card {
  display: flex;
  gap: 32px;
  padding: 28px;
  background: var(--bg-white);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.sim-left {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Títulos e inputs */

.step-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.step-help {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.row-inline {
  display: flex;
  gap: 32px;
}

.inline-block {
  flex: 1;
}

.inline-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Inputs */

.input-box {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
}

.input-box input {
  width: 100px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  text-align: center;
}

/* Sesiones */

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 16px;
  margin-top: 16px;
  align-items: flex-start;
}

.session-label {
  font-size: 1rem;
  font-weight: 500;
  text-align: right;
}

.session-label small {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  text-align: right;
  line-height: 1.35;
}

.session-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-controls input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.session-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 0.92rem;
}


.session-count-input {
  border: none;
  background: transparent;
  width: 44px;
  text-align: right;
  font-weight: 700;
  font-size: 0.92rem;
  outline: none;
}

.pill-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-input input {
  border: none;
  background: transparent;
  width: 60px;
  text-align: right;
  font-size: 0.9rem;
  outline: none;
}

.session-symbol {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

/* Botones */

.buttons-row {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

.sim-button {
  padding: 10px 24px;
  /* un pelín menos alto para que se vea más compacto */
  border: none;
  border-radius: 8px;
  /* <-- radio 8 */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}


.sim-button#calculateBtn {
  background: #111827;
  color: #ffffff;
}

.sim-button#calculateBtn:hover {
  background: #1f2937;
}

.sim-button#calculateBtn:active {
  background: #374151;
}

.sim-button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.sim-button.secondary:hover {
  background: #d1d5db;
}

.sim-button.secondary:active {
  background: #9ca3af;
}

/* RESULTADO */

.result-title {
  font-size: 2rem;
  font-weight: 600;
  color: #0558F8;
}

/* PESTAÑAS ESCENARIOS */

.scenario-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.scenario-tabs {
  display: inline-flex;
  gap: 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.8rem;
  margin-top: 4px;
}

.scenario-tab {
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.scenario-tab.active {
  background: rgba(5, 88, 248, 0.15);
  border-bottom: 3px solid #0558F8;
  font-weight: 600;
  color: #0558F8;
  border-radius: 8px 8px 0 0;
}

/* BARRA GRIS (ingresos por tipo) */

.sim-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #c7c5c5;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sim-summary strong {
  color: var(--text-main);
}

/* KPIs */

.kpis-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kpis-top {
  display: flex;
  gap: 10px;
}

.kpi-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid #c2cce9;
  padding: 12px 14px;
}

.kpi-card.small {
  flex: 1;
}

.kpi-card.primary {
  width: 100%;
  color: #0558F8;
  box-shadow: 0 10px 25px rgba(5, 88, 248, 0.18);
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.kpi-value {
  font-size: 2.1rem;
  font-weight: 600;
}

.kpi-card.small .kpi-value {
  font-size: 1.7rem;
}

.kpi-subline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* GRÁFICAS */

.chart-section {
  margin-top: 22px;
}

.chart-card {
  width: 100%;
  min-height: 450px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  color: var(--text-main);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chart-header .chart-title {
  margin: 0;
}

.chart-card-bars {
  margin-top: 16px;
  min-height: 360px;
}

.chart-placeholder {
  flex: 0 0 420px;
  border-radius: 10px;
  overflow: hidden;
}

.chart-placeholder-bars {
  flex: 0 0 320px;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-main);
}

#demandChart,
#revenueChart {
  width: 100% !important;
  height: 100% !important;
}

.chart-legend {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.legend-worst {
  background: #00338D;
}

.legend-base {
  background: #296BFF;
}

.legend-best {
  background: #0558F8;
}

/* FOOTER */

.footer {
  padding: 18px 20px;
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  justify-content: center;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  margin-left: 16px;
}

/* RESPONSIVE */

@media (max-width: 960px) {

  /* Show hamburger menu */
  .hamburger {
    display: flex;
    pointer-events: auto;
    /* Re-enable clicks in mobile */
  }

  .mobile-nav-overlay {
    display: none;
  }

  /* Hide desktop navigation */
  .header-actions {
    display: none;
  }

  .logo {
    width: 160px;
    height: auto;
  }

  .hero {
    padding: 24px 20px 32px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    text-align: center;
    gap: 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-proof {
    justify-content: center;
  }

  .hero-inner>div:first-child {
    max-width: none;
  }

  .hero-phones {
    order: -1;
    min-height: 200px;
    margin-bottom: 0;
  }

  .phone-stack img {
    max-width: 240px;
    border: 0;
    border-radius: 20px;
  }

  .hero-circle {
    width: 240px;
    height: 240px;
  }

  .simulator-card {
    flex-direction: column;
  }

  /* Improve simulator mobile sizing */
  .step-title {
    font-size: 1rem;
  }

  .step-help {
    font-size: 0.85rem;
  }

  .input-box input {
    width: 80px;
    font-size: 0.9rem;
  }

  .session-label {
    font-size: 0.95rem;
  }

  .session-label small {
    font-size: 0.85rem;
  }

  .pill {
    padding: 5px 8px;
    font-size: 0.85rem;
  }

  .pill-input input {
    width: 50px;
    font-size: 0.85rem;
  }

  .session-count-input {
    width: 38px;
    font-size: 0.85rem;
  }

  .result-title {
    font-size: 1.6rem;
  }

  .kpi-value {
    font-size: 1.8rem;
  }

  .kpi-card.small .kpi-value {
    font-size: 1.4rem;
  }
}

@media (max-width: 700px) {
  .row-inline {
    flex-direction: column;
    gap: 20px;
  }

  .session-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .session-label {
    text-align: left;
  }

  .session-label small {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .simulator-card {
    padding: 16px 12px;
  }

  .main-inner {
    gap: 20px;
  }

  .chart-card {
    padding: 12px;
  }

  .buttons-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
  }

  .buttons-row .sim-button {
    width: 100%;
    justify-content: center;
  }

  .sim-left {
    gap: 20px;
  }

  .sim-right {
    gap: 12px;
  }

  .scenario-tabs {
    gap: 12px;
    font-size: 0.75rem;
  }

  .scenario-tab {
    padding: 8px 12px;
  }

  .kpi-label {
    font-size: 0.85rem;
  }

  .sim-summary {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}

/* MODAL */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 780px;
  background: var(--bg-white);
  border-radius: 18px;
  padding: 24px 26px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  position: relative;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 12px;
  font-size: 0.9rem;
}

.modal-table th,
.modal-table td {
  padding: 8px 10px;
  text-align: center;
}

.modal-table th {
  border-bottom: 1px solid var(--border-soft);
  font-weight: 600;
}

.modal-table td {
  border-top: 1px solid var(--border-soft);
}

.modal-notes p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Botón info */

.scenario-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(5, 88, 248, 0.15);
  color: #0558F8;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.scenario-info-btn:hover {
  background: rgba(5, 88, 248, 0.25);
}

/* Info button next to titles */
.step-title .scenario-info-btn {
  margin-left: 8px;
  vertical-align: middle;
}

/* Tooltip comunidad */

.step-title.tooltip-community {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: help;
}

.step-title.tooltip-community::after {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: #E5E7EB;
  color: #374151;
  pointer-events: none;
}

.step-title.tooltip-community::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 100%;
  transform: translateY(6px);
  background: #0F172A;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  width: 330px;
  max-width: none;
  white-space: normal;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 30;
}

.step-title.tooltip-community:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Oculta subline container (mantiene estructura original) */

.kpi-subline-container {
  display: none;
}

/* Página de elección de perfil para el simulador */

.profile-chooser {
  max-width: 1040px;
  margin: 48px auto 72px;
  padding: 0 24px 40px;
}

.profile-hero h1 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.profile-hero p {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Grid de tarjetas */

.profile-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.profile-card {
  background: var(--bg-white);
  color: var(--text-main);
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 20px 20px 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-card--highlight {
  border: 2px solid #C7F000;
  /* verde lima */
  box-shadow: 0 16px 45px rgba(37, 99, 235, 0.18);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 10px;
}

.profile-badge--soft {
  background: #f5f3ff;
  color: #6d28d9;
}

.profile-badge--neutral {
  background: #f3f4f6;
  color: var(--text-muted);
}

.profile-card h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.profile-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.profile-list li::before {
  content: "•";
  color: #2563eb;
  margin-right: 6px;
}

.profile-button {
  margin-top: auto;
  width: 100%;
  border-radius: 8px;
  /* mismo ratio cuadradito que el resto */
}

/* Reutiliza estilos de .sim-button ya definidos */
.profile-button.sim-button {
  font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-chooser {
    margin-top: 32px;
    padding: 0 0 40px;
    overflow: hidden;
  }

  .profile-hero {
    padding: 0 24px;
  }

  .profile-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 16px 20px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -ms-overflow-style: none; /* IE/Edge legacy */
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #C7F000 #f3f4f6;
  }

  .profile-grid::-webkit-scrollbar {
    height: 6px;
  }

  .profile-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
  }

  .profile-grid::-webkit-scrollbar-thumb {
    background: #C7F000;
    border-radius: 10px;
  }

  .profile-grid::-webkit-scrollbar-thumb:hover {
    background: #b5da00;
  }

  .profile-card {
    min-width: 85%;
    max-width: 85%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    flex-shrink: 0;
  }
  /* Testimonio: fijo fuera del carrusel y centrado */
  .testimonial-section {
    padding: 0 24px 28px;
  }

  .testimonial-card {
    max-width: 520px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 18px;
  }

  .testimonial-text {
    max-width: none;
    align-items: center;
  }

  .testimonial-person {
    justify-content: center;
  }

}

/* -----------------------------
   index2: reemplazo de inline styles
   (sin cambios visuales)
------------------------------ */

@media (min-width: 961px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

.top-nav {
  display: flex;
  gap: 14px;
}

.top-nav a {
  font-size: 1rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-stats strong {
  color: var(--text-main);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-proof-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  object-fit: cover;
}

.avatar-stack img+img {
  margin-left: -8px;
}

/* Mockup limpio (sin fondo verde) */
.phone--clean {
  background: transparent;
  overflow: visible;
  /* mantiene look actual: sin recorte raro */
  border-radius: 0;
  box-shadow: none;
}

/* Cards: cabecera con avatar */
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.profile-kicker {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Testimonio fondo negro */
.testimonial-section {
  margin-top: 28px;
}

.testimonial-card {
  background: var(--text-main);
  border-radius: 18px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
}

.testimonial-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  max-width: 640px;
}

.testimonial-quote {
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.testimonial-meta {
  font-size: 0.82rem;
  line-height: 1.2;
  color: #e5e7eb;
}

.testimonial-city {
  color: #94a3b8;
}


/* Validación: cuota mínima */
.field-error {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #b91c1c;
}

.input-box.input-error {
  border-color: #ef4444;
  background: #fff1f2;
}

/* CTA cards del simulador (alineadas con el hero) */
/* CTA cards del simulador */
.cta-card {
  width: 100%;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0;
  /* padding interno eliminado porque usaremos flex children */
  background: var(--text-main);
  /* Fondo oscuro */
  border-radius: 20px;
  border: 1px solid #C7F000;
  /* Borde fluor */
  box-shadow: 0 20px 50px rgba(5, 88, 248, 0.15);
  display: flex;
  align-items: stretch;
  /* Para que la imagen ocupe todo el alto */
  justify-content: space-between;
  overflow: hidden;
  /* Para recortar la imagen */
  position: relative;
}

.cta-content {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
}

.cta-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  /* Título blanco */
  line-height: 1.2;
}

.cta-card p {
  font-size: 1.05rem;
  color: #d1d5db;
  /* Texto gris claro */
  max-width: 580px;
  margin: 0 0 24px;
}

/* Imagen lateral */
.cta-image {
  flex: 0 0 30%;
  /* Reducir ancho */
  background: radial-gradient(circle at 50% 50%, rgba(5, 88, 248, 0.2), rgba(17, 24, 39, 0));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.cta-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  /* Limitar altura */
  object-fit: contain;
  mix-blend-mode: normal;
}

/* Modificación botón dentro de CTA */
.cta-card .hero-cta {
  background: #C7F000;
  color: #111827;
  /* Texto oscuro sobre fluor */
  margin-top: 0;
}

.cta-card .hero-cta:hover {
  background: #b5da00;
}

/* Responsive CTA */
@media (max-width: 960px) {
  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    align-items: center;
    padding: 32px 24px;
  }

  .cta-image {
    width: 100%;
    height: 250px;
    /* Altura fija en mobile */
    flex: none;
  }
}

/* Scroll lock for mobile menu (Safari/iOS friendly) */
html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100%;
}
