@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* Ecoagrado — portada unificada */
.home-page {
  --home-green: #0d3d2c;
  --home-green-dark: #07291e;
  --home-lime: #77b82a;
  --home-orange: #d4633b;
  --home-cream: #ffffff;
  --home-white: #ffffff;
  --home-ink: #18231d;
  --home-muted: #667169;
  --home-line: #d9ddd7;
  --home-radius: 14px;
  --home-shadow: 0 18px 50px rgba(18, 48, 35, .09);
  --home-gutter: clamp(20px, 4vw, 64px);
  --home-width: 1180px;
  margin: 0;
  color: var(--home-ink);
  background: var(--home-cream);
  font-family: "Manrope", Arial, sans-serif;
  /* Un transform en body rompe position: fixed y ancla WhatsApp al documento. */
  animation: none !important;
  transform: none !important;
}

body.home-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.home-page > main {
  width: 100%;
  flex: 1 0 auto;
}

.home-page *,
.home-page *::before,
.home-page *::after { box-sizing: border-box; }

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page dl,
.home-page figure { margin-top: 0; }

.home-page h1,
.home-page h2,
.home-page h3,
.home-page .hero-stats dt,
.home-page .market-metrics strong,
.home-page .category-grid span {
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: -.035em;
}

.home-page p { color: var(--home-muted); line-height: 1.65; }
.home-page img { max-width: 100%; }

.home-page .eyebrow,
.home-page .search-kicker,
.home-page .category-grid small,
.home-page .market-metrics span {
  margin-bottom: 12px;
  color: var(--home-orange);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Encabezado */
.home-page .site-header {
  grid-template-columns: 170px minmax(0, 1fr) auto auto;
  gap: 24px;
  min-height: 78px;
  padding: 12px max(var(--home-gutter), calc((100vw - var(--home-width)) / 2));
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--home-line);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.home-page .site-header.is-scrolled {
  min-height: 68px;
  padding-block: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 30px rgba(13, 61, 44, .08);
}

.home-page .brand img { width: 156px; }

.home-page .site-nav {
  justify-self: end;
  flex-wrap: nowrap;
  gap: 22px;
  padding: 0;
  color: var(--home-ink);
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
}

.home-page .site-nav a {
  min-height: 36px;
  padding: 8px 0;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.home-page .site-nav a:hover,
.home-page .site-nav a.is-active {
  color: var(--home-green);
  background: none;
  border-color: var(--home-lime);
}

.home-page .admin-access {
  padding: 8px 4px;
  color: var(--home-muted);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-page .header-cta {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--home-green);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

/* Hero */
.home-page .hero {
  min-height: 720px;
  align-items: center;
  padding: 132px max(var(--home-gutter), calc((100vw - var(--home-width)) / 2)) 72px;
  color: #fff;
  background: var(--home-green-dark);
}

.home-page .hero::before { display: none; }

.home-page .hero-content {
  z-index: 3;
  width: min(620px, 58%);
  max-width: 620px;
}

.home-page .hero .eyebrow { margin-bottom: 18px; color: #a8d36f; }

.home-page .hero h1 {
  max-width: 540px;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(52px, 5.3vw, 76px);
  font-weight: 700;
  line-height: 1.02;
}

.home-page .hero-copy {
  max-width: 510px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.7;
}

.home-page .hero-media {
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  transform: none;
}

.home-page .hero-media::after { display: none; }
.home-page .hero-slide { background-position: center; filter: saturate(.9) contrast(1.03); transform: scale(1.025); }
.home-page .hero-slide.is-active { transform: scale(1); }
.home-page .hero-overlay {
  display: block;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 35, 26, .96) 0%, rgba(7, 35, 26, .84) 38%, rgba(7, 35, 26, .42) 68%, rgba(7, 35, 26, .18) 100%),
    linear-gradient(0deg, rgba(5, 27, 20, .58), transparent 52%);
}

.home-page .hero-actions { margin-top: 30px; gap: 12px; }

.home-page .button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.home-page .button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 61, 44, .14); }
.home-page .button.primary { color: #fff; background: var(--home-orange); }
.home-page .button.primary:hover { background: #b94f2b; }
.home-page .button.secondary { color: #fff; background: var(--home-green); }
.home-page .button.ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .42); }

.home-page .hero-stats {
  width: 100%;
  margin-top: 40px;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
}

.home-page .hero-stats div {
  min-width: 0;
  padding: 17px 18px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  backdrop-filter: none;
}
.home-page .hero-stats div:last-child { border-right: 0; }

.home-page .hero-stats dt { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.home-page .hero-stats dd { margin: 5px 0 0; color: rgba(255, 255, 255, .6); font-size: 10px; line-height: 1.45; }
.home-page .hero-feature-card,
.home-page .hero-dots { display: none !important; }

/* Buscador */
.home-page .quick-search {
  width: min(var(--home-width), calc(100% - (var(--home-gutter) + var(--home-gutter))));
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 18px;
  margin: 32px auto 0;
  padding: 70px 28px 28px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
}

.home-page .quick-search > div:not(.search-tabs) { padding: 0; margin: 0; border: 0; }

.home-page .search-kicker {
  position: absolute;
  top: 24px;
  left: 28px;
  margin: 0;
}

.home-page .search-kicker span { color: var(--home-green); }

.home-page .search-tabs {
  left: auto;
  top: 17px;
  right: 28px;
  gap: 8px;
  padding: 4px;
  background: #eef3ef;
  border-radius: 8px;
}

.home-page .search-tabs a {
  min-height: 34px;
  padding: 0 13px;
  color: var(--home-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
}

.home-page .search-tabs a.is-active,
.home-page .search-tabs a:hover { color: #fff; background: var(--home-green); }

.home-page .quick-search label,
.home-page .contact-form label,
.home-page .credit-form label {
  color: var(--home-muted);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-page select,
.home-page input,
.home-page textarea {
  border: 1px solid #cfd6d0;
  border-radius: 8px;
  background: #fff;
  font-family: "Manrope", Arial, sans-serif;
}

.home-page .quick-search select,
.home-page .quick-search input { min-height: 46px; padding: 0 13px; font-size: 13px; }

/* Secciones visibles */
.home-page .trust-strip,
.home-page .section.intro,
.home-page .agent-panel,
.home-page .service-suite,
.home-page .process,
.home-page .stories,
.home-page .advisory-band { display: none; }

.home-page .market-panel,
.home-page .section,
.home-page .contact {
  width: min(var(--home-width), calc(100% - (var(--home-gutter) + var(--home-gutter))));
  margin-left: auto;
  margin-right: auto;
}

.home-page .section { padding: 96px 0; }
.home-page .section-heading { max-width: 720px; margin-bottom: 38px; }
.home-page .section-heading.split { max-width: none; align-items: end; }

.home-page .section h2,
.home-page .contact h2,
.home-page .market-copy h2 {
  margin-bottom: 0;
  color: var(--home-green-dark);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
}

/* Criterio: retícula estable 2 + 3 */
.home-page .market-panel {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 96px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
}

.home-page .market-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 50px);
  color: var(--home-ink);
  background: #f0f4f0;
  border-radius: 10px;
  box-shadow: none;
}

.home-page .market-copy h2 { font-size: clamp(40px, 4vw, 54px); }
.home-page .market-copy p:not(.eyebrow) { max-width: 470px; margin: 20px 0 0; font-size: 14px; }
.home-page .market-image { margin: 0; overflow: hidden; border-radius: 10px; }
.home-page .market-image::after { display: none; }
.home-page .market-image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; filter: saturate(.85); }

.home-page .market-metrics {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.home-page .market-metrics article {
  display: block;
  min-height: 168px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  box-shadow: none;
}

.home-page .market-metrics article:last-child { border-bottom: 1px solid var(--home-line); }
.home-page .market-metrics svg { display: none; }
.home-page .market-metrics span { display: block; margin-bottom: 14px; }
.home-page .market-metrics strong { margin: 0; color: var(--home-green); font-size: 22px; font-weight: 700; }
.home-page .market-metrics p { margin: 8px 0 0; font-size: 13px; }

/* Propiedades */
.home-page .properties { border-bottom: 1px solid var(--home-line); }
.home-page .properties .section-heading { max-width: none; }
.home-page .properties .section-heading > div { max-width: 680px; }
.home-page .text-link { padding-bottom: 3px; color: var(--home-green); border-bottom: 2px solid var(--home-lime); font-size: 12px; }

.home-page .property-filters { gap: 8px; margin: 0 0 28px; border: 0; }
.home-page .property-filters a {
  min-height: 38px;
  padding: 0 16px;
  color: var(--home-muted);
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  font-size: 11px;
}
.home-page .property-filters a:first-child { padding-left: 16px; }
.home-page .property-filters a.is-active,
.home-page .property-filters a:hover { color: #fff; background: var(--home-green); border-color: var(--home-green); }

.home-page .property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: 0 10px 28px rgba(13,61,44,.07);
}
.home-page .property-card::before { display: none; }
.home-page .property-image-link { overflow: hidden; background: #e9ede8; }
.home-page .property-card img {
  display: block;
  aspect-ratio: 16 / 10;
  filter: saturate(.9);
  transition: transform .45s ease, filter .45s ease;
}
.home-page .property-card:hover img { filter: saturate(1); transform: scale(1.025); }
.home-page .property-image-link .property-card-operation {
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  background: rgba(7, 41, 30, .92);
  backdrop-filter: blur(7px);
}
.home-page .property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}
.home-page .property-body .tags { gap: 6px; }
.home-page .property-body .tags span {
  padding: 6px 9px;
  color: #466052;
  background: #edf2ec;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.home-page .property-body h3 {
  margin: 14px 0 0;
  color: var(--home-green-dark);
  font-size: 20px;
  line-height: 1.2;
}
.home-page .property-body h3 a:hover { color: var(--home-orange); }
.home-page .property-card-description {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-page .property-meta {
  gap: 8px;
  margin-top: 16px;
  padding: 14px 0;
  border-top-color: var(--home-line);
  border-bottom: 1px solid var(--home-line);
}
.home-page .property-meta li {
  min-height: 28px;
  padding: 0 10px;
  color: var(--home-green);
  background: #f1f5ed;
  border: 1px solid rgba(13, 61, 44, .1);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.home-page .property-footer {
  align-items: end;
  margin-top: auto;
  padding-top: 20px;
}
.home-page .property-footer strong {
  color: var(--home-green);
  font-size: 19px;
  line-height: 1;
}
.home-page .property-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--home-line);
  border-radius: 7px;
  color: var(--home-green);
  background: #f7f8f4;
  font-size: 10px;
  text-decoration: none;
}
.home-page .property-footer a:hover { color: #fff; background: var(--home-green); border-color: var(--home-green); }
.home-page .carousel-shell.is-single .property-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  flex-basis: 100%;
  min-height: 430px;
}
.home-page .carousel-shell.is-single .property-image-link { min-height: 430px; }
.home-page .carousel-shell.is-single .property-card img,
.home-page .carousel-shell.is-single .property-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.home-page .carousel-shell.is-single .property-body { padding: clamp(30px, 4vw, 48px); }
.home-page .carousel-shell.is-single .property-body h3 {
  max-width: 530px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.08;
}
.home-page .carousel-shell.is-single .property-card-description {
  max-width: 560px;
  margin-top: 18px;
  font-size: 15px;
  -webkit-line-clamp: 3;
}
.home-page .carousel-shell.is-single .property-meta { margin-top: 22px; }
.home-page .carousel-shell.is-pair .property-card { flex-basis: calc((100% - 18px) / 2); }
.home-page .carousel-shell.is-static .carousel-btn,
.home-page .carousel-shell.is-static .carousel-status { display: none; }
.home-page .carousel-btn { border-radius: 8px; box-shadow: 0 8px 20px rgba(13,61,44,.1); }
.home-page .carousel-btn.prev { left: 12px; }
.home-page .carousel-btn.next { right: 12px; }

.home-page .empty-state {
  width: 100%;
  padding: 46px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  text-align: center;
}

.home-page .empty-state strong { color: var(--home-green); font-size: 20px; }
.home-page .empty-state p { margin: 10px 0 0; }

/* Simulador */
.home-page .section.credit-simulator {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 64px);
  margin-top: 32px;
  padding: clamp(34px, 5vw, 58px);
  background: #ece7da;
  border: 1px solid #d4cdbd;
  border-radius: var(--home-radius);
  box-shadow: none;
}

.home-page .finance-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 10px 13px;
  color: var(--home-green);
  background: rgba(255,255,255,.62);
  border: 1px solid #d4cdbd;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.home-page .finance-label svg { width: 18px; height: 18px; color: var(--home-orange); stroke-width: 1.9; }
.home-page .credit-copy h2 { font-size: clamp(38px, 3.6vw, 52px); line-height: 1.08; }
.home-page .credit-form { padding: 26px; background: #fff; border: 1px solid var(--home-line); border-radius: 10px; box-shadow: none; }
.home-page .credit-form input { min-height: 46px; padding: 0 12px; }
.home-page .credit-results { gap: 10px; }
.home-page .credit-results div { padding: 16px; background: var(--home-cream); border: 1px solid #e1ddd2; border-radius: 8px; }

/* Servicio */
.home-page .services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 76px);
  align-items: center;
}

.home-page .service-media { padding: 0; }
.home-page .service-media::before,
.home-page .service-media::after { display: none; }
.home-page .service-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--home-radius); box-shadow: none; filter: saturate(.9); }
.home-page .service-content h2 { font-size: clamp(40px, 4vw, 54px); }
.home-page .check-list { gap: 0; margin: 28px 0; border-top: 1px solid var(--home-line); }
.home-page .check-list li { min-height: 0; padding: 16px 0 16px 26px; border-bottom: 1px solid var(--home-line); font-size: 13px; }
.home-page .check-list li::before { top: 21px; width: 8px; height: 8px; background: var(--home-lime); border-radius: 50%; }
.home-page .check-list svg { display: none; }

/* Categorías iguales */
.home-page .categories { padding-top: 72px; }
.home-page .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-page .category-grid a,
.home-page .category-grid a:first-child {
  grid-column: auto;
  min-height: 300px;
  padding: 18px;
  border-radius: var(--home-radius);
}
.home-page .category-grid a::before { background: linear-gradient(0deg, rgba(7,41,30,.88), rgba(7,41,30,.04) 70%); }
.home-page .category-grid a img { filter: saturate(.85); }
.home-page .category-grid a:hover { transform: translateY(-4px); }
.home-page .category-grid a:hover img { transform: scale(1.04); }
.home-page .category-grid small { margin: 0; color: #bfe28d; font-size: 9px; }
.home-page .category-grid span { font-size: 20px; font-weight: 700; }
.home-page .category-grid em { font-size: 11px; }

/* Contacto */
.home-page .contact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 72px);
  margin-top: 48px;
  margin-bottom: 48px;
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  background: var(--home-green-dark);
  border-radius: var(--home-radius);
}

.home-page .contact > div { align-self: center; }
.home-page .contact h2 { color: #fff; font-size: clamp(40px, 4vw, 54px); }
.home-page .contact > div > p:last-child { max-width: 500px; color: rgba(255,255,255,.7); }
.home-page .contact-form { padding: 0; border: 0; }
.home-page .contact-form label { color: rgba(255,255,255,.7); }
.home-page .contact-form input,
.home-page .contact-form textarea { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
.home-page .contact-form textarea::placeholder { color: rgba(255,255,255,.42); }

.home-page .contact-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
}
.home-page .contact-card-title { display: grid; gap: 3px; }
.home-page .contact-card-title > span { color: rgba(255,255,255,.56); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-page .contact-card-title strong { color: #fff; font-size: 20px; }
.home-page .contact-card a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  padding: 10px 12px;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.home-page .contact-card a:hover { background: rgba(255,255,255,.08); }
.home-page .contact-card a svg { width: 18px; height: 18px; color: #a8d36f; stroke-width: 1.8; }
.home-page .contact-card a span { display: grid; gap: 2px; }
.home-page .contact-card a small { color: rgba(255,255,255,.5); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.home-page .site-footer {
  display: block;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  padding: 0 max(var(--home-gutter), calc((100vw - var(--home-width)) / 2));
  padding-bottom: max(1px, env(safe-area-inset-bottom));
  color: #fff;
  text-align: left;
  background: #041e16;
}
.home-page .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, .55fr) minmax(220px, .8fr);
  gap: clamp(36px, 7vw, 92px);
  padding: 64px 0 48px;
}
.home-page .footer-brand img { width: 172px; }
.home-page .footer-brand p { max-width: 390px; margin: 20px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }
.home-page .footer-nav,
.home-page .footer-contact { display: grid; align-content: start; gap: 11px; }
.home-page .footer-nav strong,
.home-page .footer-contact strong { margin-bottom: 5px; color: #a8d36f; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.home-page .footer-nav a,
.home-page .footer-contact a,
.home-page .footer-contact span { width: fit-content; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; }
.home-page .footer-nav a:hover,
.home-page .footer-contact a:hover { color: #fff; }
.home-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.home-page .footer-bottom p,
.home-page .footer-bottom a { margin: 0; color: rgba(255,255,255,.44); font-size: 10px; }
.home-page .footer-bottom a:hover { color: #fff; }

.home-page .floating-whatsapp {
  position: fixed;
  z-index: 1400;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 60px;
  height: 60px;
  max-width: none;
  min-height: 60px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #25d366;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(4,30,22,.24), 0 0 0 1px rgba(37,211,102,.22);
  font-size: 0;
  transform: none;
  animation: none;
}
.home-page .floating-whatsapp::before { width: 31px; height: 31px; flex: 0 0 31px; }
.home-page .floating-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.home-page .floating-whatsapp:hover { background: #1fbd5a; box-shadow: 0 15px 36px rgba(4,30,22,.3), 0 0 0 4px rgba(37,211,102,.14); transform: translateY(-2px); }

@media (max-width: 1050px) {
  .home-page .site-header { grid-template-columns: 1fr auto auto; padding-inline: var(--home-gutter); }
  .home-page .menu-toggle { display: block; grid-column: 3; border-radius: 8px; }
  .home-page .site-nav { display: none; }
  .home-page .site-nav.is-open {
    display: grid;
    justify-self: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    box-shadow: var(--home-shadow);
  }
  .home-page .site-nav.is-open a { min-height: 44px; padding: 12px; border-radius: 6px; }
  .home-page .header-cta { display: none; }
  .home-page .hero h1 { font-size: clamp(46px, 6.5vw, 64px); }
  .home-page .quick-search { grid-template-columns: 1fr 1fr; }
  .home-page .section.credit-simulator { grid-template-columns: 1fr; }
  .home-page .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .home-page .site-header { min-height: 68px; padding: 9px var(--home-gutter); }
  .home-page .brand img { width: 140px; }
  .home-page .admin-access { display: none; }

  .home-page .hero {
    min-height: 690px;
    display: grid;
    align-items: end;
    padding: 118px var(--home-gutter) 58px;
  }
  .home-page .hero-content { width: 100%; max-width: 590px; }
  .home-page .hero-media { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; }
  .home-page .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 35, 26, .97) 0%, rgba(7, 35, 26, .84) 52%, rgba(7, 35, 26, .28) 100%),
      linear-gradient(90deg, rgba(7, 35, 26, .58), transparent);
  }
  .home-page .hero h1 { max-width: 520px; font-size: clamp(42px, 12vw, 56px); }
  .home-page .hero-copy { margin-top: 18px; font-size: 14px; }
  .home-page .hero-actions { margin-top: 22px; }
  .home-page .hero-stats { display: none; }

  .home-page .quick-search {
    width: calc(100% - (var(--home-gutter) + var(--home-gutter)));
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 116px 20px 22px;
  }
  .home-page .search-kicker { left: 20px; }
  .home-page .search-tabs { left: 20px; right: auto; top: 54px; }

  .home-page .market-panel,
  .home-page .section,
  .home-page .contact { width: calc(100% - (var(--home-gutter) + var(--home-gutter))); }

  .home-page .market-panel { grid-template-columns: 1fr; gap: 18px; margin-top: 72px; padding: 18px; }
  .home-page .market-copy { padding: 28px 22px; }
  .home-page .market-image img { min-height: 300px; }
  .home-page .market-metrics { grid-template-columns: 1fr; }
  .home-page .market-metrics article { min-height: 0; }

  .home-page .section { padding: 72px 0; }
  .home-page .section h2,
  .home-page .contact h2,
  .home-page .market-copy h2 { font-size: clamp(36px, 10vw, 46px); }
  .home-page .section-heading.split { align-items: flex-start; flex-direction: column; }
  .home-page .property-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .home-page .carousel-shell.is-single .property-card { grid-template-columns: 1fr; min-height: 0; }
  .home-page .carousel-shell.is-single .property-image-link { min-height: 0; }
  .home-page .carousel-shell.is-single .property-card img,
  .home-page .carousel-shell.is-single .property-image-placeholder { height: auto; aspect-ratio: 16 / 10; }
  .home-page .carousel-shell.is-single .property-body { padding: 24px 22px; }
  .home-page .carousel-shell.is-single .property-body h3 { font-size: 26px; }
  .home-page .carousel-shell.is-pair .property-card { flex-basis: 100%; }
  .home-page .empty-state { padding: 34px 22px; }

  .home-page .section.credit-simulator { padding: 28px 20px; }
  .home-page .credit-form { padding: 20px 16px; }
  .home-page .credit-results { grid-template-columns: 1fr; }

  .home-page .services { grid-template-columns: 1fr; gap: 36px; }
  .home-page .service-media img { aspect-ratio: 4 / 3; }
  .home-page .category-grid { grid-template-columns: 1fr; }
  .home-page .category-grid a,
  .home-page .category-grid a:first-child { min-height: 235px; }

  .home-page .contact { grid-template-columns: 1fr; gap: 34px; margin-bottom: 28px; padding: 40px 24px 28px; }
  .home-page .contact-card { grid-template-columns: 1fr; align-items: flex-start; gap: 8px; padding: 18px; }
  .home-page .contact-card-title { margin-bottom: 6px; }
  .home-page .contact-card a { width: 100%; min-width: 0; max-width: 100%; padding-inline: 0; overflow-wrap: anywhere; }
  .home-page .footer-main { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 36px; }
  .home-page .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .home-page .floating-whatsapp {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 0;
  }
  .home-page .floating-whatsapp::before { width: 29px; height: 29px; flex-basis: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-slide,
  .home-page .category-grid a,
  .home-page .category-grid a img { transition: none !important; }
}

@media (min-width: 1051px) and (max-width: 1250px) {
  .home-page .site-header { gap: 16px; padding-inline: 22px; }
  .home-page .site-nav { gap: 14px; font-size: 11px; }
  .home-page .header-cta { padding-inline: 14px; }
}

/* Simulador ancho: override final para evitar que la hoja de portada lo comprima */
.home-page .section.credit-simulator {
  width: min(1440px, calc(100% - 32px));
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}
.home-page .credit-copy {
  min-height: 540px;
  padding: 28px;
}
.home-page .section.credit-simulator .credit-copy h2 {
  color: #fff;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.04;
}
.home-page .credit-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.home-page .credit-copy .credit-points li { color: rgba(255,255,255,.9); }
.home-page .credit-form {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 12px;
  padding: 20px;
  background: #f8f9f6;
}
.home-page .credit-form-heading,
.home-page .bank-comparison-wrap,
.home-page .credit-publish-bar { grid-column: 1 / -1; }
.home-page .credit-admin-card { min-width: 0; }
.home-page .credit-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.home-page .credit-results div { min-width: 0; padding: 11px; background: #f5f7f3; }
.home-page .credit-results strong {
  max-width: 100%;
  font-size: clamp(16px, 1.45vw, 20px);
  overflow-wrap: anywhere;
}
.home-page .selected-rate { grid-template-columns: 110px minmax(0, 1fr); }
.home-page .selected-rate p { overflow-wrap: normal; }
.home-page .bank-comparison { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .home-page .section.credit-simulator { grid-template-columns: 1fr; }
  .home-page .credit-copy { min-height: 0; padding: 26px; }
  .home-page .section.credit-simulator .credit-copy h2 { max-width: 620px; }
  .home-page .credit-copy > p:not(.eyebrow),
  .home-page .credit-copy .credit-points { display: none; }
}

@media (max-width: 700px) {
  .home-page .section.credit-simulator { width: calc(100% - 20px); padding: 10px; }
  .home-page .credit-form { grid-template-columns: 1fr; padding: 14px; }
  .home-page .credit-form-heading,
  .home-page .bank-comparison-wrap,
  .home-page .credit-publish-bar { grid-column: auto; }
  .home-page .bank-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .home-page .credit-results,
  .home-page .bank-comparison { grid-template-columns: 1fr; }
  .home-page .selected-rate { grid-template-columns: 1fr; }
}

/* Campo monetario y marcas bancarias */
.home-page .property-money-control {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 56px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c7d0c9;
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(13,61,44,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-page .property-money-control:focus-within {
  border-color: #77b82a;
  box-shadow: 0 0 0 3px rgba(119,184,42,.14);
}
.home-page .currency-badge {
  display: grid;
  place-items: center;
  color: #fff;
  background: #0d3d2c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.home-page .property-amount {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-left: 15px;
}
.home-page .property-amount > span {
  color: #d4633b;
  font-size: 20px;
  font-weight: 800;
}
.home-page .credit-form .property-amount input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 14px 0 0;
  color: #10271d;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.home-page .credit-form .property-amount input:focus { outline: 0; box-shadow: none; }
.home-page .property-conversion {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 7px;
  color: #667169;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.home-page .property-conversion small {
  flex: 0 0 auto;
  color: #397257;
  font-size: 9px;
  font-weight: 700;
}
.home-page .bank-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.home-page .bank-logo-frame {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  overflow: hidden;
}
.home-page .bank-logo-frame img {
  display: block;
  width: auto;
  max-width: 138px;
  max-height: 32px;
  object-fit: contain;
  object-position: center;
}
.home-page .bank-brand > strong.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-page .bank-comparison { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.home-page .bank-option.is-quote-only { background: #fbfcfa; }
.home-page .bank-option button:disabled { cursor: default; opacity: 1; }
.home-page .bank-option.is-quote-only .bank-rate { color: #526b5d; font-size: 16px; }
.home-page .bank-option.is-quote-only .bank-status { color: #68766e; }

@media (max-width: 460px) {
  .home-page .property-money-control { grid-template-columns: 52px minmax(0, 1fr); }
  .home-page .property-conversion { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Tarjetas bancarias: grilla y logos uniformes */
.home-page .bank-comparison {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.home-page .bank-option {
  grid-column: span 3;
  min-width: 0;
  min-height: 224px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid #d6ddd7;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(13,61,44,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-page .bank-option:hover {
  transform: translateY(-2px);
  border-color: #aebdb2;
  box-shadow: 0 10px 22px rgba(13,61,44,.09);
}
.home-page .bank-option.is-selected {
  border-color: #0d5a3e;
  box-shadow: inset 0 0 0 1px #0d5a3e, 0 8px 20px rgba(13,61,44,.1);
}
.home-page .bank-option button {
  grid-template-rows: 28px 48px auto auto minmax(22px, auto);
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 12px;
}
.home-page .bank-rank {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  color: #c45431;
  font-size: 9px;
  line-height: 1.25;
}
.home-page .bank-brand { min-height: 48px; }
.home-page .bank-logo-frame {
  height: 48px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #edf0ed;
  border-radius: 7px;
}
.home-page .bank-logo-frame img {
  max-width: 150px;
  max-height: 34px;
}
.home-page .bank-rate {
  margin-top: 2px;
  color: #063d2a;
  font-size: 21px;
  line-height: 1;
}
.home-page .bank-payment {
  min-height: 19px;
  color: #17271e;
  font-size: 12px;
}
.home-page .bank-status {
  display: flex;
  align-items: end;
  color: #176245;
  font-size: 9px;
  line-height: 1.25;
}
.home-page .bank-option > a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #53655a;
  background: #f3f6f2;
  border-top: 1px solid #dfe5df;
  font-size: 9px;
}
.home-page .bank-option.is-quote-only .bank-rate { margin-top: 2px; font-size: 18px; }
.home-page .bank-comparison:has(> .bank-option:nth-child(7):last-child) > .bank-option:nth-child(n+5) { grid-column: span 4; }
.home-page .bank-comparison:has(> .bank-option:nth-child(6):last-child) > .bank-option:nth-child(n+5) { grid-column: span 6; }
.home-page .bank-comparison:has(> .bank-option:nth-child(5):last-child) > .bank-option:last-child { grid-column: 1 / -1; }
.home-page .bank-comparison:has(> .bank-option:nth-child(3):last-child) > .bank-option { grid-column: span 4; }
.home-page .bank-comparison:has(> .bank-option:nth-child(2):last-child) > .bank-option { grid-column: span 6; }
.home-page .bank-comparison:has(> .bank-option:first-child:last-child) > .bank-option { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .home-page .bank-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .bank-comparison > .bank-option { grid-column: auto !important; }
}
@media (max-width: 460px) {
  .home-page .bank-comparison { grid-template-columns: 1fr; }
}
.simulator-page-scope {
  padding: 64px 0;
  background: var(--home-cream);
}

.simulator-page-scope .section.credit-simulator {
  margin-top: 0;
}

/* Movimiento de las paginas publicas (admin queda fuera de este sistema) */
@keyframes publicHeaderEnter {
  from { opacity: 0; transform: translate3d(0, -18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes publicHeroEnter {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes publicGlow {
  0%, 100% { box-shadow: 0 12px 32px rgba(13, 61, 44, .14); }
  50% { box-shadow: 0 16px 40px rgba(119, 184, 42, .25); }
}

body.public-motion .site-header {
  animation: publicHeaderEnter .7s cubic-bezier(.16, 1, .3, 1) both;
}

body.public-motion .hero-content,
body.public-motion .hero-feature-card,
body.public-motion .category-hero > div,
body.public-motion .property-detail-hero > div {
  animation: publicHeroEnter .85s cubic-bezier(.16, 1, .3, 1) .08s both;
}

body.public-motion [data-reveal] {
  opacity: 0;
  clip-path: inset(12% 0 12% 0 round 14px);
  transform: translate3d(0, 62px, 0) scale(.94);
  transition:
    opacity .86s cubic-bezier(.16, 1, .3, 1),
    transform .86s cubic-bezier(.16, 1, .3, 1),
    clip-path .86s cubic-bezier(.16, 1, .3, 1),
    box-shadow .3s ease,
    border-color .3s ease,
    background-color .3s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, clip-path;
}

body.public-motion [data-reveal][data-scroll-direction="up"] {
  transform: translate3d(0, -62px, 0) scale(.94);
}

body.public-motion [data-reveal].is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 0);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

body.public-motion .property-card,
body.public-motion .category-grid a,
body.public-motion .service-suite article,
body.public-motion .intro-grid article,
body.public-motion .process-stepper article,
body.public-motion .market-metrics article,
body.public-motion .contact-card,
body.public-motion .detail-sidebar > * {
  transition:
    transform .38s cubic-bezier(.16, 1, .3, 1),
    box-shadow .38s ease,
    border-color .3s ease,
    background-color .3s ease;
}

body.public-motion .property-card img,
body.public-motion .category-grid img,
body.public-motion .market-image img,
body.public-motion .agent-image img,
body.public-motion .detail-gallery img {
  transition: transform .75s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}

body.public-motion .button,
body.public-motion .header-cta,
body.public-motion .text-link,
body.public-motion .property-filters a,
body.public-motion .listing-tools button,
body.public-motion .carousel-btn,
body.public-motion .floating-whatsapp {
  transition:
    transform .25s cubic-bezier(.16, 1, .3, 1),
    box-shadow .25s ease,
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

body.public-motion .button span,
body.public-motion .header-cta span,
body.public-motion .text-link span {
  display: inline-block;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

body.public-motion .floating-whatsapp {
  animation: publicGlow 3.2s ease-in-out 1.1s infinite;
}

/* Mantiene la entrada escalonada aun en elementos con microinteracciones propias. */
body.public-motion [data-reveal] {
  transition:
    opacity .86s cubic-bezier(.16, 1, .3, 1),
    transform .86s cubic-bezier(.16, 1, .3, 1),
    clip-path .86s cubic-bezier(.16, 1, .3, 1),
    box-shadow .32s ease,
    border-color .3s ease,
    background-color .3s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (hover: hover) and (pointer: fine) {
  body.public-motion .property-card:hover,
  body.public-motion .category-grid a:hover,
  body.public-motion .service-suite article:hover,
  body.public-motion .intro-grid article:hover,
  body.public-motion .process-stepper article:hover,
  body.public-motion .market-metrics article:hover,
  body.public-motion .contact-card:hover,
  body.public-motion .detail-sidebar > *:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 24px 58px rgba(13, 61, 44, .14);
  }

  body.public-motion .property-card:hover img,
  body.public-motion .category-grid a:hover img,
  body.public-motion .market-image:hover img,
  body.public-motion .agent-image:hover img,
  body.public-motion .detail-gallery a:hover img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.02);
  }

  body.public-motion .button:hover,
  body.public-motion .header-cta:hover,
  body.public-motion .listing-tools button:hover,
  body.public-motion .carousel-btn:hover {
    transform: translate3d(0, -3px, 0);
  }

  body.public-motion .button:hover span,
  body.public-motion .header-cta:hover span,
  body.public-motion .text-link:hover span {
    transform: translateX(4px);
  }
}

/* Paleta publica mas luminosa: blanco como base, verde para confianza. */
body.home-page {
  --home-cream: #ffffff;
  --cream: #ffffff;
  background: #ffffff;
}

body.site-page {
  --theme-cream: #ffffff;
  background: #ffffff;
}

body.home-page > main,
body.site-page > main,
.simulator-page-scope {
  background: #ffffff;
}

.home-page .quick-search,
.home-page .trust-strip,
.home-page .market-panel,
.home-page .property-card,
.home-page .credit-form,
.site-page .listing-tools,
.site-page .category-listing,
.site-page .property-card,
.site-page .property-detail-grid,
.site-page .detail-content,
.site-page .detail-sidebar > * {
  background-color: #ffffff;
}

.home-page .properties,
.home-page .categories,
.home-page .stories,
.home-page .process,
.site-page .category-intel {
  background-color: #fbfcfb;
}

.site-page .category-intel,
.home-page .market-metrics article,
.home-page .intro-grid article,
.home-page .service-suite article {
  border-color: #e4e9e5;
}

/* Simulador del index: panel financiero compacto y ordenado. */
.home-page .section.credit-simulator {
  width: min(1320px, calc(100% - 32px));
  grid-template-columns: minmax(245px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 42px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dce6df;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(13, 61, 44, .09);
}

.home-page .credit-copy {
  position: sticky;
  top: 92px;
  min-height: 0;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(119, 184, 42, .23), transparent 38%),
    linear-gradient(145deg, #0d3d2c, #08291f);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(7, 41, 30, .16);
}

.home-page .credit-copy .finance-label {
  width: fit-content;
  margin: 0 0 2px;
  padding: 8px 10px;
  border-radius: 8px;
}

.home-page .credit-copy .eyebrow { margin: 0; }
.home-page .section.credit-simulator .credit-copy h2 {
  max-width: 250px;
  margin: 0;
  font-size: clamp(28px, 2.35vw, 35px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.home-page .credit-copy > p:not(.eyebrow) { margin: 0; font-size: 12px; line-height: 1.55; }
.home-page .credit-copy .credit-points {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding-top: 14px;
}
.home-page .credit-copy .credit-points li { padding-left: 16px; font-size: 11px; line-height: 1.45; }

.home-page .credit-form {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe7e1;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(13, 61, 44, .055);
}

.home-page .credit-form-heading {
  min-height: 58px;
  margin: 0;
  padding: 4px 4px 12px;
}
.home-page .credit-form-heading strong { font-size: clamp(24px, 2.2vw, 30px); }
.home-page .credit-form-heading small { font-size: 10px; }
.home-page .credit-updated {
  padding: 7px 9px;
  border-color: #dce5de;
  background: #f5f8f5;
  font-size: 9px;
}

.home-page .credit-admin-card {
  padding: 14px;
  border-color: #e0e7e2;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(13, 61, 44, .035);
}
.home-page .credit-admin-card > legend { gap: 9px; margin-bottom: 10px; }
.home-page .credit-admin-card > legend > span:first-child { width: 30px; height: 30px; }
.home-page .credit-admin-card legend strong { font-size: 13px; }
.home-page .credit-admin-card legend small { font-size: 9px; }

.home-page .credit-admin-card:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  gap: 10px 12px;
}
.home-page .credit-admin-card:first-of-type > legend,
.home-page .credit-admin-card:first-of-type > .credit-controls { grid-column: 1 / -1; }
.home-page .credit-controls { gap: 10px; }
.home-page .credit-form input:not([type="radio"]):not([type="range"]),
.home-page .credit-form select { min-height: 42px; }
.home-page .property-money-control { min-height: 50px; }
.home-page .credit-form .property-amount input { min-height: 48px; font-size: 21px; }

.home-page .credit-slider-block,
.home-page .credit-term {
  min-width: 0;
  margin: 0;
}
.home-page .credit-slider-block { padding: 10px 12px; }
.home-page .credit-slider-block input[type="range"] { margin: 8px 0 5px; }
.home-page .credit-slider-block output { font-size: 18px; }
.home-page .term-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.home-page .term-options span { min-height: 35px; font-size: 10px; }

.home-page .selected-rate {
  grid-template-columns: 100px minmax(0, 1fr) 62px;
  gap: 12px;
  margin-bottom: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  box-shadow: none;
}
.home-page .selected-rate strong { font-size: 22px; }
.home-page .selected-rate p { color: rgba(236,247,240,.78); font-size: 10px; line-height: 1.45; }
.home-page .selected-bank-identity {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 62px;
  min-width: 62px;
  padding: 5px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(205,220,211,.7);
  border-radius: 8px;
}
.home-page .selected-bank-logo-frame {
  display: grid;
  place-items: center;
  width: 50px;
  height: 46px;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
}
.home-page .selected-bank-logo-frame img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-page .credit-results { gap: 6px; }
.home-page .credit-results div { min-height: 70px; padding: 9px 10px; }
.home-page .credit-results span { font-size: 9px; }
.home-page .credit-results strong { margin-top: 5px; font-size: clamp(16px, 1.4vw, 19px); }
.home-page .credit-results small { margin-top: 3px; font-size: 8px; }

.home-page .bank-comparison-wrap {
  padding: 13px 14px 14px;
  background: #fbfcfb;
}
.home-page .bank-comparison { gap: 7px; }
.home-page .bank-option { min-height: 178px; border-radius: 9px; }
.home-page .bank-option button {
  grid-template-rows: 21px 38px auto auto minmax(18px, auto);
  gap: 4px;
  padding: 9px;
}
.home-page .bank-brand { min-height: 38px; }
.home-page .bank-logo-frame { height: 38px; padding: 4px 8px; }
.home-page .bank-logo-frame img { max-height: 27px; }
.home-page .bank-rate { font-size: 18px; }
.home-page .bank-payment { min-height: 16px; font-size: 10px; }
.home-page .bank-option > a { min-height: 30px; padding: 6px 9px; }

.home-page .credit-publish-bar {
  gap: 14px;
  padding: 10px 11px;
  border-radius: 10px;
  box-shadow: none;
  backdrop-filter: none;
}
.home-page .credit-publish-bar .form-note { max-width: 68%; font-size: 9px; line-height: 1.4; }
.home-page .credit-publish-bar .button { min-height: 40px; padding-inline: 14px; font-size: 10px; }

.home-page .credit-bank-launcher {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: linear-gradient(90deg, #f3f8f4, #fff);
  border: 1px solid #dce6df;
  border-radius: 12px;
}
.home-page .credit-step-badge {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: #14543b;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}
.home-page .credit-bank-launcher > div { min-width: 0; display: grid; gap: 2px; }
.home-page .credit-bank-launcher > div > span {
  color: #d4633b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-page .credit-bank-launcher strong { color: #103a2a; font-size: 14px; }
.home-page .credit-bank-launcher small {
  overflow: hidden;
  color: #68766e;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .bank-modal-trigger {
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  background: #14543b;
  border-color: #14543b;
  font-size: 10px;
}

body.credit-modal-open { overflow: hidden; }
.home-page .credit-bank-modal {
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: min(90dvh, 860px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #18231d;
  background: #fff;
  border: 1px solid #dce5de;
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(6, 35, 25, .28);
}
.home-page .credit-bank-modal::backdrop { background: rgba(4, 28, 20, .66); }
.home-page .credit-bank-modal[open] { animation: creditModalIn .28s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes creditModalIn {
  from { opacity: 0; transform: translateY(22px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.home-page .credit-modal-panel {
  width: 100%;
  max-height: min(90dvh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.home-page .credit-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8e3;
}
.home-page .credit-modal-header > div { display: grid; gap: 4px; }
.home-page .credit-modal-header span {
  color: #d4633b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.home-page .credit-modal-header h3 { margin: 0; color: #0b3527; font-size: clamp(23px, 3vw, 34px); }
.home-page .credit-modal-header p { max-width: 720px; margin: 0; color: #68766e; font-size: 11px; }
.home-page .credit-modal-selection {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 10px;
  color: #174f38;
  background: #eef6f0;
  border: 1px solid #d5e5d9;
  border-radius: 8px;
}
.home-page .credit-modal-selection span {
  color: #4f6b5b;
  font-size: 8px;
  letter-spacing: .07em;
}
.home-page .credit-modal-selection strong { font-size: 10px; line-height: 1.3; }
.home-page .credit-modal-header > button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #0b3527;
  background: #f1f5f2;
  border: 1px solid #dce5de;
  border-radius: 9px;
  cursor: pointer;
}
.home-page .credit-modal-header > button svg { width: 18px; }
.home-page .credit-bank-modal .bank-comparison-wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
  align-self: stretch;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 20px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7faf8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.home-page .bank-comparison-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}
.home-page .bank-comparison-heading > div { display: grid; gap: 2px; }
.home-page .bank-comparison-heading strong { color: #183529; font-size: 13px; }
.home-page .bank-comparison-heading small { color: #68766e; font-size: 9px; }
.home-page .credit-bank-modal .bank-comparison {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-content: stretch;
  align-content: start;
  box-sizing: border-box;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 9px;
}
.home-page .credit-bank-modal .bank-comparison > .bank-option {
  grid-column: span 3 !important;
  min-height: 186px;
}
.home-page .credit-bank-modal .bank-comparison > .bank-option:nth-child(n+5) { grid-column: span 4 !important; }
.home-page .credit-bank-modal .bank-option.is-selected {
  position: relative;
  border-color: #0d5a3e;
  box-shadow: inset 0 4px 0 #0d5a3e, 0 10px 24px rgba(13, 90, 62, .11);
}
.home-page .credit-bank-modal .bank-option.is-selected .bank-status {
  width: fit-content;
  padding: 4px 7px;
  color: #fff;
  background: #0d5a3e;
  border-radius: 999px;
}
.home-page .credit-bank-modal .bank-option:not(.is-selected) .bank-status {
  width: fit-content;
  padding: 4px 7px;
  color: #176245;
  background: #edf5ef;
  border-radius: 999px;
}
.home-page .credit-bank-modal .bank-option button:focus-visible {
  outline: 3px solid rgba(119, 184, 42, .3);
  outline-offset: -3px;
}
.home-page .credit-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid #e2e8e3;
}
.home-page .credit-modal-footer p { max-width: 720px; margin: 0; color: #68766e; font-size: 9px; }
.home-page .credit-modal-footer .button { min-height: 38px; padding: 0 13px; font-size: 10px; }

/* Entrada al nuevo centro de educación financiera. */
.home-page .education-preview {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 52px auto;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0, rgba(164, 210, 93, .18), transparent 34%),
    #f4f8f5;
  border: 1px solid #dce8df;
  border-radius: 24px;
}

.home-page .education-preview-intro h2 { max-width: 520px; margin: 8px 0 12px; }
.home-page .education-preview-intro > p:not(.eyebrow) { max-width: 520px; margin: 0 0 24px; color: #607168; line-height: 1.65; }
.home-page .education-preview-intro .button { width: fit-content; }

.home-page .education-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-page .education-preview-grid a {
  position: relative;
  display: grid;
  min-height: 154px;
  padding: 20px;
  color: #103c2e;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(13, 61, 44, .06);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.home-page .education-preview-grid a:hover {
  transform: translateY(-4px);
  border-color: #8fbd69;
  box-shadow: 0 16px 34px rgba(13, 61, 44, .11);
}

.home-page .education-preview-grid svg { width: 24px; height: 24px; margin-bottom: 22px; color: #d65e3d; }
.home-page .education-preview-grid span { color: #607168; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-page .education-preview-grid strong { margin-top: 5px; font-size: 16px; line-height: 1.25; }

@media (min-width: 1081px) {
  .home-page .section.credit-simulator { align-items: stretch; }
  .home-page .credit-copy {
    position: relative;
    top: auto;
    align-self: stretch;
    height: 100%;
  }
}

@media (max-width: 1080px) {
  .home-page .section.credit-simulator { grid-template-columns: 1fr; }
  .home-page .credit-copy {
    position: static;
    grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr);
    align-items: start;
  }
  .home-page .credit-copy .finance-label,
  .home-page .credit-copy .eyebrow,
  .home-page .credit-copy h2 { grid-column: 1; }
  .home-page .credit-copy > p:not(.eyebrow),
  .home-page .credit-copy .credit-points { grid-column: 2; }
  .home-page .credit-copy > p:not(.eyebrow) { grid-row: 1 / 3; }
  .home-page .credit-copy .credit-points { grid-row: 3 / 5; }
  .home-page .section.credit-simulator .credit-copy h2 { max-width: 360px; }
}

@media (max-width: 780px) {
  .home-page .education-preview { grid-template-columns: 1fr; width: calc(100% - 24px); margin: 34px auto; padding: 26px; }
  .home-page .section.credit-simulator { width: calc(100% - 20px); padding: 9px; }
  .home-page .credit-copy { display: grid; grid-template-columns: 1fr; padding: 22px; }
  .home-page .credit-copy .finance-label,
  .home-page .credit-copy .eyebrow,
  .home-page .credit-copy h2,
  .home-page .credit-copy > p:not(.eyebrow),
  .home-page .credit-copy .credit-points { grid-column: 1; grid-row: auto; }
  .home-page .credit-copy .credit-points { display: grid; }
  .home-page .credit-form { grid-template-columns: 1fr; padding: 10px; }
  .home-page .credit-form-heading,
  .home-page .bank-comparison-wrap,
  .home-page .credit-publish-bar { grid-column: 1; }
  .home-page .bank-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .bank-comparison > .bank-option { grid-column: auto !important; }
  .home-page .credit-bank-modal .bank-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .credit-bank-modal .bank-comparison > .bank-option,
  .home-page .credit-bank-modal .bank-comparison > .bank-option:nth-child(n+5) { grid-column: auto !important; }
  .home-page .credit-bank-launcher { grid-template-columns: auto minmax(0, 1fr); }
  .home-page .credit-bank-launcher .bank-modal-trigger { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
  .home-page .education-preview-grid { grid-template-columns: 1fr; }
  .home-page .education-preview-grid a { min-height: 130px; }
  .home-page .credit-form-heading { align-items: flex-start; flex-direction: column; }
  .home-page .credit-admin-card:first-of-type { grid-template-columns: 1fr; }
  .home-page .credit-admin-card:first-of-type > legend,
  .home-page .credit-admin-card:first-of-type > .credit-controls { grid-column: 1; }
  .home-page .credit-results,
  .home-page .bank-comparison { grid-template-columns: 1fr; }
  .home-page .selected-rate { grid-template-columns: 1fr; }
  .home-page .selected-bank-identity { justify-self: start; }
  .home-page .credit-publish-bar { align-items: stretch; flex-direction: column; }
  .home-page .credit-publish-bar .form-note { max-width: none; }
  .home-page .credit-publish-bar .button { width: 100%; }
  .home-page .credit-bank-modal { width: calc(100% - 18px); max-height: 94dvh; border-radius: 13px; }
  .home-page .credit-modal-panel { max-height: 94dvh; }
  .home-page .credit-modal-header { padding: 16px; }
  .home-page .credit-bank-modal .bank-comparison-wrap { padding: 13px; }
  .home-page .credit-bank-modal .bank-comparison { grid-template-columns: 1fr; }
  .home-page .credit-bank-modal .bank-comparison { width: 100%; }
  .home-page .credit-modal-selection { align-items: flex-start; flex-direction: column; gap: 3px; }
  .home-page .credit-modal-footer { align-items: stretch; flex-direction: column; padding: 12px 14px; }
  .home-page .credit-modal-footer .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body.public-motion .site-header,
  body.public-motion .hero-content,
  body.public-motion .hero-feature-card,
  body.public-motion .category-hero > div,
  body.public-motion .property-detail-hero > div,
  body.public-motion .floating-whatsapp {
    animation: none !important;
  }

  body.public-motion [data-reveal] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
}
