:root {
  --navy: #0A1628;
  --navy-dark: #132038;
  --navy-soft: #132038;
  --border-navy: #1e3255;
  --gold: #C9A050;
  --gold-lt: #E0B860;
  --gold-dim: #9a7535;
  --bg: #F7F4EE;
  --card: #ffffff;
  --text: #1a2035;
  --muted: #4a5568;
  --soft: #8899bb;
  --line: #e2e8f0;
  --green: #2e7d52;
  --red: #c0392b;
  --shadow: 0 2px 12px rgba(10, 22, 40, 0.10);
}

/* Skip navigation */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-nav:focus { top: 0; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--navy); }

button, a, [role="button"], input[type="submit"] {
  touch-action: manipulation;
}

/* Header */
header {
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header .brand { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
header .brand span { color: var(--gold); }
header .tagline { font-size: 12px; color: #cfe0e5; margin-top: 2px; }
header .header-actions a {
  color: #fff; text-decoration: none; font-size: 13px;
  border: 1px solid rgba(255,255,255,.4); padding: 6px 12px; border-radius: 6px;
}
header .header-actions a:hover { background: rgba(255,255,255,.12); }

/* Layout */
.layout { display: flex; height: calc(100vh - 68px); }
.sidebar {
  width: 340px; min-width: 340px; background: var(--card);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
.filters { padding: 16px; overflow-y: auto; border-bottom: 1px solid var(--line); }
.filters h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.filter-group select, .filter-group input[type="text"] {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff;
}
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row output { font-size: 13px; color: var(--muted); min-width: 70px; text-align: right; }
input[type="range"] { width: 100%; accent-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; background: #fff; user-select: none;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-clear {
  width: 100%; padding: 9px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted);
}
.btn-clear:hover { background: var(--bg); }

.result-count { padding: 10px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cards { overflow-y: auto; padding: 12px; flex: 1; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 12px; cursor: pointer; transition: box-shadow .15s, transform .1s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card.highlight { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,161,74,.3); }
.card h4 { margin: 0 0 4px; font-size: 16px; }
.card .zone { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card .price { font-size: 15px; font-weight: 700; color: var(--navy); }
.card .meta { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.card-roi { margin-top: 8px; font-size: 12px; color: var(--green); background: #edfaf3; border: 1px solid #b2dfcc; border-radius: 6px; padding: 4px 8px; display: inline-block; }
.badge {
  display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: #eef3f4; color: var(--navy); font-weight: 600;
}
.badge.status { background: #e8f3ec; color: #2e7d4f; }

#map { flex: 1; height: 100%; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,22,40,0);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
  transition: background .35s ease;
}
.modal-backdrop.open {
  display: flex;
  background: rgba(10,22,40,.6);
}

/* Modal entra escalando desde el centro — como si saliera del pin */
.modal {
  transform: scale(0.82) translateY(16px);
  opacity: 0;
  transition: transform .84s cubic-bezier(.22,.68,0,1.2), opacity .7s ease;
}
.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Sección "más información" colapsable */
.detail-more-btn {
  width: 100%;
  background: #f4f7fb;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 0;
  transition: background .2s, border-color .2s;
  font-family: 'Inter', sans-serif;
}
.detail-more-btn:hover { background: #eaf0fb; border-color: var(--navy); }
.detail-more-btn .dmb-arrow {
  font-size: 18px;
  transition: transform .35s ease;
  display: inline-block;
}
.detail-more-btn.open .dmb-arrow { transform: rotate(180deg); }

.detail-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  opacity: 0;
}
.detail-more-content.open {
  max-height: 1200px;
  opacity: 1;
}
.modal {
  background: #fff; border-radius: 14px; max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-header {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.modal-header h2 { margin: 0; font-size: 22px; }
.modal-header .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px 22px; }
.modal-body .price-big { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 16px 0; }
.detail-grid .item .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.detail-grid .item .v { font-size: 15px; font-weight: 600; }
.section-title { font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; margin: 18px 0 8px; }
.amenity-list { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 11px 18px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }

/* Intake form */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.internal-box {
  background: #fff8e8; border: 1px solid var(--gold); border-radius: 10px;
  padding: 12px 14px; margin-top: 14px; font-size: 14px;
}
.internal-box .tag { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; }

/* Login */
.login-wrap { max-width: 380px; margin: 60px auto; background: #fff; padding: 28px; border-radius: 14px; box-shadow: var(--shadow); }
.login-wrap h2 { margin-top: 0; }

@media (max-width: 820px) {
  .layout { flex-direction: column; height: auto; }
  .sidebar { width: 100%; min-width: 0; }
  #map { height: 50vh; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   Marca / logotipo
═══════════════════════════════════════ */
header .brand-row { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; display: block; border-radius: 6px; }
.login-logo { display: block; margin: 0 auto 14px; height: 110px; width: auto; border-radius: 12px; }

/* ═══════════════════════════════════════
   Portal unificado (catálogo + calculadora)
   Una sola barra lateral; el contenido cambia de apartado.
═══════════════════════════════════════ */
.portal-body { display: flex; min-height: 100vh; }

/* Barra lateral persistente */
#portal-nav {
  width: 230px; min-width: 230px; background: var(--navy);
  display: flex; flex-direction: column; flex-shrink: 0;
}
#portal-nav .nav-logo { padding: 22px 18px 16px; text-align: center; border-bottom: 1px solid var(--border-navy); }
#portal-nav .nav-logo img { width: 150px; max-width: 90%; }
#portal-nav nav { padding: 18px 0; flex: 1; overflow-y: auto; }
#portal-nav .nav-section {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--soft); padding: 14px 20px 8px;
}
#portal-nav .nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 20px; background: none; border: none;
  color: #aabbd4; font-size: 13.5px; cursor: pointer; text-align: left;
  border-left: 3px solid transparent; transition: all .15s;
}
#portal-nav .nav-btn:hover { background: var(--navy-soft); color: #fff; }
#portal-nav .nav-btn.active { background: var(--navy-soft); color: var(--gold); border-left-color: var(--gold); }
#portal-nav .nav-icon { font-size: 16px; width: 20px; text-align: center; }
#portal-nav .nav-user { padding: 16px 20px; border-top: 1px solid var(--border-navy); }
#portal-nav .nav-user .u-name { color: var(--bg); font-size: 13px; font-weight: 600; display: block; }
#portal-nav .nav-user .u-role { color: var(--soft); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
#portal-nav .nav-user a {
  display: inline-block; margin-top: 10px; padding: 6px 12px;
  background: rgba(201,160,80,.12); border: 1px solid rgba(201,160,80,.25);
  border-radius: 6px; color: var(--gold); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-decoration: none; text-transform: uppercase;
}
#portal-nav .nav-user a:hover { background: rgba(201,160,80,.22); }
#portal-nav .nav-user a.alt { background: transparent; border-color: var(--border-navy); color: #aabbd4; }

/* Contenido del portal */
#portal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.portal-view { display: none; flex: 1; min-height: 0; }
.portal-view.active { display: flex; flex-direction: column; }

/* La vista de catálogo reutiliza .layout a pantalla completa */
#view-catalogo .layout { height: 100vh; }
#portal-nav .nav-logo { padding: 22px 18px 16px; }

/* ── Calculadora ───────────────────────── */
.calc-topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.calc-topbar h1 { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: .3px; margin: 0; }
.calc-content { padding: 24px 26px 80px; background: var(--bg); flex: 1; }
.calc-tab-btn { background: none; border: none; border-bottom: 3px solid transparent; padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.calc-tab-btn:hover { color: var(--navy); }
.calc-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.page-section { display: none; }
.page-section.active { display: block; }

.calc-scope .card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
  cursor: default; transform: none;
}
.calc-scope .card:hover { box-shadow: 0 1px 4px rgba(0,0,0,.04); transform: none; }
.calc-scope .card-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.calc-scope .card-title::before {
  content: ""; display: inline-block; width: 3px; height: 16px;
  background: linear-gradient(var(--gold), var(--gold-lt)); border-radius: 2px;
}

.inputs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.input-group label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px; }
.input-group input { width: 100%; border: 1px solid #dde3ee; border-radius: 7px; padding: 9px 12px; font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color .15s; }
.input-group input:focus { border-color: var(--gold); }
.input-group input:disabled { background: #f4f6fb; color: #aab; cursor: not-allowed; }
.computed-value { background: #f4f6fb; border: 1.5px solid #e0e4ef; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--gold-dim); min-height: 38px; display: flex; align-items: center; }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.metric.gold-accent { border-top: 3px solid var(--gold); }
.metric-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px; }
.metric-value { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; }
.metric-sub { font-size: 11px; color: var(--soft); margin-top: 4px; }

.calc-scope .table-wrap { overflow-x: auto; border-radius: 10px; }
.calc-scope table { width: 100%; border-collapse: collapse; font-size: 13px; }
.calc-scope thead tr { background: var(--navy); }
.calc-scope thead th { padding: 11px 14px; text-align: right; color: var(--gold); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.calc-scope thead th:first-child { text-align: left; }
.calc-scope tbody tr { border-bottom: 1px solid #edf0f7; }
.calc-scope tbody tr:hover { background: #fafbff; }
.calc-scope td { padding: 10px 14px; text-align: right; color: var(--text); white-space: nowrap; }
.calc-scope td:first-child { text-align: left; font-weight: 600; }
.calc-scope td.negative, .vpn-negative { color: var(--red); }
.calc-scope td.positive, .vpn-positive { color: var(--green); }
.occ-label { font-size: 12px; color: var(--muted); }
.vpn-highlight td { font-weight: 700; }

.note-fine { font-size: 11px; color: var(--soft); margin-top: 8px; }

/* Botones extra calculadora */
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-lt)); color: var(--navy); }
.btn-gold:hover { opacity: .9; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dim); }

/* Barra de cambios */
.save-bar {
  position: fixed; bottom: 24px; right: 32px; z-index: 200;
  background: var(--navy); border: 1px solid var(--border-navy); border-radius: 10px;
  padding: 12px 20px; display: none; align-items: center; gap: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.save-bar.visible { display: flex; }
.save-bar span { color: #aabbd4; font-size: 12px; }

/* Historial */
.hist-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.hist-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--navy), #1e3a60); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hist-info { flex: 1; min-width: 0; }
.hist-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.hist-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.hist-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-xs { padding: 6px 12px; font-size: 11px; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; }
.btn-xs-load { background: var(--navy); color: var(--gold); }
.btn-xs-del { background: rgba(192,57,43,.1); color: var(--red); border: 1px solid rgba(192,57,43,.2); }

/* Modal guardar */
.modal-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(5,12,28,.6); display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; width: 460px; max-width: 92vw; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal-box .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-box .modal-title { font-size: 16px; font-weight: 700; color: var(--navy); }
.modal-box .modal-close { background: none; border: none; font-size: 18px; color: var(--soft); cursor: pointer; }
.modal-box .modal-body { padding: 20px 22px; }
.modal-box .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .portal-body { flex-direction: column; }
  #portal-nav { width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  #portal-nav nav { display: flex; flex-wrap: wrap; padding: 6px; }
  #portal-nav .nav-section { display: none; }
  #view-catalogo .layout { height: auto; }
}

@media print {
  #portal-nav, .calc-topbar, .save-bar, header { display: none !important; }
  .page-section { display: block !important; }
  .calc-content { padding: 0; background: #fff; }
  .calc-scope thead tr { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .calc-scope thead th { color: var(--gold) !important; }
}

/* ---- Galería de imágenes en la ficha del proyecto ---- */
.detail-gallery { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: thin; }
.detail-gallery .gallery-img {
  height: 170px; width: auto; flex: 0 0 auto; border-radius: 12px; object-fit: cover; cursor: zoom-in;
  box-shadow: 0 3px 12px rgba(10,22,40,.18); transition: transform .15s ease;
}
.detail-gallery .gallery-img:hover { transform: translateY(-2px) scale(1.02); }
.detail-gallery.empty { overflow: visible; }
.gallery-placeholder {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #cdd7e8;
  border-radius: 12px; font-size: 14px;
}
.gallery-placeholder span { font-size: 30px; line-height: 1; }
.gallery-placeholder code { color: var(--gold-lt); background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; }

/* Lightbox (imagen a pantalla completa) */
.nissi-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(10,22,40,.93);
  display: none; align-items: center; justify-content: center; cursor: zoom-out; padding: 24px;
}
.nissi-lightbox.open { display: flex; }
.nissi-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 12px 50px rgba(0,0,0,.55); }
.nissi-lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer; opacity: .8;
}
.nissi-lightbox .lb-close:hover { opacity: 1; }

/* ═══ FAQ / ¿Por qué preventa? ═══ */
.faq-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: #fff; padding: 60px 24px 50px; text-align: center;
}
.faq-hero-inner { max-width: 700px; margin: 0 auto; }
.faq-badge { display: inline-block; background: rgba(201,160,80,.2); color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 20px; padding: 4px 16px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.faq-hero h1 { font-size: 36px; font-weight: 800; margin: 0 0 14px; line-height: 1.2; }
.faq-hero p { font-size: 17px; color: #b0bdd4; margin: 0; }

.faq-stats { display: flex; justify-content: center; gap: 0; background: var(--navy-dark); flex-wrap: wrap; }
.faq-stat { flex: 1; min-width: 160px; padding: 28px 20px; text-align: center; border-right: 1px solid #1e3255; }
.faq-stat:last-child { border-right: none; }
.faq-stat-num { font-size: 28px; font-weight: 800; color: var(--gold); }
.faq-stat-label { font-size: 12px; color: #8899bb; margin-top: 4px; }

.faq-section { padding: 56px 24px; max-width: 1000px; margin: 0 auto; }
.faq-section-title { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 32px; text-align: center; }

.faq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.faq-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: box-shadow .2s; }
.faq-card:hover { box-shadow: 0 4px 20px rgba(10,22,40,.1); }
.faq-icon { font-size: 28px; margin-bottom: 12px; }
.faq-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.faq-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-item[open] { border-color: var(--gold-dim); }
.faq-item[open] summary { background: #fdf8ee; }

.faq-cta { background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%); color: #fff; padding: 56px 24px; text-align: center; }
.faq-cta h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.faq-cta p { font-size: 16px; color: #b0bdd4; margin: 0; }

/* ═══ Comparador ═══ */
.cmp-btn {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 7px; cursor: pointer; font-size: 14px; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.cmp-btn:hover { background: #f0f4ff; border-color: var(--navy); }
.cmp-btn.cmp-active { background: var(--navy); border-color: var(--navy); filter: grayscale(0); }

.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--navy); color: #fff;
  padding: 12px 20px; display: none; align-items: center; gap: 12px;
  box-shadow: 0 -4px 20px rgba(10,22,40,.25);
}
#compareCount { flex: 1; font-size: 14px; font-weight: 600; }

.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table thead tr { background: var(--navy); }
.cmp-table thead th { padding: 14px 16px; color: #fff; text-align: left; }
.cmp-table thead th:first-child { width: 140px; }
.cmp-proj-name { font-size: 15px; font-weight: 700; color: var(--gold); }
.cmp-proj-sub { font-size: 12px; color: #b0bdd4; margin-top: 2px; }
.cmp-table tbody tr { border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:hover { background: #fafbff; }
.cmp-table td { padding: 11px 16px; vertical-align: top; }
.cmp-label { font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }

/* ═══ Búsqueda inteligente ═══ */
.ai-search-wrap {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a3155 100%);
  border-radius: 10px; padding: 12px; margin-bottom: 16px;
}
.ai-search-label { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px; }
.ai-search-row { display: flex; gap: 6px; }
.ai-search-row input {
  flex: 1; padding: 9px 12px; border: 1px solid #2a3f60; border-radius: 8px;
  background: rgba(255,255,255,.08); color: #fff; font-size: 13px;
  outline: none;
}
.ai-search-row input::placeholder { color: #6a85aa; }
.ai-search-row input:focus { border-color: var(--gold); background: rgba(255,255,255,.12); }
.ai-search-row button {
  padding: 9px 14px; background: var(--gold); color: var(--navy); border: none;
  border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.ai-search-row button:hover { background: var(--gold-lt); }
.ai-search-result { margin-top: 10px; font-size: 12px; }
.ai-found { color: #7aeaa0; font-weight: 600; margin-bottom: 6px; }
.ai-none { color: #f0a070; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ai-tag { background: rgba(201,160,80,.2); color: var(--gold); border: 1px solid rgba(201,160,80,.3); border-radius: 999px; padding: 2px 8px; font-size: 11px; }

/* ═══ WhatsApp flotante ═══ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 850;
  background: #25d366; color: #fff; border-radius: 50%;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.6); }

/* ═══ Footer ═══ */
.site-footer { background: var(--navy); color: #fff; padding: 40px 24px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.footer-logo { height: 52px; border-radius: 8px; }
.footer-name { font-size: 20px; font-weight: 800; }
.footer-name span { color: var(--gold); }
.footer-tagline { font-size: 12px; color: #7a93b8; margin-top: 3px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: #b0bdd4; text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3255; text-align: center; padding: 14px 0; font-size: 12px; color: #4a6280; }

/* ═══ Prospectos ═══ */
.prosp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.prosp-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.prosp-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.prosp-tel { font-size: 13px; color: var(--muted); margin-top: 2px; }
.prosp-status { font-size: 11px; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.prosp-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.prosp-notes { font-size: 13px; color: #555; background: #f8f9fb; border-radius: 8px; padding: 8px 12px; border-left: 3px solid var(--gold); }
.prosp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.prosp-date { font-size: 11px; color: #bbb; text-align: right; }

/* ═══ Stats Banner (legacy — replaced by .stats-section) ═══ */
/* .stats-banner { background: linear-gradient(135deg, var(--navy) 0%, #0d2240 100%); border-bottom: 2px solid var(--gold); }
.stats-inner { display: flex; justify-content: center; align-items: center; gap: 0; max-width: 900px; margin: 0 auto; padding: 20px 24px; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.stat-num { font-size: 38px; font-weight: 900; color: var(--gold); line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 12px; color: #b0c8e8; text-align: center; letter-spacing: .3px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 50px; background: #1e3a5f; margin: 0 24px; }
@media (max-width: 600px) {
  .stats-inner { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .stat-num { font-size: 28px; }
} */

/* ═══ Blog ═══ */
.blog-hero { background: linear-gradient(135deg, #0A1628 0%, #0d2240 100%); padding: 60px 24px 48px; text-align: center; border-bottom: 2px solid var(--gold); }
.blog-hero-inner { max-width: 640px; margin: 0 auto; }
.blog-hero h1 { font-size: 36px; font-weight: 900; color: #fff; margin: 12px 0 10px; }
.blog-hero p { color: #b0c8e8; font-size: 16px; line-height: 1.6; }
.blog-grid-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.blog-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.blog-card-img { height: 160px; background: linear-gradient(135deg, #0A1628, #1a3a6e); position: relative; }
.blog-card-img--1 { background: linear-gradient(135deg, #0A1628 0%, #1565c0 100%); }
.blog-card-img--2 { background: linear-gradient(135deg, #1a3a1a 0%, #2e7d32 100%); }
.blog-card-img--3 { background: linear-gradient(135deg, #3e1a00 0%, #e65100 100%); }
.blog-card-img--4 { background: linear-gradient(135deg, #1a0a2e 0%, #6a1b9a 100%); }
.blog-card-img--5 { background: linear-gradient(135deg, #0a2e1a 0%, #00695c 100%); }
.blog-card-img--6 { background: linear-gradient(135deg, #2e1a0a 0%, #c17900 100%); }
.blog-card--coming .blog-card-img::after { content: "Próximamente"; position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .5px; }
.blog-card-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .6px; }
.blog-card-body h2 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 8px 0 8px; line-height: 1.4; }
.blog-card-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.blog-meta { font-size: 12px; color: #aaa; }
.blog-cta { background: linear-gradient(135deg, var(--navy), #0d2240); border-radius: 16px; padding: 40px; text-align: center; color: #fff; }
.blog-cta h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.blog-cta p { color: #b0c8e8; margin: 0 0 20px; }

/* ═══ Bloque Desarrollador (modal detalle) ═══ */
.dev-block { background: #f4f7fb; border: 1px solid #dde4f0; border-radius: 12px; padding: 16px; margin: 16px 0; }
.dev-block-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.dev-logo-box { width: 52px; height: 52px; background: var(--navy); color: var(--gold); font-size: 18px; font-weight: 900; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: 1px; }
.dev-label { font-size: 10px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; }
.dev-name { font-size: 17px; font-weight: 800; color: var(--navy); margin: 2px 0 3px; }
.dev-tagline { font-size: 12px; color: var(--muted); font-style: italic; }
.dev-stats { display: flex; gap: 12px; flex-wrap: wrap; border-top: 1px solid #dde4f0; padding-top: 12px; }
.dev-stat { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 80px; text-align: center; }
.dev-stat-icon { font-size: 18px; }
.dev-stat-val { font-size: 15px; font-weight: 800; color: var(--navy); margin: 2px 0 1px; }
.dev-stat-lbl { font-size: 10px; color: var(--muted); text-align: center; }
.dev-link { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--navy); font-weight: 600; text-decoration: none; }
.dev-link:hover { color: var(--gold); }

/* ═══ Directorio Desarrolladoras ═══ */
.devdir-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }
.devdir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.devdir-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.devdir-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.devdir-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.devdir-projs { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.devdir-projs-title { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.devdir-projs-list { display: flex; flex-wrap: wrap; gap: 6px; }
.devdir-proj-chip { font-size: 11px; background: #eef2fa; color: var(--navy); border-radius: 999px; padding: 3px 10px; font-weight: 600; }

/* ═══ HEADER V2 — BLANCO ═══ */
.header-v2 { background: #fff; border-bottom: 1px solid #e8ecf4; padding: 0 40px; height: 100px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(10,22,40,.06); }
.header-v2 .brand-logo { height: 88px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav a { color: #3a4a6b; text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 13px; border-radius: 6px; transition: all .2s; white-space: nowrap; }
.header-nav a:hover { color: var(--navy); background: #f0f4ff; }
.header-nav .nav-asesor { background: var(--navy); color: #fff !important; border-radius: 8px; padding: 9px 18px; font-weight: 700; margin-left: 10px; }
.header-nav .nav-asesor:hover { background: var(--navy-dark) !important; color: #fff !important; box-shadow: 0 4px 14px rgba(10,22,40,.25); transform: translateY(-1px); }

/* ═══ HERO — ESTILO SOLOENPREVENTA ═══ */
.hero-section { position: relative; height: calc(100vh - 68px); min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  animation: kenBurns 18s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0)     translateY(0); }
  33%  { transform: scale(1.06) translateX(-1%)   translateY(-1%); }
  66%  { transform: scale(1.04) translateX(1.5%)  translateY(0.5%); }
  100% { transform: scale(1.08) translateX(-0.5%) translateY(1%); }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,22,40,1) 0%, rgba(10,22,40,0.97) 35%, rgba(10,22,40,0.7) 60%, rgba(10,22,40,0.1) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 600px; padding: 0 56px; }
.hero-badge { display: inline-block; background: rgba(196,160,80,0.15); border: 1px solid rgba(196,160,80,0.4); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-title { font-size: clamp(32px, 4.5vw, 58px); font-weight: 900; color: #fff; line-height: 1.12; margin: 0 0 12px; letter-spacing: -1px; }
.hero-gold { color: var(--gold); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0 0 28px; max-width: 460px; }

/* Hero stats row */
.hero-stats-row { display: flex; gap: 32px; margin-bottom: 32px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; font-weight: 500; }
.hero-stat-sep { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }

.btn-hero-primary { background: var(--gold); color: var(--navy); border: none; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 800; cursor: pointer; transition: all .2s; letter-spacing: .3px; }
.btn-hero-primary:hover { background: #e8c96a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,160,80,.45); }
.btn-hero-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); padding: 14px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; transition: all .2s; }
.btn-hero-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.hero-trust span { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.4); font-size: 20px; cursor: pointer; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ═══ Floating Cards sobre el hero ═══ */
.hero-float-cards { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.hfc { background: rgba(255,255,255,0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.22); border-radius: 14px; padding: 14px 18px; min-width: 190px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); pointer-events: all; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; cursor: default; }
.hfc:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.3); background: rgba(255,255,255,0.18); }
.hfc-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.hfc-value { font-size: 22px; font-weight: 900; color: #fff; line-height: 1.1; }
.hfc-value span { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); }
.hfc-sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.hfc-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 6px #22c55e; }
.hfc-dot-gold { background: var(--gold); box-shadow: 0 0 6px var(--gold); }

/* Pin decorativos */
.hero-pin { position: absolute; z-index: 4; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); cursor: pointer; transition: transform .2s, box-shadow .2s; animation: pinPulse 3s ease-in-out infinite; }
.hero-pin:hover { transform: scale(1.25); box-shadow: 0 0 20px rgba(34,197,94,0.6); }
.hero-pin.pin-green { background: #22c55e; }
.hero-pin.pin-gold { background: var(--gold); animation-delay: 1.2s; }
.hero-pin svg { width: 14px; height: 14px; fill: #fff; }
@keyframes pinPulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 8px rgba(34,197,94,0)} }
.hero-pin.pin-gold { animation-name: pinPulseGold; }
@keyframes pinPulseGold { 0%,100%{box-shadow:0 0 0 0 rgba(201,160,80,0.4)} 50%{box-shadow:0 0 0 8px rgba(201,160,80,0)} }
/* Tooltip del pin */
.hero-pin-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: rgba(10,22,40,0.92); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; padding: 5px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; border: 1px solid rgba(255,255,255,0.15); }
.hero-pin:hover .hero-pin-tip { opacity: 1; }
.hero-pin-tip::after { content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top-color: rgba(10,22,40,0.92); }

/* ═══ SECCIÓN ¿POR QUÉ NISSI? ═══ */
.nissi-trust { background: #f4f7fb; border-top: 1px solid #dde4f0; }
.nissi-trust-inner { max-width: 1100px; margin: 0 auto; padding: 80px 32px; display: flex; gap: 64px; align-items: center; }
.nissi-trust-left { flex-shrink: 0; }
.nissi-trust-photo-wrap { position: relative; width: 300px; }
.nissi-trust-photo { width: 300px; height: 380px; object-fit: cover; object-position: center top; border-radius: 16px; box-shadow: 0 20px 60px rgba(10,22,40,.25); display: block; }
.nissi-trust-badge { position: absolute; bottom: -16px; left: 16px; right: 16px; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(10,22,40,.3); }
.ntb-name { display: block; font-size: 15px; font-weight: 800; color: var(--gold); }
.ntb-title { display: block; font-size: 12px; color: #b0c8e8; margin-top: 2px; }
.nissi-trust-right { flex: 1; }
.nissi-trust-h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--navy); line-height: 1.2; margin: 0 0 16px; }
.nissi-trust-p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0 0 28px; }
.nissi-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nissi-pillar { display: flex; gap: 14px; align-items: flex-start; }
.nissi-pillar-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.nissi-pillar-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.nissi-pillar-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 768px) {
  .nissi-trust-inner { flex-direction: column; padding: 48px 20px 60px; gap: 48px; }
  .nissi-trust-photo-wrap { width: 100%; }
  .nissi-trust-photo { width: 100%; height: 280px; }
  .nissi-pillars { grid-template-columns: 1fr; }
  .hero-content { padding: 0 24px; }
  .header-nav a:not(.nav-asesor) { display: none; }
}

/* ═══ Hero Search ═══ */
.hero-search-wrap { display: flex; gap: 0; margin-bottom: 16px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.3); max-width: 560px; }
.hero-search-input { flex: 1; padding: 16px 20px; font-size: 15px; border: none; outline: none; background: rgba(255,255,255,.97); color: #1a1a2e; }
.hero-search-input::placeholder { color: #999; }
.hero-search-btn { background: var(--gold); color: var(--navy); border: none; padding: 16px 24px; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .2s; white-space: nowrap; }
.hero-search-btn:hover { background: #e8c96a; }
.hero-search-tips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-search-tips span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85); font-size: 12px; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.hero-search-tips span:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-1px); }

/* ═══ Favoritos ═══ */
.fav-btn { background: none; border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%; width: 36px; height: 36px; font-size: 18px; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.fav-btn:hover, .fav-btn.fav-active { background: rgba(231,76,60,.1); border-color: #e74c3c; transform: scale(1.15); }

/* Botón grande "Me interesa este proyecto" */
.fav-btn-big {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.fav-btn-big:hover {
  background: #fff5f5;
  border-color: #e74c3c;
  color: #c0392b;
}
.fav-btn-big.fav-active {
  background: #fff0f0;
  border-color: #e74c3c;
  color: #c0392b;
}
.favs-float { position: fixed; bottom: 90px; right: 24px; z-index: 999; background: #e74c3c; color: #fff; border: none; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(231,76,60,.4); display: flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s; }
.favs-float:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(231,76,60,.5); }
.favs-list { display: flex; flex-direction: column; gap: 10px; }
.favs-item { display: flex; align-items: center; justify-content: space-between; background: #f4f7fb; border-radius: 10px; padding: 12px 16px; border: 1px solid #dde4f0; }
.favs-item-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.favs-item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.favs-remove { background: none; border: none; color: #aaa; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all .2s; }
.favs-remove:hover { background: #fee; color: #e74c3c; }

/* ═══ Animaciones ═══ */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-up { animation: fadeUp .8s ease both; }
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.anim-visible { opacity: 1; transform: translateY(0); }

/* ═══ Animación de vistas ═══ */
@keyframes nissiSlideIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.view-anim { animation: nissiSlideIn 0.38s cubic-bezier(.22,.68,0,1.2) both; }

/* Micro-interacciones con glow */
.project-card { transition: transform .22s ease, box-shadow .22s ease !important; }
.project-card:hover { transform: translateY(-5px) !important; box-shadow: 0 12px 40px rgba(10,22,40,.18), 0 0 0 2px rgba(196,160,80,.2) !important; }
.btn, .btn-hero-primary, .btn-hero-secondary { transition: all .18s ease !important; }
.chip { transition: background .15s, color .15s, transform .15s, box-shadow .15s !important; }
.chip:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(10,22,40,.12); }
.chip.active:hover { box-shadow: 0 4px 14px rgba(10,22,40,.3); }
.card:hover { box-shadow: 0 8px 28px rgba(10,22,40,.12), 0 0 0 1px rgba(196,160,80,.15) !important; transform: translateY(-2px) !important; }
.btn-hero-primary:hover { box-shadow: 0 8px 28px rgba(196,160,80,.5) !important; }
.hfc { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.hero-search-btn:hover { box-shadow: 0 4px 16px rgba(196,160,80,.4); }

/* ═══ Heading fonts ═══ */
h1,h2,h3,.hero-title,.section-title,.stat-num,.how-step-title,.why-pillar-title { font-family: 'Fraunces', serif; }

/* ═══ Announce Bar ═══ */
.announce-bar { background: #0A1628; color: rgba(255,255,255,0.9); font-size: 13px; padding: 10px 24px; display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; z-index: 1001; }
.announce-cta { color: #C9A050; font-weight: 700; text-decoration: none; border: 1px solid rgba(201,160,80,0.5); padding: 3px 10px; border-radius: 999px; font-size: 12px; transition: all .2s; }
.announce-cta:hover { background: rgba(201,160,80,0.15); }
.announce-close { position: absolute; right: 16px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 16px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.announce-close:hover { color: #fff; }

/* ═══ Nav Dropdowns ═══ */
.nav-link { color: #3a4a6b; text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 13px; border-radius: 6px; transition: all .2s; white-space: nowrap; }
.nav-link:hover { color: var(--navy); background: #f0f4ff; }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-drop-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-4px); background: #fff; border: 1px solid #e8ecf4; border-radius: 12px; box-shadow: 0 8px 32px rgba(10,22,40,.12); min-width: 210px; padding: 12px 8px 8px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 200; margin-top: 0; }
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-drop-item { display: block; padding: 9px 14px; color: #1a2035; text-decoration: none; font-size: 13px; font-weight: 500; border-radius: 8px; transition: background .15s; }
.nav-drop-item:hover { background: #f4f7fb; color: #0A1628; }
.nav-caret { font-size: 10px; opacity: 0.6; }
.nav-cta-drop { background: var(--navy); color: #fff !important; border-radius: 8px; padding: 9px 18px !important; font-weight: 700; }
.nav-cta-drop:hover { background: #132038 !important; color: #fff !important; box-shadow: 0 4px 14px rgba(10,22,40,.25); }

/* ═══ Stats Section ═══ */
.stats-section { background: #fff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 48px 32px; }
.stats-section .stats-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.stats-section .stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 120px; }
.stats-section .stat-num { font-family: 'Fraunces', serif; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: #0A1628; line-height: 1; }
.stat-suffix { font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #C9A050; }
.stats-section .stat-label { font-size: 13px; color: #4a5568; margin-top: 8px; font-weight: 500; }
.stats-section .stat-divider { width: 1px; height: 56px; background: #e2e8f0; flex-shrink: 0; }

/* ═══ Sección Cómo ═══ */
.how-section { background: #F7F4EE; padding: 96px 32px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #C9A050; margin-bottom: 16px; }
.how-section .section-title, .why-section .section-title, .devwall-section .section-title { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #0A1628; margin: 0 0 16px; line-height: 1.15; }
.how-section .section-title em, .why-section .section-title em, .devwall-section .section-title em { font-style: italic; color: #C9A050; }
.section-sub { font-size: 16px; color: #4a5568; margin: 0 0 64px; }
.how-steps { display: flex; align-items: flex-start; gap: 24px; }
.how-step { flex: 1; background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 1px 2px rgba(10,22,40,.06), 0 8px 24px rgba(10,22,40,.08); border: 1px solid #e2e8f0; transition: transform .22s ease, box-shadow .22s ease; cursor: default; }
.how-step:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10,22,40,.08), 0 16px 48px rgba(10,22,40,.14); }
.how-step-num { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 900; color: rgba(10,22,40,.06); line-height: 1; margin-bottom: 8px; }
.how-step-icon { font-size: 32px; margin-bottom: 16px; }
.how-step-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: #0A1628; margin: 0 0 12px; }
.how-step-desc { font-size: 14px; color: #4a5568; line-height: 1.65; margin: 0 0 24px; }
.how-step-chip { display: inline-block; background: rgba(201,160,80,.1); border: 1px solid rgba(201,160,80,.3); color: #9a7535; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.how-step-arrow { font-size: 24px; color: #e2e8f0; flex-shrink: 0; margin-top: 80px; }

/* ═══ Sección Por qué NISSI ═══ */
.why-section { background: #0A1628; padding: 96px 32px; }
.why-inner { max-width: 1100px; margin: 0 auto; }
.why-section .section-label { color: rgba(201,160,80,0.8); }
.why-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.why-pillar { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 32px; transition: background .22s, transform .22s; }
.why-pillar:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.why-pillar-icon { font-size: 36px; margin-bottom: 24px; }
.why-pillar-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.why-pillar-desc { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin: 0; }

/* ═══ Developer Wall ═══ */
.devwall-section { background: #fff; padding: 96px 32px; }
.devwall-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.devwall-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 48px; }
.devwall-item { background: #F7F4EE; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 28px; font-size: 14px; font-weight: 700; color: #0A1628; cursor: pointer; transition: all .2s; letter-spacing: .3px; }
.devwall-item:hover { background: #0A1628; color: #fff; border-color: #0A1628; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,22,40,.15); }
.btn-outline-navy { background: none; border: 1.5px solid #0A1628; color: #0A1628; padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.btn-outline-navy:hover { background: #0A1628; color: #fff; }

@media (max-width: 768px) {
  .how-steps { flex-direction: column; }
  .how-step-arrow { transform: rotate(90deg); align-self: center; margin-top: 0; }
  .why-pillars { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   S1 — HEADER SCROLL-COMPACT + WA FLOAT MEJORADO
   ═══════════════════════════════════════════════ */

/* Header compacto al hacer scroll */
.header-v2 {
  transition: height .3s ease, box-shadow .3s ease, padding .3s ease;
}
.header-v2.scrolled {
  height: 68px;
  box-shadow: 0 4px 24px rgba(10,22,40,.13);
}
.header-v2.scrolled .brand-logo {
  height: 52px;
  transition: height .3s ease;
}
.header-v2 .brand-logo {
  transition: height .3s ease;
}
/* Línea de acento dorada debajo del header al hacer scroll */
.header-v2.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.45;
}
.header-v2 { position: sticky; } /* asegurar que ::after funcione */

/* WhatsApp flotante — pulse + tooltip */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 850;
  background: #25d366; color: #fff; border-radius: 50%;
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
  animation: none;
}
.wa-float::after {
  content: '¡Chatea con nosotros!';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: #0A1628;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  font-family: 'Inter', sans-serif;
}
.wa-float:hover::after { opacity: 1; }
.wa-float-label {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.wa-float:hover .wa-float-label { opacity: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,.5), 0 0 0 10px rgba(37,211,102,.12); }
}

/* Botón flotante "Agenda tu asesoría" que aparece al hacer scroll */
.cta-float {
  position: fixed; bottom: 96px; right: 24px; z-index: 849;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 999px;
  padding: 12px 22px; font-size: 13px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 20px rgba(201,160,80,.45);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.cta-float.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: all;
}
.cta-float:hover {
  background: #e8c96a;
  box-shadow: 0 6px 28px rgba(201,160,80,.6);
  transform: translateY(-2px);
}

/* Scroll-reveal universal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Responsive S1 */
@media (max-width: 640px) {
  .cta-float { display: none; }
  .wa-float::after { display: none; }
}

/* ════════════════════════════════════════════════════
   NUEVO MAPA + CATÁLOGO — layout rediseñado
   ════════════════════════════════════════════════════ */

/* ── Portal de asesores: sidebar filtros + mapa ── */
.layout {
  display: flex !important;
  height: calc(100vh - 68px) !important;
  background: var(--bg);
}

/* ── Página pública: mapa arriba + catálogo abajo ── */
.catalog-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  background: var(--bg);
}
.map-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  height: 42%;
  background: #e8ecf4;
  border-bottom: 2px solid #dde3ee;
}
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Sección inferior: filtros sticky + tarjetas con scroll propio */
.catalog-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.catalog-col .filter-bar {
  position: sticky;
  top: 0;
  z-index: 400;
  flex-shrink: 0;
}
.catalog-col .catalog-results {
  flex: 1;
  min-height: 0;
}

/* ── Búsqueda flotante sobre el mapa ── */
.map-search-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: min(760px, calc(100% - 32px));
}
.map-search-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(10,22,40,.22);
  overflow: hidden;
  border: 1.5px solid rgba(10,22,40,.08);
}
.map-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 0 16px;
  min-width: 0;
}
.map-search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: transparent;
  padding: 14px 0;
  min-width: 0;
}
.map-search-field input::placeholder { color: #aab; }
.msf-icon { font-size: 16px; flex-shrink: 0; }
.msf-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
  margin: 6px;
  flex-shrink: 0;
}
.msf-btn:hover { background: var(--navy-dark); }
.map-search-divider {
  width: 1px;
  background: #e2e8f0;
  margin: 10px 0;
  flex-shrink: 0;
}
.map-ai-result {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(10,22,40,.15);
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
}

/* ── Barra de filtros horizontal ── */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 54px;
  z-index: 400;
  box-shadow: 0 2px 12px rgba(10,22,40,.06);
}
.filter-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.fb-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.fb-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.fb-sep {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex-shrink: 0;
}
.fb-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  outline: none;
}
.fb-select:focus { border-color: var(--navy); }
.fb-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}
.fb-price-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
  height: 3px;
}
.fb-price-out {
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.fb-clear {
  background: none;
  border: 1px solid #dde4f0;
  color: #aab;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
  margin-left: 0;
}
.fb-clear:hover { background: #fee; color: #c0392b; border-color: #f5b7b1; }

/* ── Grid de tarjetas ── */
.catalog-results {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.catalog-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.result-count-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Skeleton screens para carga de tarjetas ── */
.card-skeleton {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.card-skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, #f0f4ff 25%, #e0e8ff 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.card-skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card-skeleton-line {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, #f0f4ff 25%, #e0e8ff 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.card-skeleton-line.short { width: 60%; }
.card-skeleton-line.long { width: 90%; }
.card-skeleton-line.medium { width: 75%; }
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tarjeta rediseñada para grid */
.cards-grid .card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.cards-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(10,22,40,.14), 0 0 0 2px rgba(201,160,80,.2);
}
.card-img-wrap {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #132038 0%, #1e3255 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cards-grid .card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(255,255,255,.2);
}
.card-avail-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.2);
}
.card-avail-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 0 2px 2px 0;
  transition: width .8s ease;
}
.card-avail-label {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 10px; font-weight: 700;
  color: #fff;
  background: rgba(10,22,40,.6);
  padding: 2px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-name {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}
.card-zone {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}
.card-price-sub { font-size: 11px; font-weight: 400; color: var(--muted); }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.card-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: #eef3f4;
  color: var(--navy);
}
.card-tag.tag-gold {
  background: rgba(201,160,80,.12);
  color: #9a7535;
}
.card-tag.tag-green {
  background: #edfaf3;
  color: #2e7d52;
}
.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-wa-btn {
  font-size: 12px;
  font-weight: 700;
  color: #25d366;
  background: none;
  border: 1.5px solid #25d366;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 5px;
}
.card-wa-btn:hover { background: #25d366; color: #fff; }
.card-detail-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.card-detail-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Popup del mapa ── */
.nissi-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(10,22,40,.22);
  border: none;
}
.nissi-popup .leaflet-popup-content {
  margin: 0;
  width: 260px !important;
}
.nissi-popup .leaflet-popup-tip-container { margin-top: -1px; }
.map-popup { font-family: 'Inter', sans-serif; }
.mp-img { width: 100%; height: 140px; overflow: hidden; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-body { padding: 14px 16px 16px; }
.mp-name {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 700;
  color: #0A1628; margin-bottom: 3px;
}
.mp-zone { font-size: 11px; color: #8899bb; margin-bottom: 8px; }
.mp-price { font-size: 17px; font-weight: 800; color: #0A1628; margin-bottom: 10px; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.mp-tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; background: #f0f4ff; color: #3a4a6b;
}
.mp-tag-green { background: #edfaf3; color: #2e7d52; }
.mp-more-btn {
  width: 100%;
  background: #0A1628;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
  text-align: center;
}
.mp-more-btn:hover { background: #C9A050; color: #0A1628; }

/* Responsive mapa + catálogo */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-panel { height: calc(100vh - 68px); }
  .map-wrap { width: 100%; height: 38%; }
}
@media (max-width: 768px) {
  /* Página pública: mapa arriba compacto, tarjetas abajo */
  .catalog-panel {
    flex-direction: column !important;
    height: auto !important;
  }
  .map-wrap {
    width: 100% !important;
    height: 240px !important;
    flex-shrink: 0 !important;
  }
  .catalog-col {
    overflow-y: visible !important;
    flex-direction: column !important;
  }
  .catalog-col .filter-bar {
    position: sticky !important;
    top: 56px !important;
  }
}
@media (max-width: 640px) {
  .map-search-bar { flex-direction: column; border-radius: 12px; }
  .map-search-divider { width: 100%; height: 1px; margin: 0 10px; }
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .filter-bar-inner { padding: 10px 16px; gap: 12px; }
  .catalog-results { padding: 16px 16px 48px; }
}

/* ══════════════════════════════════════════════════════════
   ✦ UI/UX PRO MAX — MEJORAS GLOBALES DE DISEÑO Y EXPERIENCIA
   ══════════════════════════════════════════════════════════ */

/* ── 1. Rendering global & accesibilidad ── */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(201,160,80,.28); color: var(--navy); }

/* Focus ring premium (accesibilidad WCAG AA) */
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 5px;
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5cde0; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9aaac8; }

/* ── 2. Tipografía mejorada ── */
.hero-title {
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72;
  text-rendering: optimizeLegibility;
}
.hero-stat-num, .stat-num, .metric-value, .card-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'kern' 1;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── 3. Cards de catálogo — rediseño premium ── */
.card-img-wrap { height: 200px; }

/* Shimmer skeleton mientras carga */
.card-img-wrap:not(:has(img.loaded)) {
  background: linear-gradient(90deg, #e8ecf4 25%, #f0f4fb 50%, #e8ecf4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Gradient overlay sobre imagen para dar profundidad */
.card-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(10,22,40,.6) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Badge de estado sobre la imagen */
.card-status-chip {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-status-chip.chip-green { background: rgba(34,197,94,.9); color: #fff; }
.card-status-chip.chip-gold  { background: rgba(201,160,80,.95); color: #0A1628; }
.card-status-chip.chip-red   { background: rgba(239,68,68,.9); color: #fff; }
.card-urgency-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(239,68,68,.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  letter-spacing: .3px;
}

/* Nombre del desarrollador sobre las cards */
.card-dev-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .9px; color: var(--gold);
  margin-bottom: 2px;
}
.card-name { font-size: 18px; line-height: 1.2; }
.card-price { font-size: 18px; color: var(--navy); margin-top: 2px; }
.card-price-label {
  display: block;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted);
  margin-bottom: 1px;
}
/* Hover de tarjeta mejorado */
.cards-grid .card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 24px 64px rgba(10,22,40,.15), 0 0 0 2px rgba(201,160,80,.35) !important;
}
.cards-grid .card:hover .card-img-wrap img {
  transform: scale(1.07);
}
.card-img-wrap img { transition: transform .45s cubic-bezier(.22,.68,0,1.2) !important; }

/* Botones del footer de tarjeta - más prominentes */
.card-footer { gap: 10px; }
.card-wa-btn {
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
.card-detail-btn {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
.card-detail-btn:hover { background: var(--gold) !important; color: var(--navy) !important; border-color: var(--gold) !important; }

/* Highlight state mejorado */
.cards-grid .card.highlight {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(201,160,80,.5), 0 12px 40px rgba(10,22,40,.14) !important;
}

/* ── 4. Barra de filtros — mejoras ── */
.filter-bar { border-top: 2px solid rgba(201,160,80,.25); }
.fb-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,160,80,.18) !important;
  outline: none;
}
.fb-label { color: #7a8caa; }

/* ── 5. Hero mejorado ── */
.hero-section { min-height: 620px; }
.hero-search-wrap { border-radius: 12px; }
.hero-search-input { border-radius: 0; }
.hero-trust span { font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: .2px; }

/* Stats row - peso visual mejorado */
.hero-stat-num { font-family: 'Fraunces', serif; letter-spacing: -1px; }

/* ── 6. Sección Stats ── */
.stats-section { border-bottom: none; box-shadow: 0 1px 0 var(--line); }
.stats-section .stat-num { letter-spacing: -1.5px; }

/* ── 7. Sección Cómo - acento en hover ── */
.how-step {
  position: relative;
  overflow: hidden;
}
.how-step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: 12px 12px 0 0;
}
.how-step:hover::before { opacity: 1; }
.how-step-arrow { color: rgba(201,160,80,.35) !important; }

/* ── 8. Modal - header oscuro premium ── */
.modal { border-radius: 20px !important; }
.modal-header {
  background: linear-gradient(135deg, #0A1628 0%, #132038 100%);
  border-radius: 20px 20px 0 0;
  border-bottom: none !important;
}
.modal-header h2 { color: #fff !important; font-family: 'Fraunces', serif; font-size: 20px !important; }
.modal-header .sub { color: rgba(255,255,255,.55) !important; }
.modal-close { color: rgba(255,255,255,.55) !important; }
.modal-close:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; border-radius: 50%; }
.modal-body .price-big { font-variant-numeric: tabular-nums; letter-spacing: -1px; }

/* Botón "Me interesa" más prominente */
.fav-btn-big {
  padding: 13px 24px !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  border: 2px solid #e2e8f0 !important;
  letter-spacing: .2px;
}
.fav-btn-big:hover {
  background: #fff5f5 !important;
  border-color: #e74c3c !important;
  color: #c0392b !important;
  transform: scale(1.02);
}

/* ── 9. Popup del mapa — acento dorado ── */
.mp-more-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt)) !important;
  color: var(--navy) !important;
}
.mp-name { font-size: 17px !important; }
.nissi-popup .leaflet-popup-tip { background: #fff !important; }

/* ── 10. Botones globales mejorados ── */
.btn-primary {
  background: linear-gradient(135deg, #0A1628 0%, #1a3860 100%) !important;
  letter-spacing: .2px;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,22,40,.25) !important; }
.btn-gold { background: linear-gradient(135deg, #C9A050 0%, #E0B860 100%) !important; }
.btn-gold:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,160,80,.4) !important; }

/* ── 11. Reveal animations — cubic-bezier suave ── */
.reveal {
  transition: opacity .7s cubic-bezier(.22,.68,0,1.15), transform .7s cubic-bezier(.22,.68,0,1.15) !important;
}

/* ── 12. Mejoras globales de footer ── */
.site-footer { padding-top: 56px; }
.footer-col a:focus-visible { outline-color: var(--gold); }

/* ── 13. DevWall items mejorados ── */
.devwall-item {
  transition: all .22s cubic-bezier(.22,.68,0,1.2) !important;
}
.devwall-item:hover {
  background: #0A1628 !important;
  color: #fff !important;
  border-color: #0A1628 !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 24px rgba(10,22,40,.2) !important;
}

/* ── 14. Floating buttons ajustados ── */
.wa-float { bottom: 28px; right: 28px; width: 58px; height: 58px; }
.cta-float { bottom: 104px; right: 28px; }

/* ── 15. Nav dropdown mejorado ── */
.nav-drop-menu { border: 1px solid rgba(10,22,40,.08) !important; }
.nav-drop-item:hover { background: #f4f7fb !important; }

/* ── 16. Mobile responsive mejorado ── */
@media (max-width: 768px) {
  .hero-float-cards { display: none; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-title { font-size: clamp(26px, 7vw, 40px) !important; }
  .hero-stats-row { gap: 16px; }
  .hero-stat-num { font-size: 26px; }
  .hero-stat-sep { display: none; }
  .stats-section .stat-divider { display: none; }
  .stats-section .stats-inner { gap: 20px; justify-content: center; }
  .stats-section .stat-item { min-width: 100px; }
  .how-steps { flex-direction: column; gap: 16px; }
  .how-step-arrow { display: none; }
  .why-pillars { grid-template-columns: 1fr; gap: 16px; }
  .hero-search-wrap { flex-direction: column; border-radius: 12px; }
  .hero-search-btn { border-radius: 0 0 10px 10px; }
}
@media (max-width: 480px) {
  .hero-section { min-height: 580px; }
  .hero-stats-row { flex-wrap: wrap; gap: 12px 24px; }
  .cards-grid { gap: 12px; }
}

/* ── 17. Map search overlay — mejor integración ── */
.map-search-field input::placeholder { color: #9aabc4; }
.map-search-bar { border: 1.5px solid rgba(10,22,40,.1) !important; }

/* ── 18. Announce bar — font mejora ── */
.announce-bar { letter-spacing: .15px; font-weight: 500; }

/* ── 19. Counter animation ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-num.counting { animation: countUp .4s ease both; }

/* ── 20. Image loading fade ── */
.card-img-wrap img {
  opacity: 0;
  transition: opacity .4s ease, transform .45s cubic-bezier(.22,.68,0,1.2) !important;
}
.card-img-wrap img.loaded { opacity: 1; }


/* ══════════════════════════════════════════
   NUEVAS SECCIONES — UI/UX PRO MAX ROUND 2
   ══════════════════════════════════════════ */

/* ── Mobile hamburger ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
  margin-left: 8px;
}
.mobile-menu-btn:hover { background: #f0f4ff; }
.mobile-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s;
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .header-nav { display: none !important; }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,22,40,.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.68,0,1.2);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(10,22,40,.2);
}
.mobile-nav-overlay.open .mobile-nav-drawer {
  transform: translateX(0);
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-logo { height: 52px; width: auto; border-radius: 6px; }
.mobile-nav-close {
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--muted); padding: 6px 10px;
  border-radius: 8px; transition: all .2s;
}
.mobile-nav-close:hover { background: #f4f7fb; color: var(--navy); }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 8px;
  flex: 1;
}
.mobile-nav-item {
  display: block;
  padding: 13px 16px;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: background .15s;
}
.mobile-nav-item:hover { background: #f4f7fb; color: var(--navy); }
.mobile-nav-ctas {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.mobile-cta-primary {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy);
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px; font-weight: 800;
  text-decoration: none;
  transition: opacity .2s;
}
.mobile-cta-primary:hover { opacity: .9; }
.mobile-cta-secondary {
  display: block; text-align: center;
  background: none;
  color: var(--navy);
  border: 1.5px solid var(--line);
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.mobile-cta-secondary:hover { border-color: var(--navy); }
.mobile-nav-contact {
  display: flex;
  gap: 12px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav-contact a {
  flex: 1; text-align: center;
  font-size: 13px; color: var(--muted);
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  background: #f4f7fb;
  transition: all .2s;
}
.mobile-nav-contact a:hover { background: #e8ecf4; color: var(--navy); }

/* ── Testimonials section ── */
.testimonials-section {
  background: linear-gradient(135deg, #0A1628 0%, #132038 100%);
  padding: 96px 32px;
}
.testimonials-inner { max-width: 1300px; margin: 0 auto; }
.testimonials-section .section-label { color: rgba(201,160,80,.85); margin-bottom: 16px; }
.testimonials-section .section-title { color: #fff; margin: 0 0 16px; }
.testimonials-section .section-sub { color: rgba(255,255,255,.55); margin-bottom: 40px; }

/* ── Controles del carrusel ── */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.testimonials-nav {
  display: flex;
  gap: 10px;
}
.tns-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  user-select: none;
}
.tns-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.tns-btn:disabled { opacity: .3; cursor: default; }
.tns-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tns-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: all .25s;
}
.tns-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 4px;
}

/* ── Track del carrusel ── */
.testimonials-track-wrap {
  overflow: hidden;
  border-radius: 4px;
}
.testimonials-grid {
  display: flex;
  gap: 20px;
  transition: transform .45s cubic-bezier(.22,.68,0,1.2);
  will-change: transform;
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px;
  transition: background .22s, transform .22s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.testimonial-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin: 0;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: #fff; }
.testimonial-role { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }

@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .testimonials-section { padding: 64px 0 64px; }
  .testimonials-inner { padding: 0 20px; }
  .testimonial-card { flex: 0 0 calc(100vw - 56px); }
  .testimonials-controls { padding: 0; }
}

/* ── Featured projects section ── */
.featured-section {
  background: var(--bg);
  padding: 96px 32px;
}
.featured-inner { max-width: 1100px; margin: 0 auto; }
.featured-inner .section-title { margin: 0 0 16px; }
.featured-inner .section-sub { margin-bottom: 48px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,22,40,.08);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(10,22,40,.16), 0 0 0 2px rgba(201,160,80,.3);
}
.featured-card-img {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #132038;
}
.featured-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,.1) 0%, rgba(10,22,40,.75) 100%);
}
.featured-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(201,160,80,.95);
  color: #0A1628;
  font-size: 10px; font-weight: 800;
  letter-spacing: .7px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.featured-card-badge.badge-new { background: rgba(99,102,241,.95); color: #fff; }
.featured-card-badge.badge-green { background: rgba(34,197,94,.95); color: #fff; }
.featured-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  z-index: 2;
}
.featured-card-dev {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.featured-card-name {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700;
  color: #fff; margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.featured-card-loc { font-size: 12px; color: rgba(255,255,255,.7); }
.featured-card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.featured-card-price-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted); display: block; margin-bottom: 2px;
}
.featured-card-price {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 800; color: var(--navy);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}
.featured-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-tag {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: #eef3f4; color: var(--navy);
}
.featured-tag-gold { background: rgba(201,160,80,.12); color: #9a7535; }
.featured-tag-green { background: #edfaf3; color: #2e7d52; }
.featured-cta {
  width: 100%; margin-top: auto;
  background: var(--navy);
  color: #fff;
  border: none; border-radius: 10px;
  padding: 11px; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: 'Inter', sans-serif;
}
.featured-cta:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-section { padding: 64px 24px; }
}
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ── CTA Final section ── */
.cta-final-section {
  background: linear-gradient(135deg, #0A1628 0%, #0d2240 50%, #0A1628 100%);
  padding: 100px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,160,80,.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-final-badge {
  display: inline-block;
  background: rgba(201,160,80,.15);
  border: 1px solid rgba(201,160,80,.35);
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 999px;
  margin-bottom: 28px;
}
.cta-final-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: #fff;
  line-height: 1.12; margin: 0 0 20px;
  letter-spacing: -1px;
}
.cta-final-gold { color: var(--gold); }
.cta-final-sub {
  font-size: 16px; color: rgba(255,255,255,.6);
  line-height: 1.7; margin: 0 0 40px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-final-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-final-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy);
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 15px; font-weight: 800;
  text-decoration: none; letter-spacing: .2px;
  transition: all .22s ease;
  box-shadow: 0 4px 24px rgba(201,160,80,.4);
}
.cta-final-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201,160,80,.55);
}
.cta-final-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,211,102,.15);
  border: 1.5px solid rgba(37,211,102,.4);
  color: #4ade80;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: all .22s ease;
}
.cta-final-wa:hover {
  background: rgba(37,211,102,.25);
  border-color: #4ade80;
  transform: translateY(-2px);
}
.cta-final-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final-trust span {
  font-size: 13px; color: rgba(255,255,255,.45);
  font-weight: 500;
}
@media (max-width: 640px) {
  .cta-final-section { padding: 72px 24px; }
  .cta-final-title { font-size: clamp(1.8rem,8vw,2.5rem); }
  .cta-final-btns { flex-direction: column; align-items: stretch; }
  .cta-final-primary, .cta-final-wa { text-align: center; justify-content: center; }
  .cta-final-trust { gap: 12px; }
}

/* ── Footer social buttons ── */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #b0bdd4;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all .2s;
}
.footer-social-btn:hover { background: rgba(201,160,80,.2); border-color: rgba(201,160,80,.4); color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-bottom-sep { color: #2a3f5f; }
.footer-bottom a:hover { color: var(--gold) !important; }

/* ── Cards empty state ── */
.cards-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}
.ces-icon { font-size: 56px; margin-bottom: 16px; }
.ces-title {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 700;
  color: var(--navy); margin: 0 0 10px;
}
.ces-desc { font-size: 15px; color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.ces-btn {
  background: var(--navy); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px 28px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.ces-btn:hover { background: var(--gold); color: var(--navy); }

/* ── Map fade-in ── */
#map { animation: mapFadeIn .8s ease both; }
@keyframes mapFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ══════════════════════════════════════════════════════════════
   📱 MOBILE MASTER OVERRIDE — resuelve todos los conflictos
   Aplica en pantallas ≤ 768px con máxima especificidad
   ══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {

  /* ── Header ── */
  .header-v2 {
    height: 64px !important;
    padding: 0 16px !important;
  }
  .header-v2 .brand-logo { height: 48px !important; }
  .header-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .header-v2.scrolled { height: 56px !important; }
  .header-v2.scrolled .brand-logo { height: 38px !important; }

  /* ── Announce bar ── */
  .announce-bar {
    font-size: 11px !important;
    padding: 8px 40px 8px 16px !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  /* ── Hero ── */
  .hero-section {
    height: auto !important;
    min-height: 100svh !important;
    padding: 40px 0 60px !important;
    align-items: flex-start !important;
  }
  .hero-content {
    padding: 20px 20px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-float-cards { display: none !important; }
  .hero-badge { font-size: 10px !important; padding: 5px 12px !important; }
  .hero-title {
    font-size: clamp(28px, 7vw, 36px) !important;
    letter-spacing: -.5px !important;
    margin-bottom: 20px !important;
  }
  .hero-stats-row {
    gap: 0 !important;
    margin-bottom: 24px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  .hero-stat-sep { display: none !important; }
  .hero-stat-num { font-size: 22px !important; }
  .hero-stat-label { font-size: 10px !important; }

  /* Hero search */
  .hero-search-wrap {
    flex-direction: column !important;
    border-radius: 12px !important;
    max-width: 100% !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.3) !important;
  }
  .hero-search-input {
    font-size: 14px !important;
    padding: 14px 16px !important;
    border-radius: 12px 12px 0 0 !important;
  }
  .hero-search-btn {
    padding: 14px !important;
    font-size: 14px !important;
    border-radius: 0 0 12px 12px !important;
  }
  .hero-search-tips {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }
  .hero-search-tips::-webkit-scrollbar { display: none; }
  .hero-search-tips span { flex-shrink: 0 !important; font-size: 11px !important; }
  .hero-trust { gap: 12px !important; margin-top: 16px !important; }
  .hero-trust span { font-size: 11px !important; }
  .hero-scroll { display: none !important; }

  /* ── Stats section ── */
  .stats-section { padding: 40px 20px !important; }
  .stats-section .stats-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .stats-section .stat-divider { display: none !important; }
  .stats-section .stat-num { font-size: clamp(2rem,10vw,2.5rem) !important; }
  .stat-suffix { font-size: clamp(1rem,5vw,1.4rem) !important; }
  .stats-section .stat-label { font-size: 12px !important; }

  /* ── Featured projects ── */
  .featured-section { padding: 56px 16px !important; }
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .featured-card-img { height: 200px !important; }
  .featured-card-price { font-size: 20px !important; }

  /* ── Sección Cómo ── */
  .how-section { padding: 56px 16px !important; }
  .how-steps {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .how-step-arrow { display: none !important; }
  .how-step { padding: 24px !important; }

  /* ── Sección Por qué ── */
  .why-section { padding: 56px 16px !important; }
  .why-pillars {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 40px !important;
  }
  .why-pillar { padding: 24px !important; }

  /* ── Testimonios ── */
  .testimonials-section { padding: 56px 16px !important; }
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .testimonials-section .section-sub { margin-bottom: 36px !important; }

  /* ── Developer wall ── */
  .devwall-section { padding: 56px 16px !important; }
  .devwall-grid { gap: 10px !important; }
  .devwall-item { padding: 12px 20px !important; font-size: 13px !important; }

  /* ── Mapa ── */
  .map-wrap { height: 320px !important; }
  .map-search-overlay { top: 12px !important; width: calc(100% - 24px) !important; }
  .map-search-bar {
    flex-direction: column !important;
    border-radius: 12px !important;
  }
  .map-search-field { padding: 0 12px !important; }
  .map-search-field input { font-size: 13px !important; padding: 12px 0 !important; }
  .map-search-divider { width: 100% !important; height: 1px !important; margin: 0 !important; }
  .msf-btn { margin: 6px !important; border-radius: 8px !important; font-size: 12px !important; }

  /* ── Filter bar ── */
  .filter-bar { top: 56px !important; }
  .filter-bar-inner { padding: 8px 12px !important; gap: 8px !important; }
  .fb-label { font-size: 8px !important; }
  .fb-select { font-size: 12px !important; padding: 5px 8px !important; }

  /* ── Cards grid ── */
  .catalog-results { padding: 14px 12px 48px !important; }
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .card-img-wrap { height: 180px !important; }
  .card-name { font-size: 16px !important; }
  .card-price { font-size: 16px !important; }

  /* ── NISSI Trust section ── */
  .nissi-trust-inner {
    flex-direction: column !important;
    padding: 48px 16px 56px !important;
    gap: 40px !important;
  }
  .nissi-trust-photo-wrap { width: 100% !important; }
  .nissi-trust-photo { width: 100% !important; height: 260px !important; }
  .nissi-pillars { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* ── CTA Final ── */
  .cta-final-section { padding: 64px 20px !important; }
  .cta-final-title { font-size: clamp(1.8rem,7vw,2.5rem) !important; }
  .cta-final-sub { font-size: 14px !important; }
  .cta-final-btns {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .cta-final-primary, .cta-final-wa {
    text-align: center !important;
    justify-content: center !important;
    padding: 15px 20px !important;
  }
  .cta-final-trust { gap: 10px !important; }
  .cta-final-trust span { font-size: 12px !important; }

  /* ── Footer ── */
  .site-footer { padding-top: 40px !important; }
  .footer-inner {
    flex-direction: column !important;
    gap: 32px !important;
    padding-bottom: 24px !important;
  }
  .footer-links { flex-direction: column !important; gap: 24px !important; }
  .footer-bottom { flex-direction: column !important; gap: 6px !important; }
  .footer-bottom-sep { display: none !important; }

  /* ── Floating buttons ── */
  .wa-float { width: 52px !important; height: 52px !important; bottom: 20px !important; right: 16px !important; }
  .wa-float::after { display: none !important; }
  .cta-float { display: none !important; }

  /* ── FAQs ── */
  .faq-hero { padding: 48px 20px 40px !important; }
  .faq-hero h1 { font-size: 28px !important; }
  .faq-section { padding: 40px 16px !important; }
  .faq-cards { grid-template-columns: 1fr !important; }
  .faq-stats { flex-direction: column !important; }
  .faq-stat { border-right: none !important; border-bottom: 1px solid #1e3255; }
  .faq-stat:last-child { border-bottom: none !important; }

  /* ── Blog ── */
  .blog-hero { padding: 48px 20px 40px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-cta { padding: 32px 20px !important; }

  /* ── Login ── */
  .login-wrap { margin: 30px 16px !important; }

  /* ── Section typography ── */
  .section-title { font-size: clamp(1.6rem,6vw,2.2rem) !important; }
  .section-sub { font-size: 14px !important; margin-bottom: 40px !important; }
}

/* Extra small screens ≤ 390px */
@media screen and (max-width: 390px) {
  .hero-title { font-size: 26px !important; }
  .hero-stats-row { grid-template-columns: 1fr 1fr !important; }
  .hero-stat:last-child { grid-column: 1 / -1 !important; }
  .featured-card-img { height: 180px !important; }
  .cta-final-title { font-size: 1.7rem !important; }
}


/* ══════════════════════════════════════════════════════════════
   📱 PORTAL MÓVIL (asesores.html) — layout dedicado ≤ 768px
   ══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {

  /* ── Portal shell: nav lateral se convierte en barra top ── */
  .portal-shell { flex-direction: column !important; }
  .portal-nav {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 0 !important;
    scrollbar-width: none !important;
  }
  .portal-nav::-webkit-scrollbar { display: none; }
  .portal-nav-logo { display: none !important; }
  .portal-nav-section { display: contents !important; }
  .portal-nav-label { display: none !important; }
  .portal-nav-links { display: flex !important; flex-direction: row !important; gap: 0 !important; }
  .portal-nav-link {
    white-space: nowrap !important;
    padding: 14px 16px !important;
    font-size: 12px !important;
    border-left: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
  }
  .portal-nav-link.active {
    border-left: none !important;
    border-bottom-color: var(--gold) !important;
    background: transparent !important;
  }
  .portal-nav-icon { font-size: 14px !important; }
  .portal-content { width: 100% !important; overflow: hidden !important; }

  /* ── Vista catálogo: layout apilado ── */
  #view-catalogo .layout {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* ── Sidebar: filtros colapsables ── */
  .sidebar {
    width: 100% !important;
    min-width: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Filtros: colapsados por defecto en móvil */
  .filters {
    display: none !important;
    padding: 12px 16px !important;
    overflow-y: visible !important;
    border-bottom: none !important;
  }
  .filters.mobile-open { display: block !important; }

  /* Botón toggle de filtros (se muestra en móvil) */
  .mobile-filter-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: var(--card) !important;
    border-bottom: 1px solid var(--line) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    user-select: none !important;
  }
  .mobile-filter-toggle .mft-icon { transition: transform .2s; }
  .mobile-filter-toggle.open .mft-icon { transform: rotate(180deg); }
  .mobile-filter-count {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
  }

  /* Resultado y tarjetas en móvil */
  .result-count { padding: 10px 16px 4px !important; font-size: 13px !important; }
  .cards { padding: 0 12px 24px !important; }
  .cards .card { margin-bottom: 14px !important; }

  /* ── Mapa en móvil: compacto debajo de tarjetas ── */
  #map {
    width: 100% !important;
    height: 300px !important;
    flex: none !important;
    order: 99 !important;
  }
}

/* Desktop: ocultar el toggle de filtros */
@media screen and (min-width: 769px) {
  .mobile-filter-toggle { display: none !important; }
  .filters { display: block !important; }
}

/* ═══ MEJORA 1: Banner búsqueda IA ═══ */
.ai-banner {
  display: flex; align-items: center; gap: 10px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; padding: 10px 16px; margin: 8px 0 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.ai-banner-icon { font-size: 16px; flex-shrink: 0; }
.ai-banner-clear {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--muted); padding: 2px 6px; border-radius: 4px;
  flex-shrink: 0;
}
.ai-banner-clear:hover { background: #fde68a; color: var(--text); }

/* ═══ MEJORA 2: Comparador ═══ */
.cmp-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border: 1.5px solid var(--line); border-radius: 20px;
  background: #fff; color: var(--muted); cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.cmp-btn:hover { border-color: var(--gold); color: var(--gold); }
.cmp-btn.cmp-active {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.cmp-btn.cmp-active::before { content: "✓ "; }
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: var(--navy); color: #fff;
  padding: 14px 24px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 -4px 24px rgba(10,22,40,.4);
}
#compareCount { font-size: 14px; font-weight: 600; flex: 1; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead { background: var(--navy); color: #fff; }
.cmp-table thead th { border-bottom: none; }
.cmp-proj-name { font-weight: 700; font-size: 15px; }
.cmp-proj-sub { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.cmp-label { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.cmp-table tbody tr:hover { background: #f8fafc; }
.cmp-tooltip {
  position: absolute; z-index: 9999;
  background: #1a2035; color: #fff; font-size: 12px;
  padding: 6px 12px; border-radius: 6px; pointer-events: none;
  opacity: 0; transition: opacity .2s; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.cmp-tooltip.show { opacity: 1; }

/* ═══ MEJORA 5: % Vendido ═══ */
.card-vendido-wrap {
  margin: 8px 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.card-vendido-bar {
  flex: 1; height: 5px; border-radius: 99px;
  background: #e2e8f0; overflow: hidden;
}
.card-vendido-fill {
  height: 100%; border-radius: 99px;
  transition: width .4s ease;
}
.card-vendido-txt {
  font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}

/* ═══ MEJORA 3: Calculadora de Plusvalía ═══ */
.plusvalia-section {
  background: var(--bg); padding: 80px 0;
}
.plusvalia-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.plusvalia-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; align-items: start;
}
.pv-field { margin-bottom: 24px; }
.pv-field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pv-field input[type="number"] {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; background: #fff; color: var(--text);
  transition: border-color .2s;
}
.pv-field input[type="number"]:focus { outline: none; border-color: var(--gold); }
.pv-slider {
  width: 100%; accent-color: var(--gold); cursor: pointer; margin: 8px 0 4px;
}
.pv-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.pv-anios-wrap { display: flex; align-items: center; gap: 12px; }
.pv-anio-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; font-size: 20px; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.pv-anio-btn:hover { border-color: var(--gold); color: var(--gold); }
.pv-anios-input {
  width: 60px; text-align: center; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 8px; font-size: 18px; font-weight: 700;
}
.plusvalia-results { display: flex; flex-direction: column; gap: 16px; }
.pv-result-card {
  background: #fff; border-radius: 14px; padding: 20px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.pv-result-card.pv-rc-green { border-left: 4px solid var(--green); }
.pv-rc-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.pv-rc-value { font-size: 26px; font-weight: 800; color: var(--navy); }
.pv-rc-value.pv-green { color: var(--green); }
.pv-chart { background: #fff; border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pv-chart-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.pv-bar-wrap { display: flex; align-items: center; gap: 10px; }
.pv-bar {
  height: 28px; border-radius: 6px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
  min-width: 20px;
}
.pv-bar-navy { background: var(--navy); }
.pv-bar-green { background: var(--green); }
.pv-bar-legend { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pv-disclaimer { font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 768px) {
  .plusvalia-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══ MEJORA 4: Sección Recursos / Blog ═══ */
.recursos-section {
  background: var(--navy); padding: 80px 0;
}
.recursos-section .section-label { color: var(--gold); }
.recursos-section .section-title { color: #fff; }
.recursos-section .section-title em { color: var(--gold); }
.recursos-section .section-sub { color: rgba(255,255,255,.65); }
.recursos-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.recursos-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px;
}
.recurso-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, background .2s;
}
.recurso-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.recurso-icon { font-size: 32px; }
.recurso-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; width: fit-content;
}
.recurso-badge-guia { background: #1a4f7a22; color: #60a5fa; border: 1px solid #1a4f7a55; }
.recurso-badge-tips { background: #22c55e22; color: #4ade80; border: 1px solid #22c55e55; }
.recurso-badge-webinar { background: #c9a05022; color: var(--gold-lt); border: 1px solid #c9a05055; }
.recurso-badge-glosario { background: #a78bfa22; color: #a78bfa; border: 1px solid #a78bfa55; }
.recurso-titulo { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.4; }
.recurso-desc { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; flex: 1; }
.recurso-cta {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold);
  text-decoration: none; margin-top: auto; padding-top: 4px;
  transition: color .2s;
}
.recurso-cta:hover { color: var(--gold-lt); }
@media (max-width: 900px) {
  .recursos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .recursos-grid { grid-template-columns: 1fr; }
}

/* Ajuste al card-footer para alojar botón comparar */
.card-footer {
  flex-wrap: wrap; gap: 6px;
}

/* ── Respeta preferencias de movimiento del sistema ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .testimonials-grid { transition: none !important; }
  .card { transition: none !important; }
}
