/* ==========================================================================
   TP Advisors - Crédito Hipotecario (tpah)
   Versión: 100% factorada (base + overrides integrados)
   Nota: Hero BG se controla por HTML (inline style / data attr). Ver HTML abajo.
   ========================================================================== */

#tpa-hipotecario.tpa{
  /* Brand */
  --tpah-navy:#0f2554;
  --tpah-navy-2:#122d63;
  --tpah-blue:#1b4fa6;
  --tpah-sky:#6aa8ff;

  --tpah-accent:#f4a000; /* naranja */
  --tpah-mint:#46d2b5;   /* teal */

  /* Neutrals */
  --tpah-ink:#0f1c2e;
  --tpah-muted:#6b7280;

  /* Surfaces */
  --tpah-card:#fff;
  --tpah-line:rgba(15,28,46,.10);
  --tpah-soft-border:rgba(15,28,46,.08);

  /* Glass */
  --tpah-glass:rgba(92,92,130,.28);
  --tpah-glass-border:rgba(255,255,255,.20);

  /* Radius */
  --tpah-radius:18px;
  --tpah-radius-lg:22px;

  /* Shadows */
  --tpah-shadow:0 18px 40px rgba(16,24,40,.10);
  --tpah-shadow-soft:0 10px 24px rgba(16,24,40,.08);
  --tpah-card-shadow:0 18px 45px rgba(16,24,40,.12);
  --tpah-card-shadow-2:0 12px 28px rgba(16,24,40,.10);

  /* Layout */
  --tpah-max:1120px;
  --tpah-gutter:22px;

  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--tpah-ink);
  background:#fff;
}

.tpah-wrap{ overflow:hidden; }
section[id]{ scroll-margin-top:92px; }

/* =========================
   HERO
   ========================= */

.tpah-hero{
  position: relative;
  min-height: 640px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  display:flex;
  align-items: center;
}
.tpae-hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(
    135deg,
    rgba(31, 73, 125, 0.82) 0%,
    rgba(63, 60, 113, 0.80) 50%,
    rgba(142, 169, 219, 0.82) 100%
  );
}
.tpah-hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  filter:saturate(1.05) contrast(1.02);
}

/* overlay (queda igual aunque cambies imagen desde HTML) */
.tpah-hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg, rgba(15,37,84,.82), rgba(15,37,84,.62)),
    radial-gradient(80% 60% at 50% 0%, rgba(70,210,181,.25), transparent 55%),
    radial-gradient(70% 50% at 85% 15%, rgba(244,160,0,.20), transparent 55%);
}

.tpah-hero-inner{
  position:relative;
  max-width:var(--tpah-max);
  margin:0 auto;
  padding:4rem 4rem;
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  text-align:center;
}

.tpah-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:7px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.20);
  color:rgba(255,255,255,.92);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-weight:700;
  letter-spacing:.2px;
  font-size:1rem;
  margin-bottom:16px;
}

.tpah-badge i{ color:#DF900C; font-size:1.2rem; }

.tpah-title{
  margin:0 0 14px;
  color:#fff;
  font-weight:800;
  letter-spacing:-.8px;
  line-height:1.05;
  font-size:3.75rem;
}

.tpah-title-accent{
  color:var(--tpah-mint);
  text-shadow:0 10px 25px rgba(70,210,181,.20);
}

.tpah-subtitle{
  margin:0 auto 20px;
  max-width:52rem;
  color:rgba(255,255,255,.80);
  line-height:1.75rem;
  font-size:1.25rem;
}

.tpah-hero-ctas{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  margin:18px 0 28px;
  flex-wrap:wrap;
}

/* Buttons */
.tpah-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  border-radius:10px;
  padding:1rem 1.5rem;
  min-width:150px;
  font-weight:800;
  font-size:1rem;
  letter-spacing:.2px;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  border:1px solid transparent;
  cursor:pointer;
}

.tpah-btn-primary{
  background:var(--tpah-accent);
  color:#fff;
  box-shadow:0 12px 28px rgba(244,160,0,.22);
}

.tpah-btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(244,160,0,.28);
}

.tpah-btn-ghost{
  background:rgba(255,255,255,.11);
  color:rgba(255,255,255,.92);
  border-color:rgba(255,255,255,.26);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.tpah-btn-ghost:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.28);
}

/* Metrics row */
.tpah-metrics{
  margin-top:18px;
  display:grid;
  padding: 2.5rem;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:2rem;
  text-align: center;
}

.tpah-metric{
  display:flex;
  align-items:center;
  gap:12px;
  padding:2.5rem 0;
  border-radius:14px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--tpah-glass-border);
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  text-align:center;
  justify-content:center;
}

.tpah-metric-k{
  color:var(--tpah-mint);
  font-weight:500;
  font-size:2rem;
  line-height:1.1;
}

.tpah-metric-l{
  color:rgba(255,255,255,.78);
  font-size:1rem;
  font-weight:500;
  margin-top:2px;
}

@media (max-width:820px){
  .tpah-hero{
    padding:54px 0 70px;
    min-height:520px;
  }
  .tpah-metrics{
    grid-template-columns:1fr;
    max-width:420px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* =========================
   Sections base
   ========================= */
.tpah-sec{
  padding:78px 0;
  background:#fff;
}

.tpah-sec:nth-of-type(even){
  background:linear-gradient(180deg, #ffffff, #fbfcff);
}

.tpah-sec-head{
  max-width:var(--tpah-max);
  margin:0 auto 38px;
  padding:0 var(--tpah-gutter);
  text-align:center;
}

.tpah-h2{
  margin:0 0 10px;
  font-size:3.5rem;
  font-weight:900;
  letter-spacing:-.6px;
  color:#1F497D;
  line-height:1.08;
}

.tpah-accent-word{ color:var(--tpah-accent); }
.tpah-accent-word-green{ color:var(--tpah-mint); }

#hipotecario-ventajas .tpah-h2,
#hipotecario-requisitos .tpah-h2,
#hipotecario-proceso .tpah-h2{
  position:relative;
}

.tpah-p{
  margin:0 auto;
  max-width:820px;
  color:var(--tpah-muted);
  line-height:1.6;
  font-size:1.25rem;
}

/* =========================
   Grid helpers
   ========================= */
/* =========================================================
   TP Advisors – Ventajas Crédito Hipotecario (FINAL)
   Compatible con Font Awesome 5.15.4
   ========================================================= */

/* ---------- GRID ---------- */
.tpah-grid{
  max-width: var(--tpah-max);
  margin: 0 auto;
  padding: 0 var(--tpah-gutter);
  display: grid;
  gap: 22px;
}

.tpah-grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px){
  .tpah-grid-3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px){
  .tpah-grid-3{
    grid-template-columns: 1fr;
  }
}

/* ---------- CARD BASE ---------- */
.tpah-card{
  background: #FCFDFD;
  border: 1px solid #D1D5DB;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  min-height: 180px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tpah-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(16, 24, 40, .18);
}

/* ---------- ICON ---------- */
.tpah-card-ico{
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.tpah-card-ico i{
  font-size: 1.75rem;
  color: #ffffff;
}

/* ---------- ICON COLORS (match LandingSite) ---------- */

/* Tasas Competitivas */
.tpah-ico-aqua{
  background: linear-gradient(135deg, #1f3a8a, #1e40af);
}

/* Alto Financiamiento */
.tpah-ico-blue{
  background: linear-gradient(135deg, #6d83f2, #4f6be8);
}

/* Plazos Flexibles */
.tpah-ico-violet{
  background: linear-gradient(135deg, #f59e0b, #22c55e);
}

/* Proceso Rápido */
.tpah-ico-green{
  background: linear-gradient(135deg, #6ee7b7, #14b8a6);
}

/* Asesoría Experta */
.tpah-ico-amber{
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

/* Sin Comisiones Ocultas */
.tpah-ico-cyan{
  background: linear-gradient(135deg, #f59e0b, #1e293b);
}

/* ---------- TEXT ---------- */
.tpah-card-t{
  margin: 0 0 .75rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.2px;
  color: #0f172a;
}

.tpah-card-d{
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
}

/* =========================
   Requisitos (2 columns list)
   ========================= */
#hipotecario-requisitos .tpah-grid-3{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px 18px;
}

@media (max-width:1000px){
  #hipotecario-requisitos .tpah-grid-3{ grid-template-columns:1fr; }
  .tpah-requisitos{ padding: 6rem;}
}

/* ===== REQUISITOS – FINAL DEFINITIVO ===== */
.tpah-requisitos{
background-color: #F9FAFB;
}
.tpah-req{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px 26px;
  min-height:96px;
  background:#fff;
  border-radius:18px;
  border-left:4px solid var(--req-color);
  overflow:hidden;
}

.tpah-req-ico{
  width:48px;
  height:48px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--req-color);
  flex-shrink:0;
}

.tpah-req-ico i{
  color:#fff;
  font-size:18px;
}

/* TEXTO */
.tpah-req-body{
  padding-left:2px;
}

.tpah-req-t{
  font-weight:800;
  font-size:1.25rem;
  color:#0f172a;
  margin-bottom:4px;
}

.tpah-req-d{
  font-size:.9rem;
  line-height:1.55;
  color:#6b7280;
}

/* ===== COLORES EXACTOS ===== */
.req-blue   { --req-color:#1f3a8a; }
.req-amber  { --req-color:#f59e0b; }
.req-indigo { --req-color:#6366f1; }
.req-sky    { --req-color:#60a5fa; }
.req-mint   { --req-color:#34d399; }
.req-navy   { --req-color:#312e81; }

.tpah-note{
  display: flex;
  flex-direction: column;
  margin: 2rem 8rem;
  padding: 2rem 3rem;
  border-radius: 22px;
  background: linear-gradient(90deg,
   #1F497D,#3F3C71);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 28px 60px rgba(15,37,84,.28);
}

.tpah-note i{
  font-size: 1.75rem;
  margin-bottom: 1rem;
  opacity: .95;
  color: var(--tpah-mint);
}

.tpah-steps{
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tpah-steps-track{
  position: absolute;
  top: 9rem;
  left: 9rem;
  right: 9rem;
  height: .3rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #1f3a8a,
    #3b82f6,
    #5eead4
  );
  opacity: .45;
  z-index: 0;
}

/* Step */
.tpah-step{
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Número */
.tpah-step-n{
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  margin-bottom: 2rem;
  place-items: center;
  font-weight: 600;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 22px 48px rgba(0,0,0,.25);
}
.tpah-step:nth-of-type(2) .tpah-step-n{ background:linear-gradient(135deg,#1F497D,#3F3C71); }
.tpah-step:nth-of-type(3) .tpah-step-n{ background:linear-gradient(135deg,#688AE6,#8EA9DB); }
.tpah-step:nth-of-type(4) .tpah-step-n{ background:linear-gradient(135deg,#DF900C,#5ED1A8); }
.tpah-step:nth-of-type(5) .tpah-step-n{ background:linear-gradient(135deg,#5ED1A8,#8EA9DB); }

.tpah-step:nth-of-type(2) .tpah-step-ico{ background:#1F497D; }
.tpah-step:nth-of-type(3) .tpah-step-ico{ background:#688AE6; }
.tpah-step:nth-of-type(4) .tpah-step-ico{ background:#DF900C; }
.tpah-step:nth-of-type(5) .tpah-step-ico{ background:#5ED1A8; }
.tpah-step-card{
  background: #eef3ff;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 20px 44px rgba(16,24,40,.12);
  min-height: 170px;
}
.tpah-step-ico{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  align-content: center;
  color: #fff;
}
.tpah-step-t{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 6px;
}
.tpah-step-d{
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
@media(max-width:900px){
  .tpah-steps{
    grid-template-columns: repeat(2,1fr);
  }
   .tpah-steps-track{
    display: none;
  }
}
@media(max-width:560px){
  .tpah-steps{
    grid-template-columns: 1fr;
  }
  .tpah-steps-track{
    display: none;
  }
}
.tpah-form{
  background:linear-gradient(135deg,#1F497D,#3F3C71);
  padding:86px 0;
}
.tpah-form-wrap{
  max-width:var(--tpah-max);
  margin:0 auto;
  padding:0 var(--tpah-gutter);
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  justify-items:center;
  text-align:center;
  align-items:start;
}

.tpah-h2-white{ color:#fff; font-size: 2.5rem;}
.tpah-p-white{ color:rgba(255,255,255,.78); padding:0 2rem; font-size: 1.1rem; }

.tpah-form-left,
.tpah-form-right{
  width:100%;
  max-width:880px;
}

.tpah-form-left .tpah-h2{ margin-bottom:12px; }

/* Form card */
.tpah-form-card{
  border-radius:var(--tpah-radius-lg);
  padding:26px;
  background:rgba(120,120,160,.22);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 20px 46px rgba(0,0,0,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.tpah-field{ margin-bottom:14px; }
.tpah-field i{ margin-right:5px; }

.tpah-label{
  display:block;
  margin-bottom:7px;
  color:#fff;
  font-weight:500;
  font-size:0.9rem;
  letter-spacing:.15px;
  text-align:left;
}

.tpah-input{
  width:100%;
  border-radius:5px!important;
  border:1px solid rgba(255, 255, 255, 0.554)!important;
  background:rgba(255,255,255,.12)!important;
  color:rgba(255,255,255,.92)!important;
  padding:6px 16px!important;
  outline:none;
  font-size:1rem!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.tpah-input::placeholder{ color:rgba(255, 255, 255, 0.72)!important; }

.tpah-input:focus{
  border:1px solid var(--tpah-mint)!important;
}

select.tpah-input{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.75) 50%),
    linear-gradient(135deg, rgba(255,255,255,.75) 50%, transparent 50%);
  background-position:calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:34px;
}

.tpah-textarea{ resize:vertical; min-height:112px; }

.tpah-btn-wide{ width:100%; padding:13px 18px; margin-top:6px; }

.tpah-privacy{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-top:14px;
  color:rgba(255,255,255,.70);
  font-size:11.5px;
  line-height:1.35;
}

.tpah-privacy i{ color:rgba(255,255,255,.78); }

/* Contact cards (below form) */
.tpah-contact-cards{
  margin:18px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  max-width:880px;
  text-align: center;
}

@media (max-width:600px){
  .tpah-contact-cards{ grid-template-columns:1fr; }
}

.tpah-contact{
  display:flex;
  flex-direction: column;
  gap:12px;
  text-align: center;
  align-items:center;
  padding:16px 16px;
  border-radius:16px;
  text-decoration:none;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 16px 34px rgba(0,0,0,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .14s ease, background .14s ease, border-color .14s ease;
}

.tpah-contact:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
}

.tpah-contact-ico{
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color: var(--tpah-mint);
}

.tpah-contact-ico i{ color: var(--tpah-mint); font-size:2rem; }

.tpah-contact-t{
  color:rgba(255,255,255,.92);
  font-weight:700;
  font-size:13px;
  line-height:1.2;
}

.tpah-contact-d{
  color:rgba(255,255,255,.72);
  font-weight:500;
  font-size:12px;
  margin-top:3px;
}

/* =========================
   Minor polish + spacing
   ========================= */
.tpah-sec.tpah-ventajas,
.tpah-sec.tpah-requisitos,
.tpah-sec.tpah-proceso{
  padding-top:86px;
}
