:root {
  /* Acento "Necesito dinero" (amarillo suave) — usa el nombre --coral en el CSS */
  --coral: #f6cf5b;
  --coral-2: #f9dc85;
  --coral-deep: #a9790a;
  /* Acento "Tengo dinero" (verde limón suave = ganancias) */
  --green: #a5d94f;
  --green-2: #bce576;
  --green-deep: #6ca516;
  --danger: #d6554d;
  --cream: #ffffff;
  --cream-2: #ffffff;
  --ink: #2a211d;
  --ink-soft: #7a6d63;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(60, 25, 20, 0.16);
  --shadow-sm: 0 8px 22px rgba(60, 25, 20, 0.10);
  --font: "Futura", "Jost", "Century Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
b, strong { font-weight: 600; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 26px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; line-height: 1; }
.logo-clic { font-weight: 900; font-size: 27px; letter-spacing: -1.8px; }
.logo-aval { font-weight: 300; font-size: 25px; letter-spacing: -0.5px; margin-left: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: 2px solid transparent; font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-cream { background: var(--cream); color: var(--coral-deep); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--coral-deep); color: #fff; transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream); color: var(--ink);
  border-bottom: 1px solid rgba(42, 33, 29, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: none; }
.nav-links a { font-size: 15px; font-weight: 600; opacity: 0.9; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.link-ingresar { font-weight: 500; font-size: 15px; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: inherit; }

/* ---------- HERO con switch ---------- */
.hero {
  background: var(--cream); color: var(--ink);
  padding: 46px 0 78px;
}

/* Switch tipo interruptor */
.switch-wrap { display: flex; justify-content: center; margin-bottom: 52px; }
.switch {
  position: relative; display: inline-flex;
  background: rgba(42,33,29,0.07); border-radius: 999px; padding: 6px;
}
.switch-glow {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  background: var(--cream); border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform 0.32s cubic-bezier(.4,1.3,.5,1), background 0.32s;
}
body.mode-tengo .switch-glow { transform: translateX(100%); background: var(--green); }
.switch button {
  position: relative; z-index: 2; border: none; background: none; cursor: pointer;
  padding: 13px 30px; font-size: 15px; font-weight: 600; font-family: var(--font);
  color: inherit; opacity: 0.75; transition: color 0.3s, opacity 0.3s; white-space: nowrap;
}
.switch button.active { opacity: 1; }
body:not(.mode-tengo) .switch button[data-mode="necesito"].active { color: var(--coral-deep); }
body.mode-tengo .switch button[data-mode="tengo"].active { color: var(--ink); }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -1.8px; font-weight: 600; }
.hero h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 6px; }
.hero .lead { font-size: 20px; margin: 22px 0 30px; opacity: 0.92; max-width: 460px; }
.hero-points { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.hero-points div { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; }
.hero-points .dot { width: 22px; height: 22px; border-radius: 50%; background: currentColor; display: grid; place-items: center; flex-shrink: 0; }
.hero-points .dot::after { content: "✓"; color: var(--coral); font-size: 12px; font-weight: 900; }
body.mode-tengo .hero-points .dot::after { color: var(--green); }

/* Columna derecha */
.mode-invest { display: none; }
body.mode-tengo .calc { display: none; }
body.mode-tengo .mode-invest { display: block; }

/* En modo "Tengo dinero" (inversionista) se oculta la sección de garantías */
body.mode-tengo #garantias { display: none; }

/* En modo "Tengo dinero" el botón del CTA final pasa a verde */
body.mode-tengo .cta .btn { background: var(--green); color: var(--ink); }
body.mode-tengo .cta .btn:hover { background: var(--green-deep); color: #fff; }

.mode-invest img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ===== Simulador — estilo homogéneo (mismo tamaño, peso y color) ===== */
.calc { background: var(--cream-2); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
/* Toda la tipografía del simulador: 15px, peso 500, color ink */
.calc, .calc label, .calc input, .calc button, .calc .prefix, .calc span, .calc .recibe-lbl, .calc .recibe-val {
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.calc > h3 { font-weight: 500; margin-bottom: 16px; text-align: center; }

.calc-field { margin-bottom: 14px; }
.calc-field > label { display: block; margin-bottom: 9px; }
.calc-field > label b { font-weight: 500; }

/* Segmento de garantía */
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 11px 4px; border-radius: var(--radius-sm); border: 2px solid #e7dcc9; background: #fff; cursor: pointer; font-family: var(--font); transition: all 0.15s; }
.seg button.active { border-color: var(--coral); background: rgba(246,207,91,0.18); }

/* Campo de valor comercial */
.calc-input { display: flex; align-items: center; border: 2px solid #e7dcc9; border-radius: var(--radius-sm); background: #fff; transition: border-color 0.15s; }
.calc-input:focus-within { border-color: var(--coral); }
.calc-input .prefix { padding: 0 4px 0 14px; }
.calc-input input { flex: 1; width: 100%; border: none; outline: none; background: transparent; padding: 12px 14px 12px 4px; font-family: var(--font); }

/* Resultado */
.calc-result { background: #fff; border: 1px solid #efe4d3; border-radius: var(--radius-sm); padding: 14px 16px; text-align: center; margin-bottom: 14px; }
.calc-result .recibe-lbl b { font-weight: 500; color: var(--green-deep); }
.calc-result .recibe-val { line-height: 1.35; margin-top: 2px; color: var(--green-deep); }

/* Resumen */
.calc-summary { border-top: 1px solid #eaddcb; padding-top: 14px; margin-bottom: 16px; }
.calc-summary .line { display: flex; justify-content: space-between; align-items: center; }
.calc-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-tag { color: var(--ink); font-weight: 500; font-size: 14px; letter-spacing: 0.6px; text-transform: uppercase; }
.section-title { font-size: 40px; letter-spacing: -1px; font-weight: 600; margin-top: 10px; }
.section-sub { font-size: 18px; color: var(--ink-soft); margin: 12px auto 0; max-width: 540px; }

/* Garantías con imágenes reales */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 760px; margin: 0 auto; }
.gcard { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid #efe4d3; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gcard .g-img { aspect-ratio: 3/2; overflow: hidden; }
.gcard .g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gcard:hover .g-img img { transform: scale(1.06); }
.gcard .g-body { padding: 22px 24px 26px; }
.gcard h4 { font-size: 21px; }
.gcard p { color: var(--ink-soft); font-size: 14px; margin: 6px 0 14px; }
.gcard .g-rate { font-size: 13px; font-weight: 600; color: var(--coral-deep); background: rgba(245,179,1,0.15); padding: 7px 15px; border-radius: 999px; display: inline-block; }

/* Cómo funciona */
.bg-coral { background: var(--cream); }
.bg-coral .section-tag { color: var(--ink); }
.bg-coral .section-sub { color: var(--ink-soft); }
/* Línea de tiempo */
.timeline { --tl: var(--coral); --tl-glow: rgba(246, 207, 91, 0.55); list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; margin: 0; }
.tl-tengo { --tl: var(--green); --tl-glow: rgba(165, 217, 79, 0.55); }

/* Mostrar la línea de tiempo según el modo */
.tl-tengo { display: none; }
body.mode-tengo .tl-necesito { display: none; }
body.mode-tengo .tl-tengo { display: grid; }

.tl-step { position: relative; padding: 0 10px; text-align: center; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.timeline.in-view .tl-step { opacity: 1; transform: none; }
.timeline.in-view .tl-step:nth-child(1) { transition-delay: 0.05s; }
.timeline.in-view .tl-step:nth-child(2) { transition-delay: 0.13s; }
.timeline.in-view .tl-step:nth-child(3) { transition-delay: 0.21s; }
.timeline.in-view .tl-step:nth-child(4) { transition-delay: 0.29s; }
.timeline.in-view .tl-step:nth-child(5) { transition-delay: 0.37s; }
.timeline.in-view .tl-step:nth-child(6) { transition-delay: 0.45s; }

/* Conector entre nodos */
.tl-step:not(:last-child)::before {
  content: ""; position: absolute; top: 27px; left: 50%; width: 100%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--tl) 0 8px, transparent 8px 15px);
  opacity: 0.55; z-index: 0;
}
.tl-node {
  position: relative; z-index: 1; width: 54px; height: 54px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--tl); color: var(--ink);
  display: grid; place-items: center; font-weight: 600; font-size: 21px;
  box-shadow: 0 6px 16px var(--tl-glow); transition: transform 0.2s;
}
.tl-step:hover .tl-node { transform: scale(1.12); }
.tl-card { background: #fff; border: 1px solid #efe4d3; border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; min-height: 128px; }
.tl-step:hover .tl-card { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-card h4 { font-size: 17px; margin-bottom: 7px; color: var(--ink); }
.tl-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

@media (max-width: 760px) {
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 0; }
  .tl-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; text-align: left; padding: 0 0 26px; align-items: start; }
  .tl-node { margin: 0; width: 48px; height: 48px; font-size: 19px; }
  .tl-step:not(:last-child)::before {
    top: 48px; left: 24px; width: 3px; height: calc(100% - 48px);
    background: repeating-linear-gradient(180deg, var(--tl) 0 8px, transparent 8px 15px);
  }
  .tl-card { min-height: 0; }
}

/* CTA final */
.cta { text-align: center; }
.cta h2 { font-size: 42px; letter-spacing: -1px; margin-bottom: 14px; }
.cta p { font-size: 19px; color: var(--ink-soft); margin-bottom: 30px; }

/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 54px 0 30px; }
.footer .logo { margin-bottom: 12px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-desc { color: rgba(246,236,221,0.6); font-size: 14px; max-width: 300px; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h5 { font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.6; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(246,236,221,0.85); }
.footer-col a:hover { color: var(--coral-2); }
.footer-bottom { border-top: 1px solid rgba(246,236,221,0.15); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(246,236,221,0.5); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--coral-2); }

/* ---------- Páginas internas (FAQ, contacto, legal) ---------- */
.page-hero { background: var(--cream); padding: 64px 0 44px; text-align: center; }
.page-hero h1 { font-size: 44px; letter-spacing: -1.2px; font-weight: 600; }
.page-hero p { color: var(--ink-soft); font-size: 18px; margin: 12px auto 0; max-width: 560px; }
.page-body { padding: 56px 0 84px; }

/* Prosa / texto legal */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 22px; color: var(--ink); margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.prose ul { margin: 10px 0 16px; padding-left: 22px; }
.prose li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.prose .updated { font-size: 13px; color: var(--ink-soft); opacity: 0.8; margin-bottom: 28px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ece0cf; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 0; font-size: 17px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font); }
.faq-q .plus { color: var(--coral-deep); font-size: 26px; line-height: 1; transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { padding-bottom: 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin: 0; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 960px; margin: 0 auto; align-items: start; }
.contact-info h3 { font-size: 20px; margin-bottom: 8px; }
.contact-info > p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(242,193,78,0.18); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.contact-list b { display: block; color: var(--ink); font-size: 15px; }
.contact-list span { color: var(--ink-soft); font-size: 14px; }

.form-card { background: #fff; border: 1px solid #efe4d3; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; color: var(--ink); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 2px solid #e7dcc9; border-radius: 10px; font-family: var(--font); font-size: 15px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--coral); }
.form textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 14px; color: var(--green-deep); font-weight: 500; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .section-title { font-size: 30px; }
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero h1 { font-size: 34px; }
}

/* ---------- Modal de acceso ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(42,33,29,0.5); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 200; }
.modal-overlay.open { display: flex; }
.modal { position: relative; background: #fff; border-radius: var(--radius); width: 100%; max-width: 430px; padding: 34px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f1f1; color: var(--ink); font-size: 15px; cursor: pointer; }
.modal-close:hover { background: #e6e6e6; }
.modal h3 { font-size: 26px; letter-spacing: -0.6px; }
.modal .msub { color: var(--ink-soft); margin: 6px 0 22px; font-size: 15px; }
.mrow { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 16px; }
.mshow { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-soft); cursor: pointer; font-weight: 500; }
.mshow input { width: 16px; height: 16px; accent-color: var(--coral); cursor: pointer; }
.mlink { color: var(--coral-deep); font-weight: 500; cursor: pointer; font-size: 14px; }
.mlink:hover { text-decoration: underline; }
.merr { color: var(--danger); font-weight: 600; font-size: 14px; margin-top: 12px; min-height: 18px; text-align: center; }
.mok { color: var(--green-deep); font-weight: 600; font-size: 14px; margin-top: 12px; text-align: center; }
.mfoot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Registro (Typeform) ---------- */
.signup { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream-2); }
.su-top { display: flex; align-items: center; gap: 20px; padding: 22px 28px; }
.su-progress { flex: 1; height: 6px; background: #ece0cf; border-radius: 999px; overflow: hidden; }
.su-progress span { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 999px; transition: width 0.4s ease; }
.su-exit { color: var(--ink-soft); font-size: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.su-exit:hover { background: #f1f1f1; color: var(--ink); }
.su-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.su-card { width: 100%; max-width: 560px; }
.su-step { opacity: 0; transform: translateY(26px); }
.su-step.in { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.su-q { font-size: 32px; font-weight: 600; letter-spacing: -0.9px; color: var(--ink); line-height: 1.15; }
.su-hint { color: var(--ink-soft); font-size: 16px; margin-top: 10px; }
.su-input { width: 100%; font-size: 24px; padding: 14px 2px; border: none; border-bottom: 2px solid #ddceb6; background: transparent; font-family: var(--font); color: var(--ink); margin-top: 22px; }
.su-input::placeholder { color: #c9bda9; }
.su-input:focus { outline: none; border-color: var(--coral); }
.su-row2 { display: grid; gap: 10px; }
.su-show { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); cursor: pointer; font-weight: 500; }
.su-show input { width: 16px; height: 16px; accent-color: var(--coral); cursor: pointer; }
.su-code { letter-spacing: 10px; font-size: 30px; }
.su-err { color: var(--danger); font-weight: 600; font-size: 14px; margin-top: 12px; min-height: 18px; }
.su-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.su-back { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-weight: 500; font-family: var(--font); font-size: 14px; }
.su-back:hover { color: var(--ink); }
.su-enterhint { font-size: 13px; color: var(--ink-soft); }
.su-choices { display: grid; gap: 14px; margin-top: 22px; }
.su-choice { text-align: left; background: #fff; border: 2px solid #e7dcc9; border-radius: var(--radius-sm); padding: 20px 22px; cursor: pointer; font-family: var(--font); transition: all 0.15s; }
.su-choice:hover { border-color: var(--coral); background: rgba(246,207,91,0.10); transform: translateY(-2px); }
.su-choice b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.su-choice span { color: var(--ink-soft); font-size: 14px; }
.demo-note { margin-top: 16px; background: rgba(246,207,91,0.20); color: var(--coral-deep); font-size: 13px; padding: 11px 14px; border-radius: 10px; font-weight: 600; }
.su-done { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 900; margin: 0 auto 18px; }

/* ---------- Panel interno ---------- */
.p-username { font-weight: 500; font-size: 15px; color: var(--ink); }
.panel-hello { margin-bottom: 24px; }
.panel-hello h1 { font-size: 34px; letter-spacing: -1px; }
.p-badge { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.p-badge-user { background: rgba(246,207,91,0.22); color: var(--coral-deep); }
.p-badge-prest { background: rgba(165,217,79,0.28); color: var(--green-deep); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.pcard { background: #fff; border: 1px solid #efe4d3; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.pcard h3 { font-size: 19px; margin-bottom: 8px; }
.pcard p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.p-empty { font-style: italic; }
.status-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.status-head strong { font-size: 15px; color: var(--ink); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #cc8a00; flex-shrink: 0; }
.status-validado .status-dot { background: var(--green-deep); }
.status-rechazado .status-dot { background: var(--danger); }
.status-pendiente { border-left: 4px solid #cc8a00; }
.status-validado { border-left: 4px solid var(--green-deep); }
.status-rechazado { border-left: 4px solid var(--danger); }
.pinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pinfo > div { display: flex; flex-direction: column; gap: 2px; }
.pinfo span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.pinfo b { font-size: 15px; color: var(--ink); }
@media (max-width: 700px) {
  .pgrid { grid-template-columns: 1fr; }
  .pinfo { grid-template-columns: 1fr; }
}

/* ===== Panel interno: verificación, simulador y modales ===== */
.pill-ok { font-size: 12px; font-weight: 600; color: var(--green-deep); background: rgba(165,217,79,0.25); padding: 3px 9px; border-radius: 999px; margin-left: 6px; }
.pcard.mesa { border-left: 4px solid var(--green-deep); background: #fbfdf6; }
.pcard.mesa h3 { color: var(--ink); }

/* Mini simulador */
.mini-sim .seg { margin-bottom: 12px; }
.ms-lbl { display: block; font-size: 14px; color: var(--ink); margin: 4px 0 8px; }
.ms-lbl b { color: var(--ink); font-weight: 600; }
.mini-sim .calc-input input, .mini-sim .calc-input .prefix { font-size: 17px; font-weight: 500; color: var(--ink); }
.mini-sim .calc-input input { border: none; outline: none; background: transparent; font-family: var(--font); width: 100%; padding: 11px 12px 11px 4px; }
.ms-res { margin-top: 12px; font-size: 15px; color: var(--ink); }
.ms-res b { color: var(--green-deep); font-weight: 700; }
.ms-monto { font-size: 17px; }

/* Modal del panel */
.pm-overlay { position: fixed; inset: 0; background: rgba(42,33,29,0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; z-index: 200; overflow-y: auto; }
.pm { position: relative; background: #fff; border-radius: var(--radius); width: 100%; max-width: 640px; box-shadow: var(--shadow); margin: auto; }
.pm-body { padding: 30px 28px; }
.pm-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f1f1; cursor: pointer; font-size: 15px; z-index: 2; }
.pm-close:hover { background: #e6e6e6; }

.wz-t { font-size: 21px; margin-bottom: 6px; }
.wz-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.wz-steps { display: flex; align-items: center; margin-bottom: 20px; }
.wz-dot { width: 30px; height: 30px; border-radius: 50%; background: #eee; color: var(--ink-soft); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.wz-dot.on { background: var(--coral); color: var(--ink); }
.wz-steps i { flex: 1; height: 2px; background: #eee; }
.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.wz-err { color: var(--danger); font-weight: 600; font-size: 14px; min-height: 18px; margin-top: 10px; }
.wz-legal { margin-top: 16px; }
.wz-ok { text-align: center; padding: 10px 0; }
.wz-ok h3 { font-size: 20px; margin: 6px 0; }
.wz-ok p { color: var(--ink-soft); margin-bottom: 18px; }

/* Campos dentro del modal */
.pm .field { display: flex; flex-direction: column; gap: 6px; }
.pm .field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.pm .field input, .pm .field select { padding: 10px 12px; border: 2px solid #e7dcc9; border-radius: 10px; font-family: var(--font); font-size: 15px; background: #fff; color: var(--ink); }
.pm .field input:focus, .pm .field select:focus { outline: none; border-color: var(--coral); }
.input-group2 { display: flex; align-items: center; border: 2px solid #e7dcc9; border-radius: 10px; background: #fff; overflow: hidden; }
.input-group2 span { padding: 0 4px 0 12px; color: var(--ink-soft); font-weight: 600; }
.input-group2 input { border: none; outline: none; background: transparent; padding: 10px 12px 10px 4px; font-family: var(--font); font-size: 15px; color: var(--ink); width: 100%; }

/* Subir archivos */
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.up-grid-2 { grid-template-columns: 1fr 1fr; }
.up-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--danger); }
.up-drop { display: block; position: relative; border: 2px dashed #d9ccb6; border-radius: 12px; background: #fbf7f0; min-height: 92px; cursor: pointer; text-align: center; overflow: hidden; }
.up-drop:hover { border-color: var(--coral); }
.up-txt { display: block; font-size: 12px; color: var(--ink-soft); padding: 34px 6px; }
.up-prev { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.up-prev img { width: 100%; height: 100%; object-fit: cover; }
.up-pdf { font-size: 13px; color: var(--ink); background: #fff; padding: 4px 8px; border-radius: 6px; }
.up-vence { margin-top: 8px; width: 100%; padding: 8px 10px; border: 2px solid #e7dcc9; border-radius: 8px; font-family: var(--font); font-size: 13px; color: var(--ink); }

/* Rango de inversión */
.rango-list { display: flex; flex-direction: column; gap: 10px; }
.rango { display: flex; align-items: center; gap: 12px; border: 2px solid #e7dcc9; border-radius: 12px; padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.rango:hover { border-color: var(--green); background: rgba(165,217,79,0.08); }
.rango input { accent-color: var(--green-deep); width: 18px; height: 18px; }

/* Checkbox legal */
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--coral); flex-shrink: 0; }
.chk a { color: var(--coral-deep); font-weight: 600; }

@media (max-width: 600px) {
  .up-grid { grid-template-columns: 1fr 1fr; }
  .wz-grid { grid-template-columns: 1fr; }
  .pm-body { padding: 24px 18px; }
}

/* ============================================================
   Ajustes para teléfonos (iPhone / Android)
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  /* Header: logo a la izquierda, acciones agrupadas a la derecha */
  .nav { height: 64px; }
  .logo-clic { font-size: 24px; letter-spacing: -1.4px; }
  .logo-aval { font-size: 22px; }
  .nav-actions { gap: 10px; }
  .link-ingresar { font-size: 14px; }
  .header .btn { padding: 9px 16px; font-size: 14px; }
  .menu-toggle { font-size: 25px; }

  /* Hero: centrado y con aire */
  .hero { padding: 30px 0 52px; }
  .switch-wrap { margin-bottom: 36px; }
  .switch { width: 100%; max-width: 320px; }
  .switch button { padding: 12px 8px; font-size: 14px; flex: 1; }
  .switch-glow { width: calc(50% - 6px); }
  .hero-grid { gap: 36px; }
  .hero-text { text-align: center; }
  .hero h1 { font-size: 30px; line-height: 1.18; letter-spacing: -0.6px; }
  .hero h1 em { text-underline-offset: 8px; }
  .hero .lead { font-size: 16px; margin: 24px auto 28px; max-width: 420px; }
  .hero-points { align-items: flex-start; width: fit-content; margin: 34px auto 0; gap: 10px; }
  .hero-points div { font-size: 13px; font-weight: 400; gap: 9px; }
  .hero-points .dot { width: 18px; height: 18px; }
  .hero-points .dot::after { font-size: 10px; }
  .btn-lg { padding: 15px 26px; font-size: 15px; }

  /* Simulador: solo ajuste de espacio (tipografía homogénea 15px se hereda) */
  .calc { padding: 20px; }

  /* Secciones */
  section { padding: 54px 0; }
  .section-head { margin-bottom: 34px; }
  .section-title { font-size: 26px; letter-spacing: -0.5px; }
  .section-sub { font-size: 16px; }

  /* Garantías: imágenes más bajas y tarjetas compactas */
  .cards { gap: 18px; }
  .gcard .g-img { aspect-ratio: 2 / 1; }
  .gcard .g-body { padding: 18px 20px 22px; }
  .gcard h4 { font-size: 19px; }

  /* Así funciona: más compacta */
  .tl-step { grid-template-columns: 42px 1fr; gap: 14px; padding: 0 0 16px; }
  .tl-node { width: 42px; height: 42px; font-size: 18px; }
  .tl-step:not(:last-child)::before { top: 42px; left: 21px; height: calc(100% - 42px); }
  .tl-card { padding: 14px 16px; }
  .tl-card h4 { font-size: 16px; margin-bottom: 5px; }
  .tl-card p { font-size: 13px; line-height: 1.5; }

  /* CTA final */
  .cta h2 { font-size: 27px; }
  .cta p { font-size: 16px; }

  /* Páginas internas */
  .page-hero { padding: 42px 0 30px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 16px; }
  .page-body { padding: 42px 0 60px; }
  .prose h2 { font-size: 19px; }
  .faq-q { font-size: 16px; padding: 18px 0; gap: 12px; }

  /* Contacto */
  .form-card { padding: 22px; }

  /* Footer */
  .footer { padding: 44px 0 24px; }
  .footer-top { gap: 26px; }
  .footer-links { gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Modal de acceso */
  .modal { padding: 26px 22px; }
  .modal h3 { font-size: 22px; }

  /* Registro (Typeform) */
  .su-top { padding: 16px; gap: 14px; }
  .su-q { font-size: 25px; }
  .su-hint { font-size: 15px; }
  .su-input { font-size: 20px; margin-top: 18px; }
  .su-enterhint { display: none; }
  .su-actions { flex-wrap: wrap; gap: 12px; margin-top: 22px; }
  .su-choice { padding: 18px; }
  .su-choice b { font-size: 16px; }

  /* Panel interno */
  .panel-hello h1 { font-size: 27px; }
  .p-username { display: none; }
  .pcard { padding: 20px; }
}

/* Teléfonos muy pequeños (≈320px) */
@media (max-width: 360px) {
  .logo-clic { font-size: 22px; }
  .logo-aval { font-size: 20px; }
  .header .btn { padding: 9px 14px; }
  .hero h1 { font-size: 27px; }
  .switch button { padding: 11px 6px; font-size: 13px; }
}
