@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #071952;
  --forest:  #35A29F;
  --gold:    #F2F7A1;
  --cream:   #FAF8F4;
  --mist:    #F2EFE9;
  --ink:     #1A1A1A;
  --muted:   #6B7280;
  --border:  #E5E0D8;
  --white:   #FFFFFF;
  --chat-bg: #F7F5F1;
  --radius:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'DM Serif Display', Georgia, serif; }

/* ── Navbar ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  padding: 0 5%;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.nav-logo {
  text-decoration: none; margin-right: auto;
  display: flex; align-items: center;
}
.nav-logo-img { height: 48px; width: auto; display: block; }
/* Fallback texto si no carga la imagen */
.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--forest); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-cta {
  background: var(--dark); color: var(--white) !important;
  padding: 10px 22px; border-radius: 100px;
  font-size: 0.84rem !important; font-weight: 600 !important;
  text-decoration: none; transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--forest); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 5% 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
}
.nav-mobile.open { display: flex; animation: mobileMenuIn 0.22s ease; }
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile a {
  padding: 15px 4px;
  font-size: 1rem; font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--mist);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--forest); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-cta {
  margin-top: 14px;
  background: var(--dark) !important; color: var(--white) !important;
  padding: 14px 22px !important; border-radius: 100px;
  text-align: center; font-weight: 600 !important;
  border-bottom: none !important;
}

/* ── Hero ── */
.hero {
  min-height: 92vh;
  background: var(--dark);
  display: flex; align-items: center;
  padding: 80px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(53,162,159,0.35) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,247,161,0.15); border: 1px solid rgba(242,247,161,0.3);
  color: var(--gold); padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--white); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 36px; max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--forest); color: var(--white);
  padding: 15px 32px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #2B8E8C; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: rgba(255,255,255,0.85);
  padding: 15px 32px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* Hero stats */
.hero-stats {
  display: flex; flex-direction: column; gap: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 22px 26px;
  backdrop-filter: blur(8px);
}
.stat-card .num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--white); display: block;
  line-height: 1.05; letter-spacing: -0.01em;
}
.stat-card .num em {
  font-family: var(--font, inherit); font-style: normal;
  font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-left: 3px;
}
.stat-card .stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.stat-card .stat-sub {
  font-size: 0.78rem; color: var(--gold); margin-top: 6px;
}

/* ── Sección genérica ── */
section { padding: 88px 5%; }
.sec-inner { max-width: 1180px; margin: 0 auto; }
.sec-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.sec-sub {
  font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7;
}

/* ── Cómo funciona ── */
#como-funciona { background: var(--white); }

.como-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start; margin-top: 52px;
}

.step-list { display: flex; flex-direction: column; gap: 0; }

.step-item {
  display: flex; gap: 24px; position: relative;
  padding-bottom: 40px;
}
.step-item:last-child { padding-bottom: 0; }

.step-item::before {
  content: ''; position: absolute;
  left: 19px; top: 46px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
}
.step-item:last-child::before { display: none; }

.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 1rem; font-weight: 400;
  flex-shrink: 0; position: relative; z-index: 1;
}

.step-content { padding-top: 7px; }
.step-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.step-desc  { font-size: 0.87rem; color: var(--muted); line-height: 1.7; }
.step-time  {
  display: inline-block; margin-top: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--forest);
}
.step-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.step-tag   {
  font-size: 0.72rem; padding: 4px 11px; border-radius: 100px;
  background: rgba(53,162,159,0.08); color: var(--forest); font-weight: 500;
}

/* Right visual */
.como-visual {
  background: var(--dark); border-radius: 22px; padding: 14px;
  position: sticky; top: 90px;
}
.como-media {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4 / 5; background: #0a1a12;
}
.como-media-el {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.como-media-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(7,25,18,0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.74rem; font-weight: 600;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.14);
}
.como-media-live {
  width: 8px; height: 8px; border-radius: 50%; background: #4ADE80;
  animation: comoMediaPulse 2s ease-out infinite;
}
@keyframes comoMediaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.como-media-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 22px 20px;
  background: linear-gradient(to top, rgba(7,25,18,0.92) 0%, rgba(7,25,18,0.5) 55%, transparent 100%);
}
.como-media-caption {
  color: #fff; font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; line-height: 1.14; margin: 0;
}
.como-media-sub {
  color: rgba(255,255,255,0.72); font-size: 0.82rem; margin: 7px 0 0;
}
.como-steps-track { display: flex; flex-direction: column; gap: 14px; }
.como-step-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.como-step-row:hover { background: rgba(255,255,255,0.08); }
.como-step-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.como-step-icon svg { width: 16px; height: 16px; color: white; }
.como-step-lbl {
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.85);
}
.como-step-num {
  margin-left: auto; font-size: 0.7rem; color: var(--gold);
  font-weight: 700; letter-spacing: 0.05em;
}

.como-cta-wrap { text-align: center; margin-top: 52px; }
.como-cta {
  display: inline-block;
  background: var(--forest); color: var(--white);
  padding: 16px 40px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.como-cta:hover { background: #2B8E8C; transform: translateY(-2px); }

@media (max-width: 900px) {
  .como-grid { grid-template-columns: 1fr; }
  .como-visual { position: static; }
}

/* ── Sub-páginas (simulador) ── */
.subpage-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  text-decoration: none; margin-bottom: 28px;
  transition: color 0.2s;
}
.subpage-back:hover { color: rgba(255,255,255,0.9); }
.subpage-back svg { width: 14px; height: 14px; }

/* ── Hero Proyectos (foto full) ── */
.proy-hero {
  position: relative;
  width: 100%; height: 82vh; min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.proy-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.proy-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,25,82,0.18) 0%,
    rgba(7,25,82,0.52) 45%,
    rgba(7,25,82,0.82) 100%
  );
}
.proy-hero-back {
  position: absolute; top: 88px; left: 5%;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s; z-index: 2;
}
.proy-hero-back:hover { color: rgba(255,255,255,0.9); }
.proy-hero-back svg { width: 14px; height: 14px; }
.proy-hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 5%; max-width: 800px;
}
.proy-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.proy-hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--white); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.proy-hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.62);
  margin-bottom: 44px; line-height: 1.6;
}
.proy-hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.45); font-size: 0.76rem;
  text-decoration: none; transition: color 0.2s;
  animation: heroBounce 2.2s ease infinite;
}
.proy-hero-scroll:hover { color: rgba(255,255,255,0.8); }
.proy-hero-scroll svg { width: 22px; height: 22px; }
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Comparativa ── */
#por-que { background: var(--cream); }

.cmp-title { margin-bottom: 16px; }
.cmp-sub   { margin-bottom: 0; }

.cmp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 52px;
}

.cmp-card {
  border-radius: 22px; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 28px;
}

.cmp-card--dark {
  background: var(--dark);
  box-shadow: 0 8px 48px rgba(7,25,82,0.22);
}

.cmp-card--light {
  background: var(--white);
  border: 1.5px solid var(--border);
}

.cmp-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.cmp-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; color: var(--white); letter-spacing: -0.5px;
}
.cmp-logo em { color: var(--gold); font-style: normal; }
.cmp-logo--muted { color: var(--ink); font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

.cmp-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
  white-space: nowrap;
}
.cmp-badge--gold {
  background: rgba(242,247,161,0.18); color: var(--gold);
  border: 1px solid rgba(242,247,161,0.3);
}
.cmp-badge--gray {
  background: var(--mist); color: var(--muted);
  border: 1px solid var(--border);
}

.cmp-claim {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--white); line-height: 1.2; letter-spacing: -0.02em;
}
.cmp-claim--muted { color: var(--ink); }

.cmp-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.cmp-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5;
}
.cmp-list li svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  color: #4ADE80;
}
.cmp-list--muted li { color: var(--muted); }
.cmp-list--muted li svg { color: #F87171; }

.cmp-cta {
  display: inline-block;
  background: var(--forest); color: var(--white);
  padding: 16px 40px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.cmp-cta:hover { background: #2B8E8C; transform: translateY(-2px); }

/* Textos amarillos en card oscura */
.cmp-card--dark .cmp-logo { color: var(--gold); }
.cmp-card--dark .cmp-claim { color: var(--gold); }
.cmp-card--dark .cmp-list li { color: rgba(242,247,161,0.85); }

@media (max-width: 900px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-card { padding: 32px 24px; }
}

/* ── Calculadora ── */
#calculadora { background: var(--cream); }
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start; margin-top: 48px;
}
.calc-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}
.chip {
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.83rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.18s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.active {
  background: var(--dark); border-color: var(--dark);
  color: var(--white);
}
.calc-card {
  background: var(--white); border-radius: 20px;
  padding: 36px; border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--mist);
  font-size: 0.9rem;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row .label { color: var(--muted); }
.calc-row .value { font-weight: 600; color: var(--ink); }
.calc-highlight {
  background: var(--dark); border-radius: 14px;
  padding: 22px 24px; margin: 20px 0;
  text-align: center;
}
.calc-highlight .label { font-size: 0.75rem; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; text-transform: uppercase; }
.calc-highlight .amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: var(--white); margin: 4px 0;
}
.calc-plusvalia {
  background: rgba(242,247,161,0.08); border: 1px solid rgba(242,247,161,0.2);
  border-radius: 10px; padding: 14px 18px; margin-top: 16px;
  font-size: 0.83rem; color: var(--ink); line-height: 1.5;
}
.calc-plusvalia strong { color: var(--forest); }
.calc-cta {
  width: 100%; margin-top: 24px; padding: 15px;
  background: var(--forest); color: var(--white);
  border: none; border-radius: 100px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.calc-cta:hover { background: #2B8E8C; transform: translateY(-2px); }
.calc-nota { font-size: 0.75rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Lado izquierdo calc */
.calc-why h3 { font-size: 1.5rem; margin-bottom: 16px; }
.calc-why p { color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.calc-pills { display: flex; flex-direction: column; gap: 12px; }
.calc-pill {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.calc-pill-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(53,162,159,0.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.calc-pill-ico svg { width: 18px; height: 18px; color: var(--forest); }
.calc-pill-txt .ttl { font-size: 0.87rem; font-weight: 600; margin-bottom: 2px; }
.calc-pill-txt .sub { font-size: 0.78rem; color: var(--muted); }

/* ── Portafolio ── */
#proyectos { background: var(--white); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.proj-card {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.proj-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.proj-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: rgba(255,255,255,0.9);
  position: relative;
}
.proj-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.proj-img-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(7,25,82,0.7) 0%, transparent 60%);
}
.proj-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  background: var(--gold); color: var(--white);
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase;
}
.proj-body { padding: 22px; }
.proj-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.proj-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.proj-price {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--dark);
}
.proj-detail {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--mist);
}
.proj-detail .cuota { font-size: 0.82rem; color: var(--muted); }
.proj-detail .cuota strong { color: var(--forest); }
.proj-detail .plusv {
  font-size: 0.75rem; background: rgba(53,162,159,0.1);
  color: var(--forest); padding: 4px 10px; border-radius: 100px; font-weight: 600;
}

/* ── Chat ── */
#chat { background: var(--mist); }
.chat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start; margin-top: 48px;
}
.chat-left h3 { font-size: 1.6rem; margin-bottom: 16px; }
.chat-left p { color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.chat-features { display: flex; flex-direction: column; gap: 14px; }
.chat-feat {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; font-weight: 500;
}
.chat-feat::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest); flex-shrink: 0;
}

.chat-window {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(0,0,0,0.08);
  overflow: hidden; display: flex; flex-direction: column;
  height: 560px;
}
.chat-topbar {
  background: var(--dark); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar svg { width: 20px; height: 20px; color: white; }
.chat-topbar-info .name { font-size: 0.9rem; font-weight: 600; color: white; }
.chat-topbar-info .status { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.online-dot {
  width: 7px; height: 7px; background: #4ADE80;
  border-radius: 50%; display: inline-block; margin-right: 4px;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--chat-bg);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg-bubble {
  padding: 11px 15px; border-radius: 16px;
  font-size: 0.87rem; line-height: 1.55;
}
.msg.bot .msg-bubble {
  background: var(--white); color: var(--ink);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.msg.user .msg-bubble {
  background: var(--forest); color: white;
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 0.68rem; color: var(--muted); margin-top: 4px; padding: 0 4px; }
.msg.user .msg-time { text-align: right; }

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 4px; margin-top: 4px;
}
.chat-chip {
  padding: 7px 14px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.78rem; font-weight: 500; color: var(--forest);
  cursor: pointer; transition: all 0.15s;
}
.chat-chip:hover { background: var(--forest); color: white; border-color: var(--forest); }

/* Lead form dentro del chat */
.lead-form-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 16px; max-width: 82%;
  align-self: flex-start;
}
.lead-form-card h4 { font-size: 0.87rem; font-weight: 600; margin-bottom: 12px; }
.lead-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.83rem; margin-bottom: 8px;
  font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.lead-input:focus { border-color: var(--forest); }
.lead-form-btn {
  width: 100%; padding: 10px; background: var(--forest); color: white;
  border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.lead-form-btn:hover { background: #2B8E8C; }

/* Botón Calendly en chat */
.calendly-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--dark); color: white;
  padding: 12px 18px; border-radius: 12px;
  font-size: 0.87rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
  max-width: 82%; align-self: flex-start;
}
.calendly-btn:hover { background: var(--forest); }
.calendly-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Typing indicator */
.typing { display: flex; align-items: center; gap: 5px; padding: 12px 14px; }
.typing span {
  width: 7px; height: 7px; background: var(--muted);
  border-radius: 50%; animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-bar {
  display: flex; gap: 10px; padding: 14px 16px;
  border-top: 1px solid var(--border); background: var(--white);
}
.chat-input {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 100px; font-size: 0.87rem; font-family: inherit;
  outline: none; transition: border-color 0.2s; background: var(--chat-bg);
}
.chat-input:focus { border-color: var(--forest); }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--forest); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s; flex-shrink: 0;
}
.chat-send:hover { background: #2B8E8C; transform: scale(1.05); }
.chat-send svg { width: 18px; height: 18px; color: white; }

/* ── Cobertura ── */
#cobertura { background: var(--cream); }

.cob-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}

.cob-cards {
  display: flex; flex-direction: column; gap: 14px;
  margin: 36px 0;
}
.cob-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: box-shadow 0.2s;
}
.cob-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.cob-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.cob-dot--green { background: var(--forest); }
.cob-dot--gold  { background: var(--gold); }
.cob-card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.cob-card-sub   { font-size: 0.83rem; color: var(--muted); }

.cob-question {
  font-size: 0.95rem; color: var(--muted); margin-bottom: 20px; font-style: italic;
}

.cob-map {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  height: 480px;
  border: 1px solid var(--border);
}
.cob-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

@media (max-width: 900px) {
  .cob-grid { grid-template-columns: 1fr; }
  .cob-map  { height: 320px; }
}

/* ── Chat flotante FAB ── */
.chat-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  transition: bottom 0.35s cubic-bezier(.4,0,.2,1);
}
/* Cuando la barra de promo está visible, subir el chat para que no choque con los CTAs */
body.promo-on .chat-float { bottom: 92px; }

.chat-fab {
  display: flex; align-items: center; gap: 10px;
  background: var(--forest); color: var(--white);
  border: none; border-radius: 100px; cursor: pointer;
  padding: 0 22px 0 16px; height: 54px;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 6px 28px rgba(53,162,159,0.38);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.chat-fab:hover { background: #2B8E8C; transform: translateY(-2px); box-shadow: 0 10px 36px rgba(53,162,159,0.45); }

.chat-fab-icon { width: 22px; height: 22px; flex-shrink: 0; }
.chat-fab-open  { display: block; }
.chat-fab-close { display: none; }
.chat-float.open .chat-fab-open  { display: none; }
.chat-float.open .chat-fab-close { display: block; }

.chat-fab-label { white-space: nowrap; }

.chat-fab-badge {
  position: absolute; top: -5px; right: -5px;
  width: 14px; height: 14px; background: #4ADE80;
  border-radius: 50%; border: 2px solid var(--white);
  display: none;
}
.chat-fab-badge.visible { display: block; }

/* Panel flotante */
.chat-float-panel {
  width: 380px; height: 520px;
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 64px rgba(0,0,0,0.15);
  overflow: hidden; display: none; flex-direction: column;
  transform-origin: bottom right;
  animation: none;
}
.chat-float.open .chat-float-panel {
  display: flex;
  animation: panelIn 0.22s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
}
.chat-close:hover { background: rgba(255,255,255,0.12); }
.chat-close svg { width: 17px; height: 17px; color: rgba(255,255,255,0.7); }

@media (max-width: 500px) {
  .chat-float-panel { width: calc(100vw - 32px); }
  .chat-float { bottom: 16px; right: 16px; }
}

/* ── Asesoría ── */
#asesoria { background: var(--white); }
.asesoria-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 48px;
}
.asesoria-card {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  cursor: pointer; transition: box-shadow 0.2s;
}
.asesoria-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.asesoria-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
}
.asesoria-header-left { display: flex; align-items: center; gap: 14px; }
.asesoria-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(53,162,159,0.08);
  display: flex; align-items: center; justify-content: center;
}
.asesoria-ico svg { width: 20px; height: 20px; color: var(--forest); }
.asesoria-ttl { font-size: 0.95rem; font-weight: 600; }
.asesoria-chevron {
  width: 20px; height: 20px; color: var(--muted);
  transition: transform 0.25s;
}
.asesoria-card.open .asesoria-chevron { transform: rotate(180deg); }
.asesoria-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.asesoria-body-inner {
  padding: 0 24px 22px;
  font-size: 0.87rem; color: var(--muted); line-height: 1.75;
}
.asesoria-card.open .asesoria-body {
  max-height: 600px;
}

/* Logo amarillo en card dark y footer */
.cmp-logo-img  { height: 36px; width: auto; display: block; }
.footer-logo-img { height: 44px; width: auto; display: block; margin: 0 auto 16px; }

/* ── Footer ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 48px 5%; text-align: center;
}
footer .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: white; margin-bottom: 16px; display: block;
}
footer .logo span { color: var(--gold); }
footer p { font-size: 0.82rem; line-height: 1.8; max-width: 500px; margin: 0 auto 20px; }
footer .footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
footer .footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; }
footer .footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Simulador ── */
.sim-hero {
  background: var(--dark);
  padding: 100px 5% 70px;
  text-align: center;
}
.sim-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.sim-hero > p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.58);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.sim-section { background: var(--cream); padding: 72px 5% 88px; }

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.sim-left  { display: flex; flex-direction: column; gap: 52px; }

.sim-step  {}
.sim-step-num {
  display: block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 10px;
}
.sim-step-title {
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  margin-bottom: 8px; font-family: 'DM Sans', sans-serif;
}
.sim-step-sub {
  font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5;
}

/* Chips del simulador */
.sim-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip--otro {
  display: inline-flex; align-items: center; gap: 6px;
  border-style: dashed;
}
.chip--otro.active { border-style: solid; }

/* Sección precio personalizado */
.sim-otro-section {
  display: none;
  padding-top: 18px;
}
.sim-otro-section.visible {
  display: block;
  animation: simSlideIn 0.28s ease;
}
@keyframes simSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sim-otro-hint {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 16px;
  padding: 12px 16px; background: rgba(53,162,159,0.06);
  border: 1px solid rgba(53,162,159,0.18); border-radius: 10px;
  line-height: 1.5;
}

/* Slider */
.slider-box { margin-top: 4px; }
.slider-rail-labels {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 10px;
}
.sim-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 6px; border-radius: 3px; outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--forest) var(--fill, 12%), var(--border) var(--fill, 12%));
  transition: background 0.12s;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--dark); border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  cursor: pointer; transition: transform 0.12s;
}
.sim-slider::-webkit-slider-thumb:hover,
.sim-slider:active::-webkit-slider-thumb { transform: scale(1.18); }
.sim-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--dark); border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22); cursor: pointer;
}

.slider-val-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px;
}
.slider-val-label { font-size: 0.83rem; color: var(--muted); }
.slider-val {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem; color: var(--dark);
  display: inline-block;
}

/* Plazo chips */
.sim-plazo-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.plazo-chip {
  padding: 10px 22px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.87rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.18s;
}
.plazo-chip:hover { border-color: var(--forest); color: var(--forest); }
.plazo-chip.active {
  background: var(--dark); border-color: var(--dark); color: var(--white);
}
.plazo-hint {
  font-size: 0.83rem; color: var(--muted); padding: 13px 17px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 11px; line-height: 1.6;
}
.plazo-hint strong { color: var(--dark); font-weight: 700; }

/* Beneficios */
.sim-benefits {}
.sim-ben-title {
  font-size: 1.35rem; font-family: 'DM Serif Display', serif;
  margin-bottom: 10px;
}
.sim-ben-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; line-height: 1.65; }
.sim-ben-grid { display: flex; flex-direction: column; gap: 12px; }
.sim-ben-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
}
.sim-ben-ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(53,162,159,0.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sim-ben-ico svg { width: 18px; height: 18px; color: var(--forest); }
.sim-ben-card-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.sim-ben-card-txt { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Panel derecho */
.sim-right { position: sticky; top: 90px; }

.sim-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px 28px;
  box-shadow: 0 4px 36px rgba(0,0,0,0.07);
  display: flex; flex-direction: column; gap: 22px;
}

.sim-panel-project {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mist);
}
.sim-panel-pnombre {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 3px;
  transition: opacity 0.2s;
}
.sim-panel-psub { font-size: 0.8rem; color: var(--muted); }

.sim-panel-rows { display: flex; flex-direction: column; gap: 0; }
.sim-panel-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--mist);
  font-size: 0.87rem;
}
.sim-panel-row:last-child { border-bottom: none; }
.sim-panel-row span:first-child { color: var(--muted); }
.spv {
  font-weight: 600; color: var(--ink);
  display: inline-block;
}

/* Ingreso highlight */
.sim-ingreso-box {
  background: var(--dark); border-radius: 16px;
  padding: 22px 24px; text-align: center;
}
.sim-ingreso-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 8px;
}
.sim-ingreso-desde { font-size: 0.75rem; color: rgba(255,255,255,0.48); }
.sim-ingreso-valor {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--gold); margin: 5px 0;
  transition: opacity 0.18s;
}

/* Donut chart */
.sim-donut-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.sim-donut-ring {
  position: relative; width: 160px; height: 160px; flex-shrink: 0;
}
.sim-donut-svg { width: 100%; height: 100%; display: block; }
.sim-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.sim-donut-pct {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem; color: var(--dark); line-height: 1;
  display: inline-block;
}
.sim-donut-sub {
  font-size: 0.63rem; color: var(--muted); line-height: 1.35; margin-top: 4px;
}
.sim-donut-legend { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.sim-leg-item { display: flex; align-items: center; gap: 10px; }
.sim-leg-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.sim-leg-label { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.sim-leg-val {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  display: inline-block;
}

/* Resumen de plan (3 items compactos) */
.sim-plan-summary {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(53,162,159,0.05);
  border: 1px solid rgba(53,162,159,0.15);
  border-radius: 12px; padding: 14px 16px;
}
.sim-pc-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted);
}
.sim-pc-item svg { width: 13px; height: 13px; color: var(--forest); flex-shrink: 0; }
.sim-pc-item strong { color: var(--ink); font-weight: 600; display: inline-block; }

/* CTA simulador */
.sim-discover-btn {
  width: 100%; padding: 16px; border: none; border-radius: 100px;
  background: var(--forest); color: var(--white);
  font-size: 0.97rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(53,162,159,0.28);
}
.sim-discover-btn:hover {
  background: #2B8E8C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(53,162,159,0.38);
}
.sim-nota { font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner, .calc-grid, .chat-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 48px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 140px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .asesoria-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .chat-window { height: 480px; }
  /* Simulador responsive */
  .sim-grid { grid-template-columns: 1fr; }
  .sim-right { position: static; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  section { padding: 64px 5%; }
}

/* ── Proyecto Cards (portafolio 2 cards estilo DNTKR) ── */
.proy-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 48px;
}
.proy-proj-card {
  display: block; position: relative;
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 3/2; text-decoration: none;
  cursor: pointer;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.proy-proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
}
.proy-proj-bg { position: absolute; inset: 0; }
.proy-proj-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  position: absolute; inset: 0;
  transition: transform 0.45s ease;
}
.proy-proj-card:hover .proy-proj-img { transform: scale(1.04); }
.proy-proj-hover {
  position: absolute; inset: 0;
  background: rgba(7,25,82,0);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 24px;
  transition: background 0.32s ease;
}
.proy-proj-card:hover .proy-proj-hover { background: rgba(7,25,82,0.22); }
.proy-proj-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.proy-proj-card:hover .proy-proj-arrow { opacity: 1; transform: translateY(0); }
.proy-proj-arrow svg { width: 20px; height: 20px; color: var(--dark); }

.proy-ctas-row {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 52px;
}

@media (max-width: 700px) {
  .proy-cards-grid { grid-template-columns: 1fr; }
  .proy-ctas-row { flex-direction: column; align-items: stretch; }
  .proy-ctas-row a { justify-content: center; }
}

/* ── Detalle de proyecto (estilo Volvo) ── */
.det-page { padding-bottom: 80px; }

.det-wrap {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 55fr 45fr;
  gap: 0; align-items: start; padding: 0 5%;
}

.det-gallery { position: sticky; top: 68px; padding: 40px 40px 40px 0; }

.det-gallery-main {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
}
.det-gallery-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  position: absolute; inset: 0;
}
.det-gallery-count {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 0.78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
}
.det-gallery-prev, .det-gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.det-gallery-prev { left: 14px; }
.det-gallery-next { right: 14px; }
.det-gallery-prev:hover, .det-gallery-next:hover { background: white; }
.det-gallery-prev svg, .det-gallery-next svg { width: 18px; height: 18px; color: var(--dark); }

.det-gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.det-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background 0.2s;
}
.det-dot.active { background: var(--dark); }

/* Panel derecho */
.det-panel { padding: 40px 0 40px 48px; border-left: 1px solid var(--border); }

/* Precio destacado arriba del panel */
.det-price-top {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.det-ptop-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px;
}
.det-ptop-val {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem; color: var(--dark); line-height: 1; margin-bottom: 8px;
  transition: color 0.18s;
}
.det-ptop-cuota { font-size: 0.87rem; color: var(--muted); }
.det-ptop-cuota strong { color: var(--forest); font-weight: 600; }

/* Selector de variante (bloque / apto) */
.det-variant-section { margin-bottom: 26px; }
.det-variant-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px;
}
.det-variants { display: flex; gap: 8px; flex-wrap: wrap; }
.det-variant {
  padding: 10px 22px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.87rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.18s; font-family: 'DM Sans', sans-serif;
}
.det-variant:hover { border-color: var(--forest); color: var(--forest); }
.det-variant.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

.det-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  border: 1.5px solid var(--border); color: var(--muted); margin-bottom: 18px;
}
.det-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem); color: var(--dark);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px;
}
.det-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.83rem; color: var(--muted); margin-bottom: 22px;
}
.det-location svg { width: 14px; height: 14px; flex-shrink: 0; }
.det-asesor-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; line-height: 1.65; }

.det-ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.det-cta-agenda {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--dark); color: var(--white);
  padding: 16px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.det-cta-agenda:hover { background: #0c1f5c; transform: translateY(-1px); }
.det-cta-agenda svg { width: 18px; height: 18px; flex-shrink: 0; }

.det-cta-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 16px; border-radius: 100px;
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.det-cta-wa:hover { background: #1DAE56; transform: translateY(-1px); }
.det-cta-wa svg { width: 20px; height: 20px; flex-shrink: 0; }

.det-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px;
  padding-top: 22px; border-top: 1px solid var(--border);
}
.det-spec { background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.det-spec-label { font-size: 0.68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.det-spec-val { font-size: 0.97rem; font-weight: 700; color: var(--ink); }

.det-price { margin-bottom: 6px; }
.det-price-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.det-price-val { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--dark); }

.det-disclaimer {
  font-size: 0.72rem; color: var(--muted); line-height: 1.65;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px;
}

/* Units section */
.det-units { background: var(--cream); padding: 72px 5%; }
.det-units-inner { max-width: 1180px; margin: 0 auto; }
.det-units-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px;
}
.det-unit-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.det-unit-card:hover { box-shadow: 0 6px 32px rgba(0,0,0,0.09); transform: translateY(-2px); }
.det-unit-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.det-unit-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 18px; }
.det-unit-price { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--dark); margin-bottom: 6px; }
.det-unit-cuota { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.det-unit-cuota strong { color: var(--forest); }
.det-unit-cta {
  display: block; width: 100%; padding: 13px;
  background: var(--dark); color: white;
  border: none; border-radius: 100px; font-size: 0.87rem; font-weight: 600;
  text-align: center; text-decoration: none; transition: background 0.2s;
}
.det-unit-cta:hover { background: var(--forest); }

/* Sticky bottom bar */
.det-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: white; border-top: 1px solid var(--border);
  padding: 14px 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.det-sticky-text { font-size: 0.9rem; color: var(--muted); }
.det-sticky-text strong { color: var(--dark); }
.det-sticky-btns { display: flex; gap: 10px; flex-shrink: 0; }
.det-sticky-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark); color: white;
  padding: 12px 24px; border-radius: 100px;
  font-size: 0.87rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.det-sticky-btn:hover { background: var(--forest); }
.det-sticky-btn-wa {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 12px 24px; border-radius: 100px;
  font-size: 0.87rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.det-sticky-btn-wa:hover { background: #1DAE56; }
.det-sticky-btn-wa svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .det-wrap { grid-template-columns: 1fr; }
  .det-gallery { position: static; padding: 24px 0 0; }
  .det-panel { border-left: none; border-top: 1px solid var(--border); padding: 32px 0; }
  .det-units-grid { grid-template-columns: 1fr 1fr; }
  .det-sticky-text { display: none; }
}
@media (max-width: 600px) {
  .det-units-grid { grid-template-columns: 1fr; }
  .det-sticky-btn, .det-sticky-btn-wa { padding: 11px 16px; font-size: 0.82rem; }
}

/* ── Sección Avances ── */
.det-avances { background: var(--dark); padding: 80px 5%; }
.det-avances-inner { max-width: 1180px; margin: 0 auto; }
.det-avances .sec-tag { color: var(--gold); margin-bottom: 12px; }
.det-avances .sec-title { color: var(--white); }
.det-avances .sec-sub { color: rgba(255,255,255,0.52); margin-bottom: 0; }

.avances-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 72px; align-items: start; margin-top: 56px;
}

/* Video vertical */
.avances-video-col { display: flex; flex-direction: column; align-items: center; }
.avances-video-wrap {
  position: relative; width: 280px;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 9/16;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.avances-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 22px;
}
.avances-video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: rgba(255,255,255,0.3); pointer-events: none;
}
.avances-video-placeholder svg { width: 44px; height: 44px; }
.avances-video-placeholder p {
  font-size: 0.82rem; text-align: center; line-height: 1.55;
  max-width: 160px;
}
.avances-video-hint {
  margin-top: 14px; font-size: 0.72rem; color: rgba(255,255,255,0.28);
  text-align: center; line-height: 1.5;
}

/* Redes sociales */
.avances-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 14px;
}
.avances-info p { color: rgba(255,255,255,0.52); font-size: 0.95rem; line-height: 1.75; margin-bottom: 40px; }

.social-btns { display: flex; flex-direction: column; gap: 12px; }

.social-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.social-btn:hover { transform: translateX(5px); border-color: rgba(255,255,255,0.2); }
.social-btn-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-btn-ico svg { width: 24px; height: 24px; }
.social-btn-text { display: flex; flex-direction: column; }
.social-btn-name { font-size: 0.97rem; font-weight: 600; color: var(--white); }
.social-btn-handle { font-size: 0.78rem; color: rgba(255,255,255,0.38); margin-top: 1px; }

.social-btn--ig { background: rgba(131,58,180,0.12); }
.social-btn--ig:hover { background: rgba(131,58,180,0.22); }
.social-btn--ig .social-btn-ico { background: rgba(131,58,180,0.25); }
.social-btn--ig .social-btn-ico svg { color: #E4405F; }

.social-btn--tt { background: rgba(255,255,255,0.04); }
.social-btn--tt:hover { background: rgba(255,255,255,0.08); }
.social-btn--tt .social-btn-ico { background: rgba(255,255,255,0.08); }
.social-btn--tt .social-btn-ico svg { color: white; }

.social-btn--fb { background: rgba(24,119,242,0.12); }
.social-btn--fb:hover { background: rgba(24,119,242,0.22); }
.social-btn--fb .social-btn-ico { background: rgba(24,119,242,0.25); }
.social-btn--fb .social-btn-ico svg { color: #1877F2; }

@media (max-width: 900px) {
  .avances-grid { grid-template-columns: 1fr; gap: 48px; }
  .avances-video-col { width: 100%; }
  .avances-video-wrap { width: 240px; margin: 0 auto; }
}
@media (max-width: 500px) {
  .avances-video-wrap { width: 200px; }
}

/* ── Barra de promoción fija (páginas generales, no en proyecto detalle) ─────── */
.promo-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.promo-bar.visible { transform: translateY(0); }
.promo-bar-text { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.promo-bar-text strong { color: var(--dark); }
.promo-bar-bono {
  font-weight: 700; color: var(--forest);
  background: rgba(13,43,31,0.08);
  padding: 2px 10px; border-radius: 100px; font-size: 0.9rem; margin-left: 4px;
}
.promo-bar-btns { display: flex; gap: 10px; flex-shrink: 0; }
.promo-bar-btn-agenda {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark); color: var(--white);
  padding: 12px 22px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; font-family: 'DM Sans', sans-serif;
  transition: background 0.18s;
}
.promo-bar-btn-agenda:hover { background: var(--forest); }
.promo-bar-btn-wa {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white);
  padding: 12px 22px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; font-family: 'DM Sans', sans-serif;
  transition: background 0.18s;
}
.promo-bar-btn-wa:hover { background: #1DAE56; }
@media (max-width: 768px) {
  .promo-bar { padding: 12px 4%; gap: 10px; }
  .promo-bar-text { font-size: 0.78rem; max-width: 170px; }
  .promo-bar-btn-agenda { padding: 10px 14px; font-size: 0.8rem; }
  .promo-bar-btn-wa { padding: 10px 14px; font-size: 0.8rem; }
}
@media (max-width: 440px) { .promo-bar-text { display: none; } }

/* Pulso visible para valores del simulador (sin fade, siempre legible) */
@keyframes simPulseAnim {
  /* El destello de color va SOLO en el fotograma intermedio. Antes los extremos
     declaraban `color: inherit`, que toma el color del padre y pisa el de la
     regla del propio elemento: en la tarjeta azul dejaba las cifras en negro
     sobre azul. Al omitirlo en 0% y 100%, el navegador parte y regresa al color
     real del elemento, y el destello se conserva. */
  0%   { transform: scale(1); }
  35%  { transform: scale(1.07); color: var(--forest); }
  100% { transform: scale(1); }
}
.sim-pulse {
  animation: simPulseAnim 0.22s ease;
}

/* ── Portafolio dinámico ── */
.proy-proj-card { position: relative; }
.proy-proj-label {
  position: absolute; left: 24px; bottom: 22px; z-index: 2;
  color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.det-stock {
  display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.det-stock--in  { color: #1A5C38; background: rgba(26,92,56,0.10); }
.det-stock--out { color: #8a1c1c; background: rgba(138,28,28,0.10); }
.det-variant--out { opacity: 0.55; }
.det-unit-stock {
  font-size: 0.78rem; font-weight: 600; margin: 6px 0 12px;
}
.det-unit-stock--in  { color: #1A5C38; }
.det-unit-stock--out { color: #8a1c1c; }
.det-unit-card--out { opacity: 0.72; }

/* ── Simulador · etapa 2 (financiación del 70%) ───────────────────────────── */
.sim-falta {
  margin-top: 10px; font-size: .88rem; color: var(--muted);
}
.sim-falta strong { color: var(--dark); font-size: 1rem; }

.sim-aviso {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  font-size: .85rem; line-height: 1.5;
}
.sim-aviso--ok   { background: color-mix(in srgb, var(--forest) 12%, #fff); color: var(--dark); }
.sim-aviso--warn { background: #FFF4E5; color: #8A5300; }

.sim-step--fin { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 30px; }
.sim-step-sub  { color: var(--muted); font-size: .92rem; margin: 4px 0 18px; line-height: 1.6; }

.sim-nota-tasas {
  background: var(--mist); border-left: 3px solid var(--forest);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 22px;
}
/* Solo el título va en su propio renglón; los <strong> dentro de los párrafos
   deben seguir en línea o parten el texto. */
.sim-nota-tasas > strong { display: block; color: var(--dark); font-size: .9rem; margin-bottom: 6px; }
.sim-nota-tasas p strong { color: var(--dark); }
.sim-nota-tasas p { font-size: .84rem; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.sim-nota-tasas p:last-child { margin-bottom: 0; }

.sim-fin-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.fin-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; flex-direction: column;
}
.fin-card--alt { background: var(--cream); }
.fin-head h4 { font-size: 1rem; color: var(--dark); margin: 0; }
.fin-ent { font-size: .75rem; color: var(--muted); }

.fin-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0;
}
.fin-grid > div { display: flex; flex-direction: column; }
.fin-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fin-val { font-size: .92rem; color: var(--ink); font-weight: 600; }

.fin-cuota {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.fin-cuota-lbl  { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fin-cuota-val  { font-size: 1.35rem; color: var(--dark); line-height: 1.2; }
.fin-ingreso    { font-size: .76rem; color: var(--muted); }
.fin-nota       { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }

@media (max-width: 520px) {
  .fin-grid { grid-template-columns: 1fr; }
}

/* ── Simulador · ingreso por etapas y abonos extra ────────────────────────── */
/* La tarjeta tiene fondo azul oscuro: si estos elementos no fijan color, heredan
   el negro del cuerpo de la página y quedan ilegibles. */
.sim-ing-etapa {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.sim-ing-etapa:last-of-type { border-bottom: none; }
.sim-ing-etapa span   { font-size: .78rem; color: rgba(255,255,255,.75); }
.sim-ing-etapa strong { font-size: 1.15rem; color: var(--gold); white-space: nowrap; }
.sim-ing-nota { font-size: .72rem; color: rgba(255,255,255,.55); line-height: 1.5; margin: 10px 0 0; }

.sim-aviso--info { background: var(--mist); color: var(--ink); }

.sim-abono {
  margin-top: 22px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.sim-abono-title { font-size: 1.02rem; color: var(--dark); margin: 0 0 4px; }
.sim-abono-sub   { font-size: .84rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.sim-abono-input { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sim-abono-input label { font-size: .8rem; color: var(--muted); }
.sim-abono-input input {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: .95rem; width: 170px; font-family: inherit; color: var(--ink);
}
.sim-abono-input input:focus { outline: 2px solid var(--forest); outline-offset: 1px; }

.abono-vacio { font-size: .84rem; color: var(--muted); margin: 0; }
.abono-res {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.abono-item {
  background: var(--mist); border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.abono-item--destacado { background: color-mix(in srgb, var(--forest) 14%, #fff); }
.abono-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.abono-val { font-size: 1.3rem; color: var(--dark); line-height: 1.2; }
.abono-sub { font-size: .76rem; color: var(--muted); }
.abono-nota { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
.abono-nota strong { color: var(--dark); }

/* ── Simulador · ritmo, jerarquía y toque ─────────────────────────────────────
   La página se leía como 5 bloques sueltos de igual peso y 5,7 pantallas de
   alto: "Paso 1..4" y de pronto "Etapa 2", sin que existiera una Etapa 1. Se
   agrupan las dos etapas como pares y se apoya el ritmo en una escala
   (--e-1..4) en vez de los 10 valores sueltos que había (9, 10, 13, 14, 18…). */
.sim-left {
  --e-1: 8px;    /* dentro de un grupo   */
  --e-2: 16px;   /* entre grupos         */
  --e-3: 28px;   /* entre pasos          */
  --e-4: 48px;   /* entre etapas         */
}

.sim-etapa-head { margin-bottom: var(--e-3); }
.sim-etapa-num {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--forest);
  margin-bottom: var(--e-1);
}
.sim-etapa-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--dark);
  line-height: 1.15; margin: 0 0 6px;
}
.sim-etapa-sub { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Más aire arriba de un título que abajo: el paso siguiente respira del anterior */
.sim-left > .sim-step { padding-top: var(--e-3); }
.sim-left > .sim-step:first-of-type { padding-top: 0; }
.sim-step--fin { margin-top: var(--e-4); padding-top: var(--e-4); }

/* Toque: en obra y en celular. Estaban en 37-40px, por debajo del dedo. */
.plazo-chip, .sim-chips .chip { min-height: 44px; }
.sim-abono-input input { min-height: 44px; }

/* El aviso llevaba un borde de color de 3px; el peso lo carga el fondo. */
.sim-nota-tasas {
  border-left: none;
  border: 1px solid var(--border);
  background: var(--cream);
  padding: var(--e-2) 18px;
  margin-bottom: var(--e-3);
}

/* Herramienta avanzada: plegada no compite con la lectura de las 4 opciones */
.sim-abono { margin-top: var(--e-3); }
summary.sim-abono-title {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  gap: 8px; min-height: 44px; font-size: 1rem; color: var(--dark);
}
summary.sim-abono-title::-webkit-details-marker { display: none; }
summary.sim-abono-title::before {
  content: ''; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg); transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.sim-abono[open] summary.sim-abono-title::before { transform: rotate(45deg); }

/* Un solo momento animado: las tarjetas de financiación entran escalonadas
   cuando aparecen. No una entrada idéntica en cada sección. */
@media (prefers-reduced-motion: no-preference) {
  .fin-card { animation: finEntra .42s cubic-bezier(.16,1,.3,1) backwards; }
  .fin-card:nth-child(2) { animation-delay: .06s; }
  .fin-card:nth-child(3) { animation-delay: .12s; }
  .fin-card:nth-child(4) { animation-delay: .18s; }
}
@keyframes finEntra {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Respetar a quien pidió menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .sim-pulse, .fin-card { animation: none !important; }
  summary.sim-abono-title::before { transition: none; }
}

/* ── Simulador · compactar sin quitar contenido ───────────────────────────────
   Tras el pase de jerarquía la página creció a 6 pantallas. Los encabezados de
   etapa se ganan su espacio; lo que sobraba era aire dentro de las tarjetas de
   financiación (342px × 4) y en el héroe de una página que es una herramienta,
   no una portada. */
.fin-card { padding: 14px 16px; }
.fin-head h4 { font-size: .95rem; line-height: 1.2; }
.fin-ent { font-size: .72rem; }
.fin-grid { gap: 6px 12px; margin: 10px 0; }
.fin-val { font-size: .88rem; }
.fin-cuota { padding-top: 10px; }
.fin-cuota-val { font-size: 1.2rem; }
.fin-nota { margin-top: 9px; font-size: .75rem; line-height: 1.45; }
.sim-fin-grid { gap: 12px; }

/* El héroe de una herramienta no necesita el alto de una portada */
.sim-hero { padding-top: 42px; padding-bottom: 42px; }
.sim-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 10px; }
.sim-hero p  { font-size: .93rem; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Esta página es una herramienta: al aterrizar debe verse que hay dos etapas y
   poder empezar, no una portada que ocupa la pantalla completa. El héroe cedía
   640px y dejaba 120px muertos antes del primer paso. */
.sim-hero { padding-top: 28px; padding-bottom: 30px; }
.sim-hero h1 { font-size: clamp(1.45rem, 3.4vw, 1.95rem); }
.sim-hero p  { font-size: .89rem; }
.sim-section { padding-top: 34px; }

/* ── Simulador · el panel pegajoso se quedaba "pausado" ───────────────────────
   El panel mide ~1265px y la ventana ~640px. Un elemento sticky más alto que la
   pantalla se clava arriba y su parte inferior nunca se alcanza: parece que el
   scroll se congela. Se limita su alto a la ventana y se desplaza por dentro,
   así siempre se llega al final sin pelear con el scroll de la página. */
.sim-right {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;   /* al terminar el panel no arrastra la página */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sim-right::-webkit-scrollbar { width: 6px; }
.sim-right::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 99px;
}
.sim-right::-webkit-scrollbar-track { background: transparent; }

/* El panel se compacta un poco: menos alto = menos necesidad de desplazarlo */
.sim-panel { padding: 24px 22px; gap: 16px; border-radius: 18px; }

/* Al plegar/desplegar el abono la página cambia de alto. Sin esto el navegador
   reajusta el scroll de golpe y se siente un salto. */
.sim-abono[open] > *:not(summary) { animation: abonoAbre .24s cubic-bezier(.16,1,.3,1); }
@keyframes abonoAbre { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 980px) {
  /* Apilado en móvil el panel no se fija: debe fluir con el contenido */
  .sim-right { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-abono[open] > *:not(summary) { animation: none; }
}
