/* ==========================================================
   House Capital Bienes Raíces — Estilos del sitio
   Base: Bootstrap 5.3. Este archivo añade la identidad de marca
   y los componentes propios (prefijo hc-, hero, search, cards…).
   ========================================================== */

/* ---------- 0. Tipografías autoalojadas (SIL Open Font License 1.1) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../vendor/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../vendor/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../vendor/fonts/caveat-600-latin.woff2) format('woff2');
}

/* ---------- 1. Tokens de marca ---------- */
:root {
  --hc-navy: #0B1D4D;
  --hc-navy-2: #10296A;
  --hc-navy-deep: #081536;
  --hc-blue: #1D5BF0;
  --hc-blue-hover: #1448D2;
  --hc-blue-ink: #1A4FD6;     /* azul para texto pequeño sobre blanco (contraste AA) */
  --hc-cyan: #22C3EE;
  --hc-sky: #EAF1FF;
  --hc-green: #22C55E;
  --hc-text: #0B1D4D;
  --hc-muted: #59647F;
  --hc-border: #E3E9F4;
  --hc-soft: #F5F8FD;

  --hc-grad: linear-gradient(90deg, #1A55EE 0%, #2A7BFF 100%);
  --hc-grad-cyan: linear-gradient(90deg, #14BFE6 0%, #1F63F0 100%);
  --hc-grad-send: linear-gradient(90deg, #1846E0 0%, #1C8FF0 60%, #1FC6EC 100%);

  --hc-radius-sm: 10px;
  --hc-radius: 14px;
  --hc-radius-lg: 20px;
  --hc-shadow-sm: 0 2px 10px rgba(11, 29, 77, .06);
  --hc-shadow: 0 16px 36px -18px rgba(11, 29, 77, .28);
  --hc-shadow-lg: 0 28px 60px -26px rgba(11, 29, 77, .42);

  --hc-nav-h: 76px;
  --hc-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hc-script: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

  /* Integración con Bootstrap */
  --bs-body-font-family: var(--hc-font);
  --bs-body-color: var(--hc-text);
  --bs-body-bg: #fff;
  --bs-link-color: var(--hc-blue-ink);
  --bs-link-color-rgb: 26, 79, 214;
  --bs-link-hover-color: var(--hc-blue-hover);
  --bs-link-hover-color-rgb: 20, 72, 210;
  --bs-focus-ring-color: rgba(29, 91, 240, .35);
}

/* ---------- 2. Base ---------- */
html { scroll-padding-top: calc(var(--hc-nav-h) + 12px); }
body { font-family: var(--hc-font); color: var(--hc-text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
img { height: auto; }
/* Reserva el espacio de los iconos mientras carga la fuente de Bootstrap Icons (evita CLS) */
.bi { display: inline-block; width: 1em; line-height: 1; }
.hc-icon-svg { vertical-align: -.125em; flex: 0 0 auto; }
h1, h2, h3, .h1, .h2, .h3 { color: var(--hc-navy); font-weight: 800; letter-spacing: -.02em; }
p { text-wrap: pretty; }
[tabindex="-1"]:focus { outline: none; }

:focus-visible { outline: 3px solid var(--hc-blue); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .navbar .nav-link:focus-visible, .btn-close:focus-visible, .form-check-input:focus-visible,
.search-tabs__input:focus-visible + .search-tabs__tab, .carousel-arrow:focus-visible, .prop-card__fav:focus-visible {
  outline: 3px solid var(--hc-blue) !important; outline-offset: 3px; box-shadow: none;
}
.proposal :focus-visible, .cta-card__intro :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: #fff !important; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--hc-navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 12px 12px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.text-accent { color: var(--hc-blue); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #3A4A72; margin-bottom: .6rem; }
.eyebrow--light { color: #D6E2FF; }
.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-title { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.45rem); line-height: 1.1; margin-bottom: .9rem; }
.section-title--md { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.05rem); }
.title-rule { display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--hc-blue); margin: .25rem 0 1.1rem; }
.script-text { font-family: var(--hc-script); font-weight: 600; letter-spacing: .01em; line-height: 1.05; }

/* Etiqueta «Ejemplo» para contenido ilustrativo */
.badge-demo {
  position: absolute; right: .7rem; bottom: .7rem; z-index: 2;
  background: rgba(8, 21, 54, .78); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 6px;
}
.badge-demo--inline { position: static; display: inline-block; background: #EEF2F9; color: var(--hc-muted); }
.demo-note { color: var(--hc-muted); font-size: .85rem; margin: 1.5rem auto 0; display: flex; gap: .4rem; align-items: center; justify-content: center; text-align: center; }
.container.demo-note { padding-bottom: 1.5rem; margin-top: 0; }

/* ---------- 3. Botones ---------- */
.btn { --bs-btn-font-weight: 700; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: .6rem 1.35rem; font-size: .92rem; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn-lg { min-height: 52px; padding: .8rem 1.7rem; font-size: .98rem; }
.btn:active { transform: translateY(1px); }
.btn-hc-primary { background: var(--hc-grad); color: #fff; border: 0; box-shadow: 0 10px 24px -12px rgba(29, 91, 240, .8); }
.btn-hc-primary:hover, .btn-hc-primary:focus-visible { color: #fff; background: linear-gradient(90deg, #1448D2, #1F6BF5); box-shadow: 0 14px 28px -12px rgba(29, 91, 240, .9); transform: translateY(-1px); }
.btn-hc-wa { background: var(--hc-grad-cyan); color: #fff; border: 0; box-shadow: 0 10px 24px -14px rgba(20, 150, 230, .9); }
.btn-hc-wa:hover, .btn-hc-wa:focus-visible { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-hc-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .04); }
.btn-hc-ghost:hover, .btn-hc-ghost:focus-visible { color: var(--hc-navy); background: #fff; border-color: #fff; }
.btn-hc-ghost:hover .play-dot { background: var(--hc-navy); color: #fff; }
.play-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--hc-navy); display: grid; place-items: center; font-size: 1.05rem; transition: background-color .18s, color .18s; }
.btn-hc-outline { color: var(--hc-blue-ink); border: 1.5px solid var(--hc-blue); background: #fff; }
.btn-hc-outline:hover, .btn-hc-outline:focus-visible { color: #fff; background: var(--hc-blue); border-color: var(--hc-blue); }
.btn-hc-white { background: #fff; color: var(--hc-navy); border: 0; box-shadow: 0 10px 24px -14px rgba(8, 21, 54, .6); }
.btn-hc-white .bi-whatsapp { color: #22B04B; font-size: 1.2rem; }
.btn-hc-white:hover, .btn-hc-white:focus-visible { background: #F0F6FF; color: var(--hc-navy); transform: translateY(-1px); }
.btn-hc-outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); background: transparent; }
.btn-hc-outline-light:hover, .btn-hc-outline-light:focus-visible { color: var(--hc-blue-ink); background: #fff; border-color: #fff; }
.btn-hc-send { background: var(--hc-grad-send); color: #fff; border: 0; border-radius: 8px; min-height: 42px; }
.btn-hc-send:hover, .btn-hc-send:focus-visible { color: #fff; filter: brightness(1.07); }
.btn-hc-send:disabled { opacity: .75; color: #fff; }

/* ---------- 4. Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 26px -14px rgba(11, 29, 77, .35); }
.site-header .navbar { min-height: var(--hc-nav-h); padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; padding: 0; margin-right: 1.5rem; }
.brand__logo { width: auto; height: 46px; display: block; }
.navbar .nav-link { color: var(--hc-navy); font-weight: 500; font-size: .92rem; padding: .55rem .95rem !important; position: relative; }
.navbar .nav-link:hover { color: var(--hc-blue); }
.navbar .nav-link.active { color: var(--hc-navy); font-weight: 700; }
@media (min-width: 992px) {
  .navbar .nav-link.active::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--hc-navy); }
}
.nav-cta { white-space: nowrap; }
.btn-wa-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--hc-grad-cyan); color: #fff; font-size: 1.2rem; text-decoration: none; }
.btn-wa-icon:hover { color: #fff; }
.navbar-toggler { border: 1px solid var(--hc-border); border-radius: 12px; width: 44px; height: 44px; padding: 0; display: grid; place-content: center; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { width: 20px; height: 2px; border-radius: 2px; background: var(--hc-navy); display: block; transition: transform .2s, opacity .2s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 991.98px) {
  .brand__logo { height: 40px; }
  .navbar-collapse { padding: .75rem 0 1rem; }
  .navbar-nav { gap: .1rem; }
  .navbar .nav-link { padding: .75rem .25rem !important; border-bottom: 1px solid var(--hc-border); }
  .navbar .nav-link.active { color: var(--hc-blue-ink); }
  .nav-cta { width: 100%; margin-top: 1rem; }
}

/* ---------- 5. Portada ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #061A47; min-height: clamp(460px, 40vw, 590px); display: flex; }
.hero__bg { position: absolute; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hero::before { /* fundido azul bajo el texto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(18, 82, 240, .55) 0%, rgba(18, 82, 240, 0) 55%),
    linear-gradient(90deg, #061A47 0%, #061A47 38%, rgba(6, 26, 71, .86) 47%, rgba(6, 26, 71, .25) 62%, rgba(6, 26, 71, 0) 75%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(0deg, rgba(6, 26, 71, .45), transparent); }
.hero__inner { position: relative; display: flex; align-items: center; padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(6.5rem, 9vw, 8rem); }
.hero__content { max-width: 600px; }
.hero__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #E2EAFF; margin-bottom: 1rem; }
.hero__title { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.55rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1.15rem; }
.hero__accent { display: block; color: var(--hc-cyan); }
.hero__lead { font-size: clamp(1rem, .92rem + .35vw, 1.14rem); color: #E4EBFB; max-width: 470px; line-height: 1.6; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__script { position: absolute; right: clamp(1rem, 3vw, 2.5rem); top: 34%; margin: 0; font-size: clamp(1.7rem, 1rem + 1.6vw, 2.45rem); color: #fff; transform: rotate(-7deg); text-shadow: 0 4px 18px rgba(0, 0, 0, .45); max-width: 9.5em; }
.hero__script::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--hc-green); margin-top: .5rem; }
@media (max-width: 991.98px) {
  .hero__bg { width: 100%; opacity: .55; }
  .hero::before { background: linear-gradient(90deg, rgba(6, 26, 71, .95) 0%, rgba(6, 26, 71, .7) 100%); }
  .hero__script { display: none; }
}

/* ---------- 6. Buscador ---------- */
.search-wrap { position: relative; z-index: 5; margin-top: clamp(-5.5rem, -6vw, -4rem); }
.search-wrap--page { margin-top: -3.25rem; }
.search-card { background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(11, 29, 77, .38), 0 2px 8px rgba(11, 29, 77, .05); padding: 1rem clamp(1rem, 2vw, 1.25rem) 1.25rem; max-width: 1110px; margin-inline: auto; }
.search-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.search-tabs { display: flex; gap: .25rem; margin: 0; padding: 0; border: 0; }
.search-tabs__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.search-tabs__tab { min-width: 102px; min-height: 40px; padding: .5rem 1.4rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--hc-navy); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.search-tabs__tab:hover { background: var(--hc-soft); }
.search-tabs__input:checked + .search-tabs__tab { background: var(--hc-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(29, 91, 240, .9); }
.search-card__adv { background: none; border: 0; padding: .35rem .25rem; color: var(--hc-muted); font-size: .78rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.search-card__adv .bi { color: var(--hc-navy); }
.search-card__adv:hover { color: var(--hc-blue-ink); }
.search-card__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, .7fr); gap: .75rem; }
.search-card__fields:has([data-price-field][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(150px, .5fr); }
.search-field { position: relative; border: 1px solid var(--hc-border); border-radius: 10px; background: #FBFCFF; min-height: 58px; transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--hc-blue); box-shadow: 0 0 0 3px rgba(29, 91, 240, .15); }
.search-field__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--hc-blue); font-size: 1.15rem; pointer-events: none; }
.search-field__label { position: absolute; left: 2.9rem; top: .55rem; font-size: .68rem; font-weight: 600; color: var(--hc-muted); pointer-events: none; }
.search-field__select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 100%; min-height: 56px; border: 0; background: transparent; border-radius: 10px;
  padding: 1.45rem 2.4rem .5rem 2.9rem; font-size: .86rem; font-weight: 600; color: var(--hc-navy); cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230B1D4D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
}
.search-card__btn { border-radius: 10px; min-height: 58px; font-size: .95rem; }
.search-card__advanced { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.2fr; gap: .75rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--hc-border); }
.adv-field .form-label { font-size: .75rem; font-weight: 700; color: var(--hc-muted); margin-bottom: .3rem; }
.adv-field .form-control, .adv-field .form-select { border-radius: 10px; border-color: var(--hc-border); min-height: 44px; font-size: .88rem; }
.adv-field--check { display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; font-size: .86rem; }
.link-reset { font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
@media (max-width: 991.98px) {
  .search-card__fields, .search-card__fields:has([data-price-field][hidden]) { grid-template-columns: 1fr 1fr; }
  .search-card__advanced { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .search-card__fields, .search-card__fields:has([data-price-field][hidden]), .search-card__advanced { grid-template-columns: 1fr; }
  .search-tabs { width: 100%; }
  .search-tabs__tab { min-width: 0; flex: 1; padding-inline: .5rem; }
  .search-tabs > label { flex: 1; }
}

/* ---------- 7. Beneficios ---------- */
.features { padding: clamp(2rem, 4vw, 2.75rem) 0 .5rem; }
.features__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1110px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.features__list li { display: flex; align-items: center; gap: 1rem; }
.features__list strong { display: block; font-size: .92rem; font-weight: 700; color: var(--hc-navy); margin-bottom: .2rem; }
.features__list small { display: block; color: var(--hc-muted); font-size: .8rem; line-height: 1.45; max-width: 15em; }
.icon-circle { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--hc-sky); color: var(--hc-blue); font-size: 1.55rem; }
.icon-circle--lg { width: 66px; height: 66px; font-size: 1.7rem; }
@media (max-width: 991.98px) { .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .features__list { grid-template-columns: 1fr; } }

/* ---------- 8. Secciones con encabezado lateral (destacadas y proyectos) ---------- */
.split__head .section-title { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.35rem); }
.split__lead { color: var(--hc-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 22em; }
.cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.cards-row > * { min-width: 0; }
@media (max-width: 767.98px) {
  .cards-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin-inline: -.25rem; scrollbar-width: thin; }
  .cards-row > * { scroll-snap-align: start; }
}

/* Tarjeta de propiedad */
.prop-card, .proj-card { position: relative; height: 100%; background: #fff; border-radius: var(--hc-radius); box-shadow: 0 10px 30px -16px rgba(11, 29, 77, .3), 0 1px 3px rgba(11, 29, 77, .06); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.prop-card:hover, .proj-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(11, 29, 77, .42); }
.prop-card__media, .proj-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hc-soft); }
.proj-card__media { aspect-ratio: 3 / 1.95; }
.prop-card__media img, .proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prop-card:hover .prop-card__media img, .proj-card:hover .proj-card__media img { transform: scale(1.05); }
.prop-card__badge { position: absolute; left: .75rem; top: .75rem; z-index: 2; padding: .28rem .7rem; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--hc-grad); box-shadow: 0 6px 14px -8px rgba(29, 91, 240, .9); }
.prop-card__badge--alquiler { background: linear-gradient(90deg, #1846D8, #2563EB); }
.prop-card__status { position: absolute; left: .75rem; bottom: .75rem; z-index: 2; padding: .25rem .65rem; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #fff; color: #B42318; }
.prop-card__fav { position: absolute; right: .7rem; top: .7rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; font-size: .95rem; backdrop-filter: blur(2px); transition: background-color .2s, color .2s, transform .2s; }
.prop-card__fav:hover { background: #fff; color: #E11D48; }
.prop-card__fav.is-on { background: #fff; color: #E11D48; border-color: #fff; }
.prop-card__body, .proj-card__body { padding: .95rem 1rem 1rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.prop-card__title, .proj-card__title { font-size: .98rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .45rem; }
.prop-card__title { min-height: 2.6em; } /* dos líneas: precios y características quedan alineados entre tarjetas */
.prop-card__title a, .proj-card__title a { color: var(--hc-navy); text-decoration: none; }
.prop-card__title a:hover, .proj-card__title a:hover { color: var(--hc-blue-ink); }
.prop-card__loc { display: flex; align-items: center; gap: .45rem; color: var(--hc-muted); font-size: .78rem; margin-bottom: .7rem; }
.prop-card__loc .bi { color: var(--hc-navy); font-size: .85rem; }
.prop-card__price { color: var(--hc-blue); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; margin-bottom: .75rem; }
.prop-card__specs:not(.prop-card__specs--lg) { margin-top: auto; }
.prop-card__specs { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: .5rem; color: var(--hc-muted); font-size: .76rem; }
.prop-card__specs li { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.prop-card__specs .bi, .prop-card__specs .hc-icon-svg { font-size: 1rem; color: #3A4A72; }
.prop-card__specs--lg { justify-content: flex-start; gap: 1.75rem; font-size: .92rem; }
.prop-card__specs--lg .hc-icon-svg { font-size: 1.25rem; color: var(--hc-blue); }
.stretched-link::after { z-index: 1; }

/* Tarjeta de proyecto y etiquetas */
.proj-card__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.proj-card .prop-card__loc { margin-bottom: .8rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #F1F4F9; color: var(--hc-navy); font-size: .72rem; font-weight: 600; line-height: 1.2; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.chip--green { background: #E3F7EA; color: #157A3B; }
.chip--blue { background: #E6EEFF; color: #1A4FD6; }
.chip--amber { background: #FEF3DC; color: #9A5B00; }
.chip--gray { background: #EEF0F4; color: #4B5563; }

/* ---------- 9. Franja «Nuestra propuesta» ---------- */
.proposal { position: relative; isolation: isolate; color: #fff; background: linear-gradient(100deg, #0A2463 0%, #0B2A78 45%, #0A1F58 100%); overflow: hidden; }
.proposal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 75% 50%, rgba(30, 99, 240, .35), transparent 70%); }
.proposal__media { position: absolute; inset: 0 auto 0 0; width: 48%; z-index: -1; }
.proposal__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.proposal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 42, 120, 0) 48%, rgba(11, 42, 120, .7) 78%, #0B2A78 100%); }
.proposal__script { position: absolute; left: 54%; top: 30%; z-index: 1; margin: 0; font-size: clamp(1.6rem, 1rem + 1.3vw, 2.2rem); transform: rotate(-9deg); text-shadow: 0 4px 16px rgba(0, 0, 0, .4); max-width: 7em; }
.proposal__script::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--hc-green); margin: .5rem 0 0 2.2em; }
.proposal__inner { display: grid; grid-template-columns: 40% 1fr minmax(250px, 290px); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; padding-block: clamp(2.25rem, 4vw, 2.75rem); min-height: 330px; }
.proposal__content { grid-column: 2; }
.proposal__title { color: #fff; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.12; margin-bottom: .9rem; }
.proposal__content > p { color: #D9E3FB; font-size: .92rem; line-height: 1.6; max-width: 26em; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .bi { color: var(--hc-blue); font-size: 1.05rem; margin-top: .1rem; }
.check-list--light { font-size: .9rem; color: #EAF0FF; }
.check-list--light .bi { color: var(--hc-cyan); }
.check-list--cols { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .65rem 1.5rem; }
.sell-card { grid-column: 3; text-align: center; padding: 1.75rem 1.5rem; border-radius: 16px; border: 1.5px solid rgba(64, 160, 255, .65); background: rgba(14, 50, 140, .35); box-shadow: inset 0 0 40px rgba(34, 195, 238, .12), 0 0 0 4px rgba(34, 195, 238, .06); }
.sell-card__icon { display: inline-grid; place-items: center; font-size: 2.6rem; color: #3D8BFF; margin-bottom: .6rem; filter: drop-shadow(0 4px 12px rgba(61, 139, 255, .5)); }
.sell-card h3 { color: #fff; font-size: 1.15rem; line-height: 1.3; margin-bottom: .6rem; }
.sell-card p { color: #D3DEFA; font-size: .82rem; line-height: 1.55; margin-bottom: 1.25rem; }
@media (max-width: 1199.98px) {
  .proposal__inner { grid-template-columns: 40% 1fr; }
  .proposal__media { width: 40%; }
  .proposal__script { left: 48%; }
  .sell-card { grid-column: 2; max-width: 420px; }
}
@media (max-width: 767.98px) {
  .proposal__media { position: relative; width: 100%; height: 260px; }
  .proposal__media::after { background: linear-gradient(180deg, rgba(10, 36, 99, 0) 55%, #0A2463 100%); }
  .proposal__script { left: auto; right: 1.25rem; top: 1.75rem; font-size: 1.8rem; }
  .proposal__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 1rem; }
  .proposal__content, .sell-card { grid-column: 1; }
  .sell-card { max-width: none; }
}

/* ---------- 10. Proceso ---------- */
.process { padding-block: clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.process__head { text-align: center; margin-bottom: 2rem; }
.process__head .eyebrow { margin-bottom: .35rem; }
.process__head .section-title { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 1.9rem); }
.process__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1110px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.process__steps li { position: relative; display: flex; align-items: center; gap: 1rem; }
.process__steps li:not(:last-child)::after { content: "\F285"; font-family: bootstrap-icons; position: absolute; right: -1.1rem; top: 50%; transform: translateY(-50%); color: #A9B4CC; font-size: 1rem; }
.process__steps strong { display: block; font-size: .86rem; font-weight: 700; color: var(--hc-navy); margin-bottom: .2rem; }
.process__steps small { display: block; color: var(--hc-muted); font-size: .78rem; line-height: 1.45; }
@media (max-width: 991.98px) {
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .process__steps li::after { display: none; }
}
@media (max-width: 479.98px) { .process__steps { grid-template-columns: 1fr; } }

/* ---------- 11. Testimonios ---------- */
.testimonials { padding-top: 0; padding-bottom: 1.5rem; }
.carousel-arrows { display: flex; gap: .6rem; margin-top: 1rem; }
.carousel-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--hc-border); background: #fff; color: var(--hc-navy); display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.carousel-arrow:hover:not(:disabled) { background: var(--hc-blue); border-color: var(--hc-blue); color: #fff; }
.carousel-arrow:disabled { opacity: .45; cursor: default; }
.testimonial-track { list-style: none; margin: 0; padding: .5rem .25rem 1.25rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.2rem) / 3); column-gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track__slide { scroll-snap-align: start; }
.testimonial-card { height: 100%; margin: 0; padding: 1.15rem 1.2rem; background: #fff; border-radius: var(--hc-radius); box-shadow: 0 10px 30px -16px rgba(11, 29, 77, .3), 0 1px 3px rgba(11, 29, 77, .06); display: flex; flex-direction: column; }
.stars { color: #F5A623; display: flex; gap: .2rem; font-size: .85rem; margin-bottom: .6rem; }
.testimonial-card blockquote { margin: 0 0 1rem; font-size: .86rem; line-height: 1.55; color: #24345E; flex: 1 1 auto; }
.testimonial-card blockquote p { margin: 0; }
.testimonial-card__author { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.testimonial-card__author strong { display: block; font-size: .82rem; color: var(--hc-navy); }
.testimonial-card__author small { display: block; font-size: .74rem; color: var(--hc-muted); }
.testimonial-card__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(135deg, #1D5BF0, #22C3EE); color: #fff; font-weight: 800; font-size: .8rem; }
.testimonial-card__author .badge-demo { margin-left: auto; }
@media (max-width: 991.98px) { .testimonial-track { grid-auto-columns: calc((100% - 1.1rem) / 2); } }
@media (max-width: 575.98px) { .testimonial-track { grid-auto-columns: 86%; } }

/* ---------- 12. Bloque de contacto ---------- */
.cta-band { position: relative; padding-block: 1rem clamp(3rem, 5vw, 4rem); overflow: hidden; }
.cta-band__deco { position: absolute; right: 0; bottom: 0; width: clamp(200px, 26vw, 400px); height: auto; aspect-ratio: 590 / 245; object-fit: cover; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.cta-card { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 3.5vw, 2.4rem) clamp(1.25rem, 3.5vw, 2.5rem); border-radius: 22px; color: #fff; background: linear-gradient(95deg, #1238D6 0%, #1A5CF0 45%, #1E8DF2 75%, #33C9F2 100%); box-shadow: 0 30px 60px -30px rgba(18, 56, 214, .7); overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 0% 0%, rgba(255, 255, 255, .14), transparent 60%); pointer-events: none; }
.cta-card__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.95rem); line-height: 1.2; margin-bottom: .7rem; }
.cta-card__intro p { color: #E6EEFF; font-size: .92rem; line-height: 1.6; max-width: 30em; margin-bottom: 1.6rem; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-card__form { position: relative; background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 20px 40px -24px rgba(8, 21, 54, .55); color: var(--hc-text); }
@media (max-width: 991.98px) { .cta-card { grid-template-columns: 1fr; } .cta-band__deco { display: none; } }

/* Formulario */
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lead-form__field--full { grid-column: 1 / -1; }
.lead-form--compact .lead-form__grid { grid-template-columns: 1fr; }
@media (max-width: 479.98px) { .lead-form__grid { grid-template-columns: 1fr; } }
.lead-form .form-control { border-radius: 8px; border: 1px solid #DCE3EF; background: #F8FAFE; font-size: .84rem; min-height: 42px; color: var(--hc-navy); }
.lead-form .form-control::placeholder { color: #7A86A1; }
.lead-form .form-control:focus { border-color: var(--hc-blue); background: #fff; box-shadow: 0 0 0 3px rgba(29, 91, 240, .15); }
.lead-form textarea.form-control { resize: vertical; min-height: 64px; }
.lead-form__note { font-size: .72rem; color: var(--hc-muted); margin: .5rem 0 0; text-align: center; }
.form-status:empty { display: none; }
.form-status { display: flex; gap: .5rem; align-items: flex-start; margin-top: .6rem; padding: .6rem .8rem; border-radius: 8px; font-size: .84rem; }
.form-status--ok { background: #E3F7EA; color: #135D2F; }
.form-status--error { background: #FDECEC; color: #9B1C1C; }
.form-status--info { background: #E6EEFF; color: #173E9E; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 13. Pie de página ---------- */
.site-footer { background: var(--hc-navy-deep); color: #C2CDE6; padding-top: clamp(2.75rem, 5vw, 3.5rem); font-size: .86rem; }
.brand--footer .brand__logo { height: 44px; }
.footer-desc { color: #AEBBDA; line-height: 1.6; margin: 1rem 0 1.25rem; max-width: 28em; }
.footer-title { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0; }
.footer-links, .footer-contact, .social-list { list-style: none; padding: 0; margin: 0; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a, .footer-contact a { color: #C2CDE6; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.footer-contact .bi { color: #fff; margin-top: .15rem; }
.social-list { display: flex; gap: .6rem; }
.social-list a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; transition: background-color .2s, border-color .2s; }
.social-list a:hover { background: var(--hc-blue); border-color: var(--hc-blue); }
.newsletter { display: flex; gap: .5rem; }
.newsletter .form-control { background: #0F2050; border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 8px; font-size: .84rem; min-height: 44px; }
.newsletter .form-control::placeholder { color: #8E9CC0; }
.newsletter .form-control:focus { background: #13265C; border-color: var(--hc-cyan); box-shadow: 0 0 0 3px rgba(34, 195, 238, .2); color: #fff; }
.newsletter .form-control[aria-invalid="true"] { border-color: #F97066; }
.newsletter__btn { flex: 0 0 44px; height: 44px; border: 0; border-radius: 8px; background: var(--hc-grad); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.newsletter__btn:hover { filter: brightness(1.1); }
.newsletter__status { font-size: .8rem; margin: .5rem 0 0; min-height: 1.2em; }
.newsletter__status.is-ok { color: #7EE2A8; }
.newsletter__status.is-error { color: #FDA29B; }
.footer-bottom { margin-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; font-size: .76rem; color: #9AA8CA; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #C2CDE6; text-decoration: none; margin-left: 1.5rem; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--hc-grad); color: #fff; box-shadow: var(--hc-shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 14. Páginas interiores: listado y fichas ---------- */
.page-hero { position: relative; color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(34, 195, 238, .28), transparent 55%), linear-gradient(100deg, #061A47 0%, #0B2A78 100%); padding: clamp(2rem, 4vw, 2.75rem) 0 5rem; }
.page-hero__title { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .5rem; }
.page-hero__title .hero__accent-inline { color: var(--hc-cyan); }
.page-hero__lead { color: #D9E3FB; max-width: 40em; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; font-size: .8rem; color: #B9C7EA; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--dark { color: var(--hc-muted); margin-bottom: 1.25rem; }
.crumbs--dark a { color: var(--hc-blue-ink); }
.crumbs--dark li[aria-current] { color: var(--hc-navy); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.results-bar__count { font-size: 1.1rem; margin: 0; }
.status-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-filter a { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--hc-border); font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--hc-navy); }
.status-filter a[aria-current] { background: var(--hc-navy); border-color: var(--hc-navy); color: #fff; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 0; margin: 2.5rem 0 0; }
.pager a { min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--hc-border); display: grid; place-items: center; font-weight: 700; color: var(--hc-navy); text-decoration: none; }
.pager a:hover { border-color: var(--hc-blue); color: var(--hc-blue-ink); }
.pager a[aria-current] { background: var(--hc-grad); border-color: transparent; color: #fff; }
.empty-state { text-align: center; max-width: 560px; margin: 1rem auto; padding: 2.5rem 1.5rem; border: 1px dashed #C9D4EA; border-radius: var(--hc-radius-lg); background: var(--hc-soft); }
.empty-state .icon-circle { margin: 0 auto 1rem; background: #fff; }
.empty-state h3, .empty-state .h3 { font-size: 1.3rem; }
.empty-state p { color: var(--hc-muted); }

.detail { padding-block: 1.5rem clamp(2.5rem, 5vw, 4rem); }
.gallery__main { position: relative; border-radius: var(--hc-radius-lg); overflow: hidden; background: var(--hc-soft); aspect-ratio: 3 / 2; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .prop-card__badge { left: 1rem; top: 1rem; font-size: .75rem; padding: .35rem .85rem; }
.gallery__thumbs { list-style: none; display: flex; gap: .6rem; padding: .75rem 0 0; margin: 0; overflow-x: auto; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 104px; height: 70px; background: none; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-pressed="true"], .gallery__thumbs button:hover { opacity: 1; border-color: var(--hc-blue); }
.detail__head { padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--hc-border); }
.detail__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; margin-bottom: .6rem; }
.detail__head .prop-card__loc { font-size: .9rem; }
.detail__price { color: var(--hc-blue); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
.detail__block { padding-top: 1.75rem; }
.detail__block h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.detail__text { color: #33426B; line-height: 1.75; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin: 0; }
.facts div { padding: .8rem 1rem; border-radius: 12px; background: var(--hc-soft); border: 1px solid var(--hc-border); }
.facts dt { font-size: .74rem; font-weight: 600; color: var(--hc-muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: .15rem 0 0; font-weight: 700; color: var(--hc-navy); }
.detail-aside { position: sticky; top: calc(var(--hc-nav-h) + 1rem); padding: 1.5rem; border-radius: var(--hc-radius-lg); background: #fff; border: 1px solid var(--hc-border); box-shadow: var(--hc-shadow); scroll-margin-top: calc(var(--hc-nav-h) + 1rem); }
.detail-aside__title { font-size: 1.2rem; margin-bottom: .4rem; }
.detail-aside__lead { color: var(--hc-muted); font-size: .88rem; }
.detail-aside__or { display: flex; align-items: center; gap: .75rem; color: var(--hc-muted); font-size: .78rem; margin-bottom: .9rem; }
.detail-aside__or::before, .detail-aside__or::after { content: ""; flex: 1; height: 1px; background: var(--hc-border); }

/* ---------- 15. Ventana de video ---------- */
.hc-video { background: #000; border: 0; border-radius: 16px; overflow: hidden; }
.hc-video .modal-header { border: 0; padding: .6rem 1rem; }
.hc-video .modal-title { color: #fff; font-size: 1rem; }
.hc-video iframe { border: 0; }

/* ---------- 16. Páginas legales ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal p, .legal li { color: #33426B; line-height: 1.75; }
.legal-note { background: #FFF7E6; border: 1px solid #F5D9A0; border-radius: 12px; padding: 1rem 1.25rem; }

/* ---------- 17. Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.features__list .reveal:nth-child(2), .cards-row .reveal:nth-child(2), .process__steps .reveal:nth-child(2) { transition-delay: .08s; }
.features__list .reveal:nth-child(3), .cards-row .reveal:nth-child(3), .process__steps .reveal:nth-child(3) { transition-delay: .16s; }
.features__list .reveal:nth-child(4), .process__steps .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .back-to-top, .search-wrap, .cta-band, .site-footer { display: none !important; }
}
