/* =========================================================
   HOME — rediseño dic 2026
   Plus Jakarta Sans 800 · píldoras · navy / rojo / beige
   ========================================================= */
.home {
  --th-navy: #03263F;
  --th-red: #D42A12;
  --th-orange: #F93822;
  --th-beige: #E9D6AC;
  --th-paper: #F7F4EE;
  --th-line: #E7E2D8;
  --th-muted: #4A5868;
  --th-soft: #D6DEE6;
  --th-soft2: #AFC0CF;
  background: #fff;
}
.home main, .home .th-hero, .home [class^="th-"] { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.th-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.th-sec { padding-top: 96px; padding-bottom: 96px; }
.home [class^="th-"] h1, .home [class^="th-"] h2, .home [class^="th-"] h3 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; margin: 0; }
.home [class^="th-"] p { margin: 0; }

/* Títulos de sección */
.th-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.th-head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.th-head--row > div { display: flex; flex-direction: column; gap: 12px; }
.th-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--th-red); }
.th-eyebrow--beige { color: var(--th-beige); }
.th-sec h2, .th-navy h2, .th-red h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--th-navy); }
.th-navy h2, .th-red h2 { color: #fff; }
.th-body { font-size: 17px; line-height: 1.6; color: var(--th-muted); }
.th-lead { font-size: 20px; line-height: 1.5; }

/* Botones */
.th-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.th-btn--red { background: var(--th-red); color: #fff; }
.th-btn--red:hover { background: #b8220f; color: #fff; transform: translateY(-1px); }
.th-btn--ghost { border: 2px solid #fff; color: #fff; }
.th-btn--ghost:hover { background: #fff; color: var(--th-navy); }

/* ── HERO: se conserva la imagen de fondo ── */
.th-hero {
  position: relative; color: #fff;
  background: var(--th-navy) url('../img/hero-inversiones.webp') center / cover no-repeat;
}
.th-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(3,38,63,.94) 0%, rgba(3,38,63,.82) 55%, rgba(3,38,63,.6) 100%); }
.th-hero-grid { position: relative; z-index: 1; display: flex; gap: 56px; flex-wrap: wrap; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.th-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.th-pill { align-self: flex-start; border: 1px solid var(--th-beige); color: var(--th-beige); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.th-hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.th-hero h1 span { color: var(--th-orange); }
.th-hero .th-lead { color: var(--th-soft); max-width: 540px; }
.th-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.th-note { font-size: 14px; color: var(--th-soft2); }

/* Selector "¿Qué quieres lograr?" */
.th-selector { flex: 1 1 400px; min-width: 0; background: #fff; color: var(--th-navy); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.th-step { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--th-red); }
.th-selector h3 { font-size: 26px; font-weight: 800; color: var(--th-navy); }
.th-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 2px solid var(--th-line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.th-opt input { position: absolute; opacity: 0; pointer-events: none; }
.th-opt-txt { display: flex; flex-direction: column; gap: 2px; }
.th-opt-txt b { font-size: 16px; font-weight: 700; }
.th-opt-txt small { font-size: 13px; color: var(--th-muted); }
.th-opt-mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--th-navy); flex-shrink: 0; }
.th-opt:has(input:checked) { border-color: var(--th-red); background: #FFF3EF; }
.th-opt:has(input:checked) .th-opt-mark { border-color: var(--th-red); background: radial-gradient(circle, var(--th-red) 45%, transparent 50%); }
.th-opt:has(input:focus-visible) { outline: 3px solid var(--th-orange); outline-offset: 2px; }
.th-continue { margin-top: 6px; background: var(--th-navy); color: #fff; border: 0; padding: 16px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; min-height: 52px; }
.th-continue:hover { background: #0c3a5c; }

/* Trust strip */
.th-trust { background: var(--th-paper); border-bottom: 1px solid var(--th-line); }
.th-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; font-weight: 700; font-size: 15px; color: var(--th-navy); }
.th-trust-grid span::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--th-red); margin-right: 10px; border-radius: 2px; vertical-align: 1px; }

/* Caminos */
.th-caminos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.th-camino { background: var(--th-paper); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: var(--th-navy); }
.th-camino h3 { font-size: 24px; font-weight: 800; }
.th-camino p { font-size: 15px; line-height: 1.55; color: var(--th-muted); }
.th-camino a { margin-top: auto; color: var(--th-red); font-weight: 700; text-decoration: none; }
.th-camino a:hover { text-decoration: underline; }
.th-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--th-navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.th-ico svg { width: 24px; height: 24px; }
.th-camino--navy { background: var(--th-navy); color: #fff; }
.th-camino--navy h3 { color: #fff; }
.th-camino--navy p { color: var(--th-soft); }
.th-camino--navy a { color: var(--th-beige); }
.th-camino--navy .th-ico { background: var(--th-red); }

/* Del miedo a la claridad */
.th-paper { background: var(--th-paper); }
.th-split { display: flex; gap: 56px; flex-wrap: wrap; }
.th-split-l { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.th-nosomos { background: var(--th-navy); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.th-nosomos-t { font-weight: 800; font-size: 16px; color: var(--th-beige); }
.th-nosomos p:last-child { font-size: 15px; line-height: 1.6; color: var(--th-soft); }
.th-faqs { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.th-faq { background: #fff; border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.th-faq h3 { font-size: 19px; font-weight: 800; color: var(--th-navy); }
.th-faq p { font-size: 15px; line-height: 1.6; color: var(--th-muted); }

/* Cómo funciona */
.th-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.th-steps li { border-top: 4px solid var(--th-navy); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--th-navy); }
.th-steps li.is-first { border-top-color: var(--th-orange); }
.th-steps li.is-first span { color: var(--th-red); }
.th-steps span { font-size: 32px; font-weight: 800; }
.th-steps h3 { font-size: 18px; font-weight: 800; }
.th-steps p { font-size: 14px; line-height: 1.5; color: var(--th-muted); }

/* Proyectos */
.th-navy { background: var(--th-navy); color: #fff; }
.th-more { color: var(--th-beige); font-weight: 700; font-size: 16px; text-decoration: none; }
.th-more:hover { color: #fff; }
.th-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.th-project { background: #0C3352; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: #fff; text-decoration: none; transition: transform .2s; }
.th-project:hover { transform: translateY(-3px); color: #fff; }
.th-project-img { height: 200px; background: #1B4566; }
.th-project-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-project-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.th-tag { align-self: flex-start; background: var(--th-beige); color: var(--th-navy); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.th-project h3 { font-size: 20px; font-weight: 800; color: #fff; }
.th-project p { font-size: 14px; line-height: 1.5; color: var(--th-soft); }
.th-disclaimer { font-size: 13px; color: var(--th-soft2); margin-top: 32px !important; }

/* Contacto */
.th-red { position: relative; color: #fff; background: var(--th-navy) url('../img/primera-casa/hero-llaves.webp') center 60% / cover no-repeat; }
.th-red::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(150,28,12,.93) 0%, rgba(110,26,22,.88) 45%, rgba(3,38,63,.9) 100%); }
.th-red > .th-wrap { position: relative; z-index: 1; }
.th-contact { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.th-contact-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.th-contact h2 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.th-contact .th-lead { font-size: 19px; color: #FFE9E3; }
.th-contact-line { font-size: 16px; font-weight: 700; }
.th-contact-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.th-form { position: relative; flex: 1 1 420px; min-width: 0; background: #fff; color: var(--th-navy); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.th-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.th-form input, .th-form select { padding: 14px; border: 1px solid #CFC8BA; border-radius: 10px; font: inherit; font-weight: 400; color: var(--th-navy); background: #fff; min-height: 48px; box-sizing: border-box; }
.th-form input:focus, .th-form select:focus { outline: 2px solid var(--th-navy); outline-offset: 1px; }
.th-form button { background: var(--th-navy); color: #fff; border: 0; padding: 18px; border-radius: 14px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; }
.th-form button:hover { background: #0c3a5c; }

/* Teléfono */
@media (max-width: 767px) {
  .th-sec { padding-top: 64px; padding-bottom: 64px; }
  .th-hero-grid { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .th-selector, .th-form { padding: 24px; }
  .th-pill { font-size: 11px; letter-spacing: .06em; }
  .th-lead { font-size: 18px; }
  .th-btn { width: 100%; }
  .th-contact { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 800px) { .th-hero { background-image: url('../img/hero-inversiones-800.webp'); } .th-red { background-image: url('../img/primera-casa/hero-llaves-sm.webp'); } }

/* =========================================================
   EFECTOS LIGEROS (solo CSS + un observer para los pasos)
   Todo el contenido es visible sin animación.
   ========================================================= */
:root { --th-ease: cubic-bezier(.2,.7,.2,1); }

/* Flecha que se desliza */
.th-arrow { display: inline-block; transition: transform .25s var(--th-ease); }
a:hover .th-arrow, a:focus-visible .th-arrow, button:hover .th-arrow, button:focus-visible .th-arrow { transform: translateX(4px); }

/* Botones: elevación suave + brillo que cruza */
.th-btn, .th-continue, .th-form button { position: relative; overflow: hidden; transition: background .2s, color .2s, transform .25s var(--th-ease), box-shadow .25s var(--th-ease); }
.th-btn:hover, .th-continue:hover, .th-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(3,38,63,.22); }
.th-btn:active, .th-continue:active, .th-form button:active { transform: translateY(0); box-shadow: none; }
.th-btn--red::after, .th-continue::after, .th-form button::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); transition: left .6s var(--th-ease); pointer-events: none;
}
.th-btn--red:hover::after, .th-continue:hover::after, .th-form button:hover::after { left: 120%; }
.th-btn:focus-visible, .th-continue:focus-visible, .th-form button:focus-visible { outline: 3px solid var(--th-orange); outline-offset: 3px; }

/* Selector: la opción se desplaza un poco al pasar */
.th-opt { transition: border-color .15s, background .15s, transform .2s var(--th-ease); }
.th-opt:hover { transform: translateX(3px); border-color: #CFC8BA; }

/* Cuatro caminos: toda la tarjeta es clicable, sube y gira el ícono */
.th-camino { position: relative; transition: transform .3s var(--th-ease), box-shadow .3s var(--th-ease), background .3s; }
.th-camino-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.th-camino:hover, .th-camino:focus-within { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(3,38,63,.14); }
.th-camino:not(.th-camino--navy):hover, .th-camino:not(.th-camino--navy):focus-within { background: #fff; box-shadow: 0 18px 36px rgba(3,38,63,.14), inset 0 0 0 2px var(--th-line); }
.th-ico { transition: transform .35s var(--th-ease), background .3s; }
.th-camino:hover .th-ico, .th-camino:focus-within .th-ico { transform: rotate(-6deg) scale(1.08); background: var(--th-red); }
.th-camino--navy:hover .th-ico, .th-camino--navy:focus-within .th-ico { background: var(--th-orange); }
.th-camino:focus-within { outline: 3px solid var(--th-orange); outline-offset: 3px; }
.th-camino-link:focus-visible { outline: none; }

/* Dudas: borde que se ilumina */
.th-faq { transition: box-shadow .25s, transform .25s var(--th-ease); }
.th-faq:hover { transform: translateX(4px); box-shadow: inset 4px 0 0 var(--th-red); }

/* Cómo funciona: al pasar sobre un paso se marcan en rojo ese paso y los anteriores */
.th-steps li { position: relative; }
.th-steps li::before { content: ''; position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: var(--th-orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--th-ease); }
.th-steps li span { transition: color .25s; }
.th-steps:has(li:hover) li::before { transform: scaleX(1); }
.th-steps:has(li:hover) li span { color: var(--th-red); }
.th-steps li:hover ~ li::before { transform: scaleX(0); }
.th-steps li:hover ~ li span { color: var(--th-navy); }

/* Proyectos: zoom suave de la foto */
.th-project-img { overflow: hidden; }
.th-project-img img { transition: transform .6s var(--th-ease); }
.th-project:hover .th-project-img img { transform: scale(1.05); }
.th-project:hover { box-shadow: 0 18px 36px rgba(0,0,0,.25); }
.th-more { transition: color .2s; }

/* Trust strip: el cuadrito rojo gira al pasar */
.th-trust-grid span::before { transition: transform .3s var(--th-ease); }
.th-trust-grid span:hover::before { transform: rotate(45deg); }

/* Movimiento reducido: sin desplazamientos; la línea aparece llena */
@media (prefers-reduced-motion: reduce) {
  .th-camino, .th-camino:hover, .th-faq:hover, .th-opt:hover,
  .th-btn:hover, .th-continue:hover, .th-form button:hover, .th-project:hover .th-project-img img { transform: none; }
  .th-btn--red::after, .th-continue::after, .th-form button::after { display: none; }
  .th-steps li::before { transition: none; }
}
/* En pantallas táctiles no hay hover real: evita que las tarjetas queden "levantadas" tras un toque */
@media (hover: none) {
  .th-camino:hover, .th-faq:hover, .th-opt:hover { transform: none; }
}
