/* ================================================================
   REINVERSIÓN VIVIENDA HABITUAL — Global Stylesheet
   ================================================================ */

:root {
  /* ── Celeste (azul cielo) — color principal de marca ── */
  --navy:   #00578A;   /* celeste oscuro — header, fondos oscuros */
  --navy2:  #0077B6;   /* celeste medio */
  --navy3:  #003D65;   /* celeste muy oscuro — secciones dark */
  /* ── Amarillo — color de acento ── */
  --gold:   #FFB800;   /* amarillo principal */
  --gold-d: #E6A400;   /* amarillo oscuro (hover) */
  --gold-l: rgba(255,184,0,.14);
  /* ── Fondos y superficies ── */
  --bg:     #F5FAFF;   /* blanco con tono celeste muy suave */
  --bg2:    #E8F2FF;   /* celeste muy claro para secciones */
  --text:   #1a1a1a;
  --muted:  #4a5a6a;
  --white:  #fff;
  --border: #C2D8EE;   /* borde celeste suave */
  --sh:     0 8px 40px rgba(0,87,138,.1);
  --r:      12px;
  --green:  #1a7a44;
  --green-l:#e8f5ef;
  --red:    #c0392b;
  --red-l:  #fdf0ee;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── HEADER ── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,184,0,.18);
  transition: box-shadow .3s;
}
.hdr.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hdr-in {
  max-width: 1300px; margin: 0 auto; padding: 0 32px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 44px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 500;
  padding: 8px 13px; border-radius: 6px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--gold); background: rgba(255,184,0,.08); }
.nav-link.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; padding: 9px 20px !important; border-radius: 7px !important;
  font-size: .84rem !important;
}
.nav-cta:hover { background: var(--gold-d) !important; color: var(--white) !important; }
.hbg {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hbg span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.mob-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--navy3); z-index: 999; padding: 20px 24px 48px;
  overflow-y: auto; flex-direction: column; gap: 4px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  color: rgba(255,255,255,.85); font-size: .95rem; padding: 13px 16px;
  border-radius: 8px; display: block; border-bottom: 1px solid rgba(255,255,255,.06);
}
.mob-nav a:hover { background: var(--gold-l); color: var(--gold); }
.mob-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700; text-align: center; border-radius: 8px;
  margin-top: 12px; border-bottom: none !important;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; padding-top: 70px; position: relative; overflow: hidden;
  background: url('Imagen4.jpg') center 30% / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg,
    rgba(0,42,80,0.97) 0%,
    rgba(0,42,80,0.92) 35%,
    rgba(0,42,80,0.72) 62%,
    rgba(0,42,80,0.45) 100%);
  pointer-events: none;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 72px; position: relative; z-index: 2;
  max-width: 720px;
}
.hero-right { display: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.eyebrow-text {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); font-family: 'Inter', sans-serif;
}
.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 700;
  color: var(--white); margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.02rem; color: rgba(255,255,255,.68); line-height: 1.8;
  margin-bottom: 40px; max-width: 510px; font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: var(--navy); font-weight: 700;
  font-size: .92rem; padding: 14px 26px; border-radius: 8px;
  transition: all .25s; cursor: pointer; border: none; font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  background: var(--gold-d); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,184,0,.35);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9);
  font-size: .92rem; font-weight: 500; padding: 13px 24px; border-radius: 8px;
  transition: all .25s;
}
.btn-ghost:hover {
  border-color: var(--gold); background: rgba(255,184,0,.1);
  transform: translateY(-2px);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 36px;
}
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 5px; font-weight: 400;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy); border-bottom: 1px solid rgba(255,184,0,.15);
  padding: 14px 32px;
}
.trust-bar-in {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.68); font-size: .8rem; font-weight: 500;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }
.trust-sep { color: rgba(255,255,255,.2); font-size: 1.2rem; }

/* ── SECTIONS ── */
.section { padding: 90px 32px; }
.section-light { background: var(--bg); }
.section-gray  { background: var(--bg2); }
.section-navy  { background: var(--navy); }
.section-navy3 { background: var(--navy3); }
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px; font-family: 'Inter', sans-serif;
}
.section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700;
  color: var(--navy); margin-bottom: 18px;
}
.section-navy .section-title,
.section-navy3 .section-title { color: var(--white); }
.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 48px;
}
.section-navy .section-sub,
.section-navy3 .section-sub { color: rgba(255,255,255,.65); }
.text-center { text-align: center; }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cards-grid-4 { grid-template-columns: repeat(4,1fr); }
.cards-grid-2 { grid-template-columns: repeat(2,1fr); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px; box-shadow: var(--sh);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,55,105,.14); }
.card-icon {
  width: 52px; height: 52px; background: var(--gold-l);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--gold);
}
.card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── REQUIREMENTS CARDS ── */
.req-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 28px 28px 24px;
  border-left: 4px solid var(--gold); display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow .2s;
}
.req-card:hover { box-shadow: 0 8px 28px rgba(0,55,105,.1); }
.req-num {
  min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; flex-shrink: 0;
}
.req-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.req-card p { font-size: .87rem; color: var(--muted); line-height: 1.7; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--gold), rgba(255,184,0,.2));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -33px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.timeline-item p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.timeline-badge {
  display: inline-block; background: var(--gold-l); color: var(--gold-d);
  font-size: .73rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px; letter-spacing: .04em; font-family: 'Inter', sans-serif;
}

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(0,55,105,.08); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--navy); line-height: 1.4; transition: background .2s;
}
.faq-q:hover { background: var(--gold-l); }
.faq-q svg { flex-shrink: 0; color: var(--gold); transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 24px 20px;
  font-size: .9rem; color: var(--muted); line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.open .faq-a { display: block; }

/* ── SIMULATOR (Calculator) ── */
.sim-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.sim-form-card, .sim-result-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 36px; box-shadow: var(--sh);
}
.sim-result-card { background: var(--navy3); border-color: rgba(255,184,0,.2); }
.field-group { margin-bottom: 20px; }
.field-group label {
  display: block; font-size: .84rem; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.field-group input, .field-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .95rem; color: var(--text);
  background: var(--bg); transition: border-color .2s;
  -webkit-appearance: none;
}
.field-group input:focus, .field-group select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,184,0,.15);
}
.field-group .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.calc-btn {
  width: 100%; background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px; padding: 15px;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .25s; display: flex; align-items: center;
  justify-content: center; gap: 8px; margin-top: 8px;
}
.calc-btn:hover {
  background: var(--gold-d); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,184,0,.35);
}
.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.result-row:last-of-type { border-bottom: none; }
.result-label { font-size: .85rem; color: rgba(255,255,255,.6); }
.result-value { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.result-value.gold { color: var(--gold); }
.result-value.green { color: #4ade80; }
.result-highlight {
  background: rgba(255,184,0,.1); border: 1px solid rgba(255,184,0,.25);
  border-radius: 10px; padding: 20px; margin: 20px 0; text-align: center;
}
.result-highlight .big-num {
  font-family: 'Playfair Display', serif; font-size: 2.6rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.result-highlight .big-label { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 6px; }
.result-initial { text-align: center; padding: 60px 24px; }
.result-initial svg { color: rgba(255,184,0,.3); margin: 0 auto 16px; }
.result-initial p { color: rgba(255,255,255,.4); font-size: .9rem; }
/* sim form after results */
.sim-contact-section {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,184,0,.2);
  display: none;
}
.sim-contact-section.show { display: block; }
.sim-contact-section h4 {
  font-family: 'Playfair Display', serif; color: var(--gold);
  font-size: 1.1rem; margin-bottom: 6px;
}
.sim-contact-section p { font-size: .83rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.sim-form-inline input,
.sim-form-inline textarea,
.sim-form-inline select {
  width: 100%; padding: 11px 14px; background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,184,0,.25); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .88rem; color: var(--white);
  margin-bottom: 10px; transition: border-color .2s;
}
.sim-form-inline input::placeholder,
.sim-form-inline textarea::placeholder { color: rgba(255,255,255,.35); }
.sim-form-inline input:focus,
.sim-form-inline textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255,255,255,.1);
}
.sim-form-inline textarea { resize: vertical; min-height: 80px; }
.sim-submit-btn {
  width: 100%; background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px; padding: 13px;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: all .25s;
}
.sim-submit-btn:hover { background: var(--gold-d); color: var(--white); }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info h2 { color: var(--navy); margin-bottom: 16px; }
.contact-info p { color: var(--muted); font-size: .92rem; margin-bottom: 28px; line-height: 1.8; }
.contact-detail {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; font-size: .9rem; color: var(--text);
}
.contact-detail svg { color: var(--gold); flex-shrink: 0; }
.contact-detail a { color: var(--navy); font-weight: 500; }
.contact-detail a:hover { color: var(--gold); }
.jacob-card {
  background: var(--navy); border-radius: var(--r); padding: 28px;
  display: flex; gap: 18px; align-items: center; margin-top: 28px;
  border: 1px solid rgba(255,184,0,.2);
}
.jacob-card img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0;
}
.jacob-card-text h4 {
  font-size: 1rem; color: var(--gold); margin-bottom: 4px;
}
.jacob-card-text p { font-size: .82rem; color: rgba(255,255,255,.6); }

/* Contact form card */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 40px; box-shadow: var(--sh);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .84rem; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .93rem; color: var(--text);
  background: var(--bg); transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,184,0,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px; padding: 15px;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .25s; display: flex; align-items: center;
  justify-content: center; gap: 8px; margin-top: 4px;
}
.form-submit:hover {
  background: var(--gold-d); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,184,0,.3);
}
.form-legal { font-size: .76rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-legal a { color: var(--gold); }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success svg { color: var(--green); margin: 0 auto 16px; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: .9rem; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--navy); color: var(--white); }
thead th { padding: 14px 18px; text-align: left; font-weight: 600; font-size: .85rem; font-family: 'Inter', sans-serif; }
tbody tr:nth-child(even) { background: var(--bg2); }
tbody td { padding: 13px 18px; color: var(--text); border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
td.gold { color: var(--gold-d); font-weight: 700; }
td.green { color: var(--green); font-weight: 700; }

/* ── NOTICE BOXES ── */
.notice {
  border-radius: 10px; padding: 20px 24px;
  display: flex; gap: 14px; align-items: flex-start; margin: 24px 0;
}
.notice-green { background: var(--green-l); border-left: 4px solid var(--green); }
.notice-gold  { background: var(--gold-l);  border-left: 4px solid var(--gold);  }
.notice-red   { background: var(--red-l);   border-left: 4px solid var(--red);   }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice-green svg { color: var(--green); }
.notice-gold  svg { color: var(--gold-d); }
.notice-red   svg { color: var(--red); }
.notice-body { font-size: .88rem; color: var(--text); line-height: 1.7; }
.notice-body strong { display: block; margin-bottom: 4px; font-size: .9rem; }

/* ── BLOG CARDS ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--sh); transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,55,105,.13); }
.blog-card-img {
  height: 180px; background: var(--bg2); overflow: hidden; position: relative;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img .cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  letter-spacing: .04em; font-family: 'Inter', sans-serif;
}
.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: .84rem; font-weight: 600; margin-top: 12px; }
.read-more:hover { color: var(--gold-d); gap: 10px; }

/* ── FOOTER ── */
.footer,
.site-footer { background: var(--navy3); color: rgba(255,255,255,.65); padding: 0; }
.footer-disclaimer {
  background: rgba(0,0,0,.25); border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 32px;
}
.footer-disclaimer p {
  max-width: 1100px; margin: 0 auto; font-size: .76rem;
  color: rgba(255,255,255,.42); line-height: 1.6;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding: 48px 32px 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .82rem; line-height: 1.7; max-width: 280px; }
.footer h4 {
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .78rem;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold); }

/* ── SITE-FOOTER inner elements (blog/asesor article pages) ── */
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding: 48px 32px 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo img { height: 40px; margin-bottom: 14px; }
.footer-logo p { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 280px; }
.footer-links h4 {
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; text-decoration: none; }
.footer-links ul li a:hover { color: var(--gold); }
.site-footer .footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 24px 32px;
  font-size: .76rem; color: rgba(255,255,255,.4); line-height: 1.6;
}
.site-footer .footer-bottom p { margin: 0; }

/* ── FLOATING BUTTONS ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.12); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.contact-btn-fixed {
  position: fixed; bottom: 28px; left: 28px; z-index: 9999;
  background: var(--navy); color: var(--white); border: 2px solid var(--gold);
  padding: 12px 22px; border-radius: 50px; font-family: 'Inter', sans-serif;
  font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,55,105,.35); transition: all .25s; white-space: nowrap;
}
.contact-btn-fixed:hover {
  background: var(--gold); color: var(--navy); transform: translateY(-2px);
}

/* ── BLOG DISCLAIMER BAR ── */
.blog-disclaimer {
  background: var(--navy3);
  border-bottom: 3px solid var(--gold);
  padding: 11px 32px;
  margin-top: 70px; /* offset for fixed header */
}
.blog-disclaimer-in {
  max-width: 860px; margin: 0 auto;
  font-size: .79rem; color: rgba(255,255,255,.78);
  line-height: 1.5; display: flex; gap: 10px; align-items: flex-start;
}
.blog-disclaimer-in svg { flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.blog-disclaimer-in strong { color: var(--gold); }

/* ── BLOG ARTICLE ── */
.article-hero {
  padding: 100px 32px 60px; position: relative; overflow: hidden;
  background: url('Imagen4.jpg') center 30% / cover no-repeat;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,42,80,0.95) 0%, rgba(0,42,80,0.88) 60%, rgba(0,42,80,0.78) 100%);
}
.article-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; filter: blur(2px);
}
.article-hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }

/* Blog article header nav aliases (for blog articles using older class names) */
.hdr-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 32px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.logo-link img { height: 44px; width: auto; }
.logo-img { height: 44px; width: auto; }
.hdr-inner nav.main-nav a {
  color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 500;
  padding: 8px 13px; border-radius: 6px; text-decoration: none;
  transition: color .2s, background .2s; white-space: nowrap;
}
.hdr-inner nav.main-nav a:hover { color: var(--gold); background: rgba(255,184,0,.08); }
.hdr-inner nav.main-nav a.nav-cta {
  background: var(--gold); color: var(--navy);
  font-weight: 700; padding: 9px 20px; border-radius: 7px; font-size: .84rem;
}
.hdr-inner nav.main-nav a.nav-cta:hover { background: var(--gold-d); color: var(--white); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
@media (max-width: 768px) { .burger { display: flex; } }
@media (max-width: 768px) {
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--navy3);
    z-index: 999;
    padding: 20px 24px 48px;
    overflow-y: auto;
    gap: 4px;
  }
  nav.main-nav.open a {
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    padding: 13px 16px;
    border-radius: 8px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
  }
  nav.main-nav.open a:hover { background: var(--gold-l); color: var(--gold); }
  nav.main-nav.open a.nav-cta {
    background: var(--gold); color: var(--navy);
    font-weight: 700; text-align: center;
    margin-top: 12px; border-bottom: none;
    border-radius: 8px;
  }
}
.article-hero .cat-badge {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 20px; font-family: 'Inter', sans-serif; letter-spacing: .04em;
  position: relative; z-index: 2;
}
.article-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; position: relative; z-index: 2; }
.article-hero .lead,
.article-hero .article-lead { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.8; position: relative; z-index: 2; margin-bottom: 24px; }
.article-hero .article-meta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.article-hero .article-cat {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  font-family: 'Inter', sans-serif; letter-spacing: .04em;
}
.article-hero .article-date { font-size: .82rem; color: rgba(255,255,255,.55); font-family: 'Inter', sans-serif; }
.article-hero .article-author-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.article-hero .article-author-bar strong,
.article-hero .article-author-bar b { color: var(--white); font-size: .95rem; display: block; }
.article-hero .article-author-bar span,
.article-hero .article-author-bar p { color: rgba(255,255,255,.58); font-size: .82rem; }
.article-hero .author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.article-hero .container { position: relative; z-index: 2; }
.article-meta {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
}
.article-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.article-meta-item svg { color: var(--gold); }
.article-layout {
  max-width: 1100px; margin: 0 auto; padding: 60px 32px;
  display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start;
}
.article-body { min-width: 0; grid-column: 1; grid-row: 1; }
.article-body h2 {
  font-size: 1.5rem; color: var(--navy); margin: 40px 0 16px; padding-top: 8px;
  border-top: 2px solid var(--gold-l);
}
.article-body h3 { font-size: 1.15rem; color: var(--navy); margin: 28px 0 12px; }
.article-body p { font-size: .95rem; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.article-body ul, .article-body ol {
  padding-left: 22px; margin-bottom: 16px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: .93rem; color: var(--muted); line-height: 1.8; margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body .table-wrap { margin: 24px 0; }
.article-toc {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 90px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r); padding: 28px;
  box-shadow: var(--sh);
}
.article-toc h4 {
  font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.article-toc ul { list-style: none; }
.article-toc ul li { margin-bottom: 8px; }
.article-toc ul li a {
  font-size: .85rem; color: var(--muted); transition: color .2s; line-height: 1.4;
  display: block; padding-left: 12px; border-left: 2px solid transparent;
}
.article-toc ul li a:hover,
.article-toc ul li a.active { color: var(--gold); border-left-color: var(--gold); }
.cta-box {
  background: var(--navy3); border-radius: var(--r); padding: 32px;
  margin: 40px 0; border: 1px solid rgba(255,184,0,.2);
}
.cta-box h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 20px; line-height: 1.7; }
.cta-box .btn-primary { display: inline-flex; }

/* ── LOCAL PAGES ── */
.local-hero {
  position: relative; overflow: hidden;
  background: url('../Imagen4.jpg') center 30% / cover no-repeat;
  padding: 120px 32px 72px; text-align: center;
}
.local-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,42,80,0.94) 0%, rgba(0,42,80,0.88) 50%, rgba(0,42,80,0.78) 100%);
}
.local-hero .container { position: relative; z-index: 2; }
.local-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.local-hero p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.btn-gold {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: .95rem; padding: 14px 28px; border-radius: 8px;
  text-decoration: none; transition: all .2s; border: 2px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--gold);
  font-weight: 700; font-size: .95rem; padding: 12px 26px; border-radius: 8px;
  text-decoration: none; transition: all .2s; border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; text-align: center; transition: all .25s;
}
.city-card:hover {
  border-color: var(--gold); background: var(--gold-l);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,55,105,.1);
}
.city-card h3 { font-size: .95rem; color: var(--navy); margin-bottom: 4px; }
.city-card p { font-size: .78rem; color: var(--muted); }

/* ── PAGE HERO (non-article) ── */
.page-hero {
  position: relative; overflow: hidden;
  background: url('Imagen4.jpg') center 30% / cover no-repeat;
  padding: 100px 32px 60px; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,42,80,0.96) 0%, rgba(0,42,80,0.91) 50%, rgba(0,42,80,0.84) 100%);
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.68); font-size: 1.02rem; max-width: 680px; margin: 0 auto; }

/* ── STEP LIST ── */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; box-shadow: var(--sh);
}
.step-num {
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 700;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; flex-shrink: 0;
}
.step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: .87rem; color: var(--muted); line-height: 1.7; }

/* ── RESPONSIVE GRIDS (index.html sections) ── */
.req-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plazos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.proceso-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-left { padding: 80px 32px 60px; max-width: 100%; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .sim-wrap { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .cities-grid { grid-template-columns: repeat(3,1fr); }
  .proceso-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .plazos-grid { gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  nav.main-nav { display: none; }
  .hbg { display: flex; }
  .hdr-in { padding: 0 20px; }
  .form-card { padding: 24px 18px; }
  .contact-grid { gap: 32px; }
  .jacob-card { flex-direction: column; text-align: center; gap: 12px; }
  .jacob-card img { margin: 0 auto; }
  .contact-detail { font-size: .85rem; }
  .hero-left { padding: 52px 20px 44px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cards-grid, .cards-grid-2, .cards-grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2,1fr); }
  .wa-float { bottom: 20px; right: 16px; }
  .contact-btn-fixed { bottom: 20px; left: 14px; padding: 10px 15px; font-size: .75rem; }
  .trust-bar-in { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .trust-sep { display: none; }
  .req-grid { grid-template-columns: 1fr; gap: 16px; }
  .plazos-grid { grid-template-columns: 1fr; gap: 32px; }
  .proceso-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .local-hero { padding: 80px 20px 52px; }
  .page-hero { padding: 80px 20px 48px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; line-height: 1.25; }
  .hero-sub { font-size: .95rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .proceso-grid { grid-template-columns: 1fr; gap: 12px; }
  .req-grid { gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .trust-bar-in { flex-direction: column; align-items: center; gap: 8px; }
  .trust-item { font-size: .78rem; }
  .stat-num { font-size: 1.6rem; }
  .section { padding: 52px 16px; }
}

/* ── BLOG MOBILE OPTIMIZATIONS ── */
@media (max-width: 768px) {
  .article-hero { padding: 80px 18px 36px; }
  .article-hero h1 { font-size: clamp(1.5rem, 5.6vw, 1.95rem); line-height: 1.25; }
  .article-hero .article-lead { font-size: .95rem; line-height: 1.65; }
  .article-hero .article-meta { gap: 8px; }
  .article-hero .article-cat { font-size: .68rem; padding: 3px 10px; }
  .article-hero .article-date { font-size: .76rem; }
  .article-hero .article-author-bar { gap: 10px; padding-top: 16px; margin-top: 18px; }
  .article-hero .article-author-bar strong { font-size: .9rem; }
  .article-hero .article-author-bar span { font-size: .76rem; }
  .article-hero .author-avatar { width: 40px; height: 40px; }

  .article-layout { padding: 36px 16px; gap: 32px; }
  .article-body h2 { font-size: 1.22rem; margin: 28px 0 12px; line-height: 1.3; }
  .article-body h3 { font-size: 1.02rem; margin: 22px 0 10px; }
  .article-body p { font-size: .92rem; line-height: 1.7; }
  .article-body li { font-size: .9rem; line-height: 1.65; }
  .article-body ul, .article-body ol { padding-left: 18px; }

  /* Disclaimer bar — mobile fix: padding lateral cómodo y mejor legibilidad */
  .blog-disclaimer { padding: 10px 14px; border-bottom-width: 2px; }
  .blog-disclaimer-in { font-size: .74rem; line-height: 1.5; gap: 7px; max-width: 100%; }
  .blog-disclaimer-in svg { width: 13px; height: 13px; }
  .blog-disclaimer-in strong { display: inline; }

  .toc-box { padding: 18px 16px; }
  .toc-cta-box { padding: 16px; }

  /* Tables: scroll if overflow, sin min-width forzado para tablas pequeñas */
  .article-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body .table-wrap table { font-size: .82rem; min-width: 480px; }
  .article-body table { font-size: .8rem; width: 100%; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body table thead, .article-body table tbody { display: table; width: 100%; min-width: 100%; }
  .article-body th, .article-body td { padding: 6px 8px; word-wrap: break-word; }

  /* Notice boxes */
  .notice, .notice-gold, .notice-green, .notice-blue { padding: 14px 16px; font-size: .88rem; line-height: 1.6; }

  /* Override inline blog-grid declarations from older posts */
  .blog-grid[style*="auto-fill"] { grid-template-columns: 1fr !important; }

  /* Constrain raw images and avoid overflow */
  .article-body img, .article-body iframe { max-width: 100%; height: auto; }

  /* Cards inside articles */
  .consulta-card { padding: 14px 16px !important; }
  .consulta-card p { font-size: .85rem !important; }

  /* CTA blocks with side-by-side buttons */
  .cta-box { padding: 24px 18px; }
  .cta-box h3 { font-size: 1.05rem; }
  .cta-box .btn-primary, .cta-box .btn-ghost, .cta-box .btn-gold, .cta-box .btn-outline { display: block; width: 100%; text-align: center; margin: 6px 0; }
}

@media (max-width: 480px) {
  .article-hero { padding: 70px 14px 30px; }
  .article-hero h1 { font-size: 1.45rem; }
  .article-layout { padding: 28px 14px; }
  .article-body table { min-width: 420px; }
  .blog-disclaimer-in { font-size: .74rem; }
}
