/* ==========================================================================
   Estilos del sitio
   1. Tokens   2. Base   3. Layout   4. Componentes   5. Secciones   6. Páginas
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Marca: naranja y azul del logotipo */
    --brand-orange: #ff6600;
    --brand-blue: #0000ff;

    /* Derivados para interfaz */
    --navy-950: #050d2e;
    --navy-900: #081540;
    --navy-800: #0b1d51;
    --navy-700: #142a72;
    --navy-100: #e8ebf6;
    --accent: #c75000;          /* naranja accesible sobre blanco (AA) */
    --accent-hover: #a84300;
    --accent-soft: #fff1e8;
    --orange-strong: #e85d04;   /* naranja para botones con texto blanco */
    --cream: #f7eee5;           /* fondo cálido del header y franjas */

    --ink: #151a2d;
    --ink-soft: #4a5068;
    --muted: #6b7189;
    --line: #e2e5ee;
    --surface: #ffffff;
    --surface-soft: #f5f6fa;
    --success: #1c7c4d;
    --success-soft: #e7f5ee;
    --error: #b42318;
    --error-soft: #fdecea;
    --whatsapp: #128c4b;

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    --fs-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    --fs-3xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(8, 21, 64, .06), 0 1px 3px rgba(8, 21, 64, .08);
    --shadow: 0 8px 24px rgba(8, 21, 64, .08);
    --shadow-lg: 0 18px 48px rgba(8, 21, 64, .16);

    --container: 1200px;
    --gutter: clamp(1rem, 3vw, 2rem);
    --section-y: clamp(3.5rem, 6vw, 6rem);
    --header-h: 120px;
    --logo-h: 92px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; font-stretch: 112%; color: var(--navy-900); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
::selection { background: var(--brand-orange); color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface-soft); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head > div { max-width: 720px; }
.section-head--center { justify-content: center; text-align: center; }
.section-title { font-size: var(--fs-2xl); margin-bottom: .35em; }
.section-title--sm { font-size: var(--fs-xl); }
.section-lead { color: var(--ink-soft); font-size: var(--fs-lg); margin: 0; }

/* Marca: antetítulo con un pequeño bloque naranja redondeado (como el recuadro del logotipo) */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .75rem;
}
.eyebrow::before {
    content: ""; width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; background: var(--brand-orange);
}
.eyebrow--light { color: #ffb380; }
.brand-stripe { height: 5px; background: var(--brand-orange); }

/* 4. Componentes ----------------------------------------------------------- */

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius-sm);
    font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; text-align: center;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); }
.btn--light { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--accent); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #0d7139; color: #fff; }
.btn--text { background: none; color: var(--ink-soft); min-height: 40px; text-decoration: underline; }
.btn--text:hover { color: var(--accent); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; }
.btn--lg { min-height: 54px; padding: .85rem 1.8rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--navy-900);
}
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn--light { background: rgba(255, 255, 255, .12); color: #fff; }
.icon-btn--light:hover { background: rgba(255, 255, 255, .25); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy-800); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Etiquetas */
.tag {
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px;
    font-size: var(--fs-xs); font-weight: 700; line-height: 1.2;
    background: var(--navy-100); color: var(--navy-800);
}
.tag .icon { width: 14px; height: 14px; }
.tag--solid { background: var(--navy-800); color: #fff; }
.tag--credit { background: var(--success-soft); color: var(--success); }
.tag--status { background: var(--accent-soft); color: var(--accent-hover); }

.status-ribbon {
    position: absolute; top: 14px; right: -36px; z-index: 2; width: 150px; padding: .35rem 0;
    transform: rotate(45deg); background: var(--brand-orange); color: var(--navy-950);
    font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100; background: var(--cream);
    border-bottom: 1px solid #ecdfd1; transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .25s var(--ease); }
.site-header__brand { flex-shrink: 0; }
.site-header__brand img { width: auto; height: var(--logo-h); transition: height .25s var(--ease); }
/* Al hacer scroll el header se compacta para no tapar contenido */
.site-header.is-scrolled { --header-h: 76px; --logo-h: 56px; }

.site-header__actions { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; padding-left: 1.5rem; border-left: 1px solid #d9c9b8; }
.round-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(5, 13, 46, .18); transition: transform .2s var(--ease), filter .2s;
}
.round-btn .icon { width: 24px; height: 24px; }
.round-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.round-btn--phone { background: var(--orange-strong); }
.round-btn--whatsapp { background: #25d366; }
.round-btn--whatsapp .icon { width: 27px; height: 27px; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-header__brand + .main-nav { padding-left: 1.5rem; border-left: 1px solid #d9c9b8; margin-left: 0; flex: 1; justify-content: center; }
.main-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.main-nav__list a {
    position: relative; display: block; padding: .6rem .8rem; border-radius: var(--radius-sm);
    color: var(--ink); font-weight: 500; font-size: 1.02rem; text-decoration: none;
}
.main-nav__list a::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px;
    background: var(--brand-orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav__list a:hover { color: var(--navy-700); }
.main-nav__list a:hover::after, .main-nav__list a.is-active::after { transform: scaleX(1); }
.main-nav__list a.is-active { color: var(--navy-800); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.nav-toggle__bar { display: block; height: 2px; margin: 5px 0; background: var(--navy-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.site-footer { background: var(--navy-950); color: #c6cbe0; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb380; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 1.25rem; padding: 10px 12px; background: #fff; border-radius: var(--radius-sm); }
.site-footer__tagline { color: #fff; font-weight: 700; font-stretch: 112%; font-size: var(--fs-lg); margin-bottom: .5rem; }
.site-footer__title { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; font-stretch: 100%; }
.site-footer__links { list-style: none; display: grid; gap: .6rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; font-size: var(--fs-xs); }
.site-footer__bottom p { margin: 0; }

.contact-list { list-style: none; display: grid; gap: .75rem; }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list .icon { margin-top: .2em; color: var(--brand-orange); }
.contact-list a { word-break: break-word; }

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center;
    width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
    box-shadow: 0 10px 24px rgba(18, 140, 75, .35); transition: transform .2s var(--ease);
}
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }

/* Tarjeta de propiedad */
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.property-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.property-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-100); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.property-card__placeholder { display: grid; place-content: center; justify-items: center; gap: .4rem; height: 100%; color: var(--muted); font-size: var(--fs-sm); }
.property-card__placeholder .icon { width: 40px; height: 40px; }
.property-card__media .tag--operation { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.property-card__media .tag--credit { position: absolute; left: 12px; bottom: 12px; box-shadow: var(--shadow-sm); }
.property-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.property-card__type { margin: 0 0 .25rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.property-card__title { font-size: 1.15rem; margin-bottom: .3rem; }
.property-card__title a { color: var(--navy-900); text-decoration: none; }
.property-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.property-card__location { display: flex; align-items: center; gap: .35rem; margin: 0 0 .9rem; color: var(--muted); font-size: var(--fs-sm); }
.property-card__location .icon { width: 1em; height: 1em; }
.property-card__facts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin-bottom: 1rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.property-card__facts li { display: inline-flex; align-items: center; gap: .35rem; }
.property-card__facts .icon { color: var(--navy-700); }
.property-card__price { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); }
.property-card__price p { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0; }
.property-card__price p + p { margin-top: .2rem; }
.property-card__price span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.property-card__price strong { font-size: 1.2rem; font-weight: 800; font-stretch: 108%; color: var(--navy-800); }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.contact-form--compact .form-grid { grid-template-columns: 1fr; gap: .8rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label, .filter-group__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.form-field label span { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
    width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #cdd2e0; border-radius: var(--radius-sm);
    background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
select {
    appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1d51' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(20, 42, 114, .15); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.form-field__error { margin: 0; font-size: var(--fs-xs); color: var(--error); font-weight: 600; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.contact-form--compact .contact-form__footer { margin-top: 1rem; }
.contact-form__note { margin: 0; font-size: var(--fs-xs); color: var(--muted); flex: 1 1 220px; }
.contact-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

.alert { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: var(--fs-sm); }
.alert p { margin: 0; }
.alert p + p { margin-top: .3rem; }
.alert__title { font-weight: 700; }
.alert--success { background: var(--success-soft); color: #11462c; }
.alert--success .icon { width: 24px; height: 24px; color: var(--success); }
.alert--error { background: var(--error-soft); color: #7a1610; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.form-card__title { font-size: var(--fs-xl); margin-bottom: .25rem; }
.form-card__text { color: var(--muted); margin-bottom: 1.5rem; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb--light ol { color: #b9c0dc; }
.breadcrumb--light a:hover { color: #fff; }

/* Paginación */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination__item, .pagination__gap {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem;
    border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; color: var(--navy-800);
}
.pagination__item { border: 1px solid var(--line); background: #fff; }
.pagination__item:hover { border-color: var(--navy-800); color: var(--navy-800); }
.pagination__item.is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pagination__gap { color: var(--muted); }

/* Estado vacío */
.empty-state { text-align: center; max-width: 560px; margin: 0 auto; padding: 3rem 1.5rem; border: 1px dashed #cdd2e0; border-radius: var(--radius-lg); background: #fff; }
.empty-state h2 { font-size: var(--fs-xl); }
.empty-state p { color: var(--ink-soft); }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.empty-state--page { border: 0; padding-block: 2rem; }

/* Texto enriquecido */
.prose { color: var(--ink-soft); }
.prose p { margin-bottom: .9em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1em; }
.prose strong, .prose b { color: var(--ink); }
.prose--lg { font-size: var(--fs-lg); }

/* Listas con íconos */
.reason-list { list-style: none; display: grid; gap: 1.25rem; }
.reason-list li { display: flex; gap: 1rem; }
.reason-list > li > .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.reason-list strong { display: block; color: var(--navy-900); margin-bottom: .15rem; }
.reason-list p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.reason-list--compact { gap: 1rem; margin-block: 1.5rem; }

.check-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1.5rem; }
.check-list li { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); }
.check-list .icon { color: var(--success); }

/* Tarjetas de servicio y valores */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
    display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
a.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.service-card__icon { width: 48px; height: 48px; margin-bottom: 1.1rem; color: var(--accent); }
.service-card h2, .service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.service-card .link-arrow { margin-top: auto; }
.service-card--full { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.service-card--full:target { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(255, 102, 0, .15); }


/* Banda CTA */
.cta-band { background: var(--navy-800); color: #dfe3f3; padding-block: clamp(3rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
    border: 40px solid rgba(255, 102, 0, .12); pointer-events: none;
}
.cta-band--contact { background: var(--navy-950); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band__inner > div:first-child { max-width: 640px; }
.cta-band__title { color: #fff; font-size: var(--fs-2xl); }
.cta-band__text { margin: 0; font-size: var(--fs-lg); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 5. Secciones ------------------------------------------------------------- */

/* Hero (home): foto a todo el ancho, frase a la izquierda y buscador sobre la imagen */
.hero { position: relative; background: var(--cream); color: var(--ink); }
.hero__media {
    position: relative; display: flex; flex-direction: column; min-height: clamp(540px, 74vh, 720px);
    overflow: hidden; background: var(--navy-900);
}
.hero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 13, 46, .62) 0%, rgba(5, 13, 46, .38) 38%, rgba(5, 13, 46, 0) 68%),
        linear-gradient(0deg, rgba(5, 13, 46, .25) 0%, rgba(5, 13, 46, 0) 35%);
}
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.05); transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__dots { position: absolute; top: 1rem; right: var(--gutter); z-index: 2; display: flex; gap: .45rem; }
.hero__dot { width: 30px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .65); box-shadow: 0 1px 4px rgba(5, 13, 46, .35); transition: background-color .3s; }
.hero__dot::after { content: ""; display: block; height: 20px; margin-top: -8px; } /* área táctil */
.hero__dot.is-active { background: var(--brand-orange); }
.hero__dot:hover { background: #fff; }

.hero__intro { position: relative; z-index: 1; width: 100%; padding-top: clamp(2.75rem, 7vw, 5.5rem); }
.hero__title {
    max-width: 15ch; margin: 0; color: #fff;
    font-size: clamp(2rem, 1.25rem + 2.7vw, 3.4rem); font-weight: 700; font-stretch: 100%; line-height: 1.12; letter-spacing: -.01em;
    text-shadow: 0 2px 16px rgba(5, 13, 46, .5), 0 1px 3px rgba(5, 13, 46, .4);
}
.hero__rule { display: block; width: clamp(140px, 16vw, 230px); height: 4px; margin: 1.25rem 0 1.1rem; border-radius: 2px; background: var(--brand-orange); }
.hero__lead {
    max-width: 30ch; margin: 0; color: #fff; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); font-weight: 500; line-height: 1.4;
    text-shadow: 0 1px 10px rgba(5, 13, 46, .6), 0 1px 2px rgba(5, 13, 46, .5);
}

.hero__search-wrap {
    position: relative; z-index: 1; display: flex; justify-content: center; width: 100%;
    margin-top: auto; padding-top: 2.5rem; padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* Buscador: tarjeta blanca con solapas Comprar / Alquilar / Por código */
.hero-search { width: 100%; max-width: 920px; overflow: hidden; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 44px rgba(5, 13, 46, .28); }
.hero-search__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; padding: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); }
.hero-search__tab { position: relative; display: flex; }
.hero-search__tab + .hero-search__tab::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.hero-search__tab input { position: absolute; opacity: 0; pointer-events: none; }
.hero-search__tab span {
    flex: 1; display: flex; align-items: center; justify-content: center; padding: .9rem .6rem; cursor: pointer;
    font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); font-weight: 600; line-height: 1.2; text-align: center;
    color: var(--ink); transition: background-color .2s, color .2s;
}
.hero-search__tab span:hover { background: var(--cream); }
.hero-search__tab input:checked + span { position: relative; z-index: 1; background: var(--orange-strong); color: #fff; font-weight: 700; }
.hero-search__tab:first-child input:checked + span { border-top-left-radius: 16px; }
.hero-search__tab input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: -3px; }

.hero-search__bar { display: flex; align-items: stretch; gap: .75rem; padding: 1.1rem 1.2rem 1.2rem; }
.hero-search__field {
    flex: 1; display: flex; align-items: center; gap: .6rem; min-width: 0; min-height: 56px; padding: 0 1rem;
    border: 1px solid #d9dce5; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.hero-search__field[hidden] { display: none; }
.hero-search__field:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(20, 42, 114, .12); }
.hero-search__icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand-orange); }
.hero-search__field select,
.hero-search__field input {
    flex: 1; min-width: 0; min-height: 0; padding: .75rem 0; border: 0; border-radius: 0; box-shadow: none;
    background-color: transparent; font-size: 1rem; font-weight: 500; color: var(--ink);
}
.hero-search__field select { padding-right: 1.6rem; background-position: right 0 center; cursor: pointer; }
.hero-search__field select:focus,
.hero-search__field input:focus { box-shadow: none; }
.hero-search__field input::placeholder { color: var(--muted); }
.hero-search__submit {
    display: inline-grid; place-items: center; flex-shrink: 0; width: 104px; padding: 0;
    border: 0; border-radius: 10px; background: var(--orange-strong); color: #fff;
    box-shadow: 0 8px 18px rgba(232, 93, 4, .3); transition: background-color .2s, transform .2s var(--ease);
}
.hero-search__submit .icon { width: 28px; height: 28px; }
.hero-search__submit:hover { background: #cf5200; transform: translateY(-1px); }
.hero-search__submit:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; }

/* Franja de tasación debajo del hero */
.appraisal-band { background: var(--cream); padding-block: clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px solid #ecdfd1; }
.appraisal-band__inner { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.appraisal-band__icon { width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px); flex-shrink: 0; color: var(--brand-orange); }
.appraisal-band__text { flex: 1; min-width: 0; padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 2px solid #d9c9b8; }
.appraisal-band__title { margin: 0 0 .2rem; color: var(--navy-950); font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem); font-weight: 700; font-stretch: 100%; line-height: 1.2; }
.appraisal-band__text p { margin: 0; color: var(--ink-soft); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.appraisal-band__btn {
    display: inline-flex; align-items: center; gap: 1rem; flex-shrink: 0; padding: 1rem 1.75rem;
    border-radius: 12px; background: var(--orange-strong); color: #fff; text-decoration: none;
    font-size: 1.2rem; font-weight: 700; box-shadow: 0 10px 22px rgba(232, 93, 4, .28);
    transition: background-color .2s, transform .2s var(--ease);
}
.appraisal-band__btn .icon { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.appraisal-band__btn:hover { background: #cf5200; color: #fff; transform: translateY(-2px); }
.appraisal-band__btn:hover .icon { transform: translateX(4px); }


/* Tipologías */
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.type-tile {
    position: relative; display: flex; align-items: flex-end; min-height: 220px; overflow: hidden;
    border-radius: var(--radius); background: var(--navy-800); color: #fff; text-decoration: none; isolation: isolate;
}
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.type-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 13, 46, 0) 30%, rgba(5, 13, 46, .85)); }
.type-tile:hover img { transform: scale(1.05); }
.type-tile:hover { color: #fff; }
.type-tile--plain { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.type-tile__body { display: flex; flex-direction: column; padding: 1.25rem 1.4rem; }
.type-tile__name { font-size: 1.35rem; font-weight: 800; font-stretch: 112%; }
.type-tile__count { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); color: #ffb380; font-weight: 700; }
.type-tile__count .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.type-tile:hover .type-tile__count .icon { transform: translateX(4px); }

/* Contacto en la home: datos + mapa | formulario */
.home-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.home-contact__list { margin: 1.5rem 0; }
.home-contact__list li { color: var(--navy-900); font-weight: 600; }
.home-contact__list a { color: var(--navy-900); text-decoration: none; }
.home-contact__list a:hover { color: var(--accent); text-decoration: underline; }
.home-contact__map { aspect-ratio: 16 / 10; border-bottom: 5px solid var(--brand-orange); box-shadow: var(--shadow-sm); }

/* Quiénes somos (home) */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-teaser__intro p { color: var(--ink-soft); font-size: var(--fs-lg); }
.about-teaser__quote { font-weight: 700; font-stretch: 110%; color: var(--navy-800) !important; border-left: 4px solid var(--brand-orange); padding-left: 1rem; }
.about-teaser__subtitle { font-size: var(--fs-xl); margin-bottom: 1.5rem; }

/* Encabezado de página interna */
.page-heading { position: relative; background: var(--navy-900); color: #dfe3f3; overflow: hidden; }
.page-heading::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(0, 0, 255, .3), transparent 65%); pointer-events: none; }
.page-heading .container { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.page-heading .breadcrumb { margin-bottom: 1.5rem; }
.page-heading__title { color: #fff; font-size: var(--fs-3xl); max-width: 820px; }
.page-heading__lead { font-size: var(--fs-lg); max-width: 640px; margin: 0; }
.page-heading--compact { background: var(--surface-soft); color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.page-heading--compact::before { display: none; }
.page-heading--compact .container { padding-block: 1.75rem 2rem; }
.page-heading--compact .breadcrumb { margin-bottom: .75rem; }
.page-heading--compact .page-heading__title { color: var(--navy-900); font-size: var(--fs-2xl); margin-bottom: .2rem; }
.page-heading__meta { margin: 0; color: var(--muted); }

/* 6. Páginas --------------------------------------------------------------- */

/* Listado */
.listing { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 2rem var(--section-y); }
.filters-panel { position: sticky; top: calc(var(--header-h) + 1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.filters-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filters-panel__title { font-size: 1.1rem; margin: 0; }
.filters-panel__close { display: none; }
.code-search { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.code-search__row { display: flex; gap: .4rem; }
.code-search__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.code-search__row input::placeholder { text-transform: none; }
.code-search__row .btn { flex-shrink: 0; padding-inline: .9rem; }
.filter-group { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.filter-group__label { padding: 0; margin-bottom: .1rem; }
.filter-group__hint { margin: .1rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .25rem; border-radius: var(--radius-sm); background: var(--surface-soft); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: .5rem .25rem; border-radius: 4px; text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.segmented input:checked + span { background: var(--navy-800); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--brand-orange); }
.filters-panel__actions { display: grid; gap: .25rem; }

.listing__toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.listing__filters-toggle { display: none; margin-right: auto; }
.sort-control { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); }
.sort-control label { white-space: nowrap; color: var(--muted); }
.sort-control select { min-height: 42px; width: auto; }
.property-grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(5, 13, 46, .5); }

/* Ficha de propiedad */
.property-top { padding-top: 1.25rem; }
.gallery { position: relative; margin-top: 1rem; }
.gallery__grid { display: grid; gap: .5rem; height: clamp(280px, 48vw, 520px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery__grid--1 { grid-template-columns: 1fr; }
.gallery__grid--2 { grid-template-columns: 1fr 1fr; }
.gallery__grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery__grid--3 .gallery__item:first-child { grid-row: span 2; }
.gallery__grid--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery__grid--4 .gallery__item:first-child { grid-row: span 2; }
.gallery__grid--4 .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__grid--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery__grid--5 .gallery__item:first-child { grid-row: span 2; }
.gallery__item { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--navy-100); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(.92); }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 13, 46, .55); color: #fff; font-weight: 800; font-size: 1.25rem; }
.gallery__all { position: absolute; right: 1rem; bottom: 1rem; }
.gallery .status-ribbon--lg { top: 24px; right: -44px; width: 200px; font-size: .85rem; }
.gallery { overflow: hidden; }
.gallery__empty { display: grid; place-items: center; gap: .5rem; height: 240px; border-radius: var(--radius-lg); background: var(--surface-soft); color: var(--muted); text-align: center; }
.gallery__empty .icon { width: 40px; height: 40px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 13, 46, .96); color: #fff; }
.lightbox::backdrop { background: rgba(5, 13, 46, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; }
.lightbox__counter { font-weight: 700; font-size: var(--fs-sm); }
.lightbox__stage { display: grid; place-items: center; margin: 0; padding: 0 4.5rem 2rem; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: 2.25rem var(--section-y); }
.property-header__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.property-header__title { font-size: var(--fs-2xl); margin-bottom: .2rem; }
.property-header__subtitle { color: var(--ink-soft); font-size: var(--fs-lg); margin-bottom: .3rem; }
.property-header__location { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin: 0; }

.price-box { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.75rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--surface-soft); border-left: 5px solid var(--brand-orange); }
.price-box__item { display: flex; flex-direction: column; }
.price-box__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-box__value { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; font-stretch: 110%; color: var(--navy-800); line-height: 1.2; }
.price-box__item--secondary .price-box__value { font-size: 1.15rem; color: var(--ink-soft); padding-top: .35rem; }

.fact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; list-style: none; margin-bottom: 2.5rem; }
.fact-list__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.fact-list__item .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); }
.fact-list__value { font-weight: 800; color: var(--navy-900); line-height: 1.2; }
.fact-list__label { font-size: var(--fs-xs); color: var(--muted); }

.property-section { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.property-section__title { font-size: var(--fs-xl); margin-bottom: 1rem; }

.detail-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; }
.detail-table div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.detail-table dt { color: var(--muted); }
.detail-table dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.map-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-soft); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-note { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .75rem 0 0; font-size: var(--fs-sm); color: var(--muted); }

.property-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.inquiry-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.inquiry-card__title { font-size: 1.25rem; margin-bottom: .2rem; }
.inquiry-card__text { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.1rem; }
.inquiry-card__divider { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.inquiry-card__divider::before, .inquiry-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inquiry-card .alert { margin-bottom: 1rem; }
.inquiry-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.inquiry-card__footer a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .2rem; border: 0; background: none; color: var(--navy-700); font-weight: 700; }
.share-btn:hover { color: var(--accent); }

/* Nosotros */
.about-intro { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }

/* Sello "+40" construido como el logotipo: bloque naranja, letras blancas con contorno azul y banda azul */
.brand-mark { padding: 6px; border: 3px solid var(--brand-blue); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.brand-mark__top { padding: 1.4rem 1rem 1.2rem; border-radius: var(--radius); background: var(--brand-orange); text-align: center; }
.brand-mark__num {
    display: block; font-size: clamp(4.5rem, 3rem + 5vw, 7rem); font-weight: 800; font-stretch: 125%; line-height: .9;
    color: #fff; -webkit-text-stroke: 3px var(--brand-blue); paint-order: stroke fill; letter-spacing: -.02em;
}
.brand-mark__band {
    margin-top: 6px; padding: .55rem; border-radius: 4px; background: var(--brand-blue); color: #fff; text-align: center;
    font-size: 1.3rem; font-weight: 800; font-stretch: 115%;
}

.about-intro__lead { font-size: var(--fs-2xl); font-weight: 800; font-stretch: 110%; color: var(--navy-900); line-height: 1.2; margin-bottom: 1rem; }
.about-intro__text > p:not(.about-intro__lead) { max-width: 620px; color: var(--ink-soft); font-size: var(--fs-lg); }
.pillars { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin-top: 1.75rem; }
.pillars li { display: flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem .55rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--navy-900); }
.pillars__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-orange); color: var(--navy-950); font-size: .75rem; font-weight: 800; }

/* Frase de marca: misma construcción que el logo (naranja + filete blanco + banda azul) */
.brand-statement__top { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--brand-orange); }
.brand-statement__text { margin: 0; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); font-weight: 800; font-stretch: 120%; line-height: 1.05; letter-spacing: -.01em; color: var(--navy-950); }
.brand-statement__band { padding-block: .85rem; border-top: 6px solid #fff; background: var(--brand-blue); color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.purpose { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.purpose__item { padding-left: 1.5rem; border-left: 4px solid var(--brand-orange); }
.purpose__item:last-child { border-left-color: var(--brand-blue); }
.purpose__text { margin: 0; font-size: var(--fs-xl); font-weight: 600; line-height: 1.45; color: var(--navy-900); }

.section--navy { background: var(--navy-900); }
.section--navy + .cta-band { border-top: 1px solid rgba(255, 255, 255, .08); }
.section-title--light { color: #fff; }
.value-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; list-style: none; }
.value-strip__item { padding-top: 1.25rem; border-top: 3px solid var(--brand-orange); }
.value-strip__icon { width: 34px; height: 34px; margin-bottom: .9rem; color: var(--brand-orange); }
.value-strip__title { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.value-strip__item p { margin: 0; color: #b9c0dc; font-size: var(--fs-sm); line-height: 1.45; }

/* Bloque de oficina (contacto y tasaciones) */
.office__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.office__card { position: relative; display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) calc(clamp(2rem, 4vw, 3rem) + 8px); background: var(--navy-900); color: #dfe3f3; }
.office__title { color: #fff; font-size: var(--fs-2xl); }
.office__list { display: grid; gap: .9rem; list-style: none; margin: .5rem 0 1.75rem; }
.office__list li { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--fs-lg); }
.office__list .icon { margin-top: .25em; color: var(--brand-orange); }
.office__list a { color: #fff; text-decoration: none; }
.office__list a:hover { color: #ffb380; text-decoration: underline; }
.office__btn { align-self: flex-start; margin-top: auto; }
.office__stripe { position: absolute; left: 0; right: 0; bottom: 0; }
.office__map { position: relative; min-height: 400px; background: var(--navy-100); }
.office__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contacto / Tasaciones */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split__info > p { color: var(--ink-soft); }
.split__contact { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.split__contact p { font-weight: 700; color: var(--navy-900); margin-bottom: .75rem; }
.contact-cards { list-style: none; display: grid; gap: .75rem; margin-top: 1.25rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--navy-700); box-shadow: var(--shadow-sm); color: inherit; }
.contact-card__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.contact-card > span { display: flex; flex-direction: column; min-width: 0; }
.contact-card__label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong { color: var(--navy-900); word-break: break-word; }

/* reCAPTCHA v3: la insignia se oculta porque el formulario muestra el aviso de Google (permitido por sus condiciones) */
.grecaptcha-badge { visibility: hidden; }
.contact-form .g-recaptcha { margin: 1rem 0 .25rem; }

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 1100px) {
    .main-nav__list a { padding-inline: .5rem; font-size: .95rem; }
    .site-header__inner { gap: 1rem; }
    .site-header__brand + .main-nav, .site-header__actions { padding-left: 1rem; }
    :root { --logo-h: 72px; }
    .property-grid, .property-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    :root { --header-h: 96px; --logo-h: 70px; }
    .site-header.is-scrolled { --header-h: 68px; --logo-h: 48px; }
    .site-header__inner { gap: 1rem; }
    .site-header__actions { margin-left: auto; padding-left: 0; border-left: 0; }
    .site-header__brand + .main-nav { padding-left: var(--gutter); border-left: 0; }
    .nav-toggle { display: block; z-index: 2; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 1.5rem;
        padding: 1.5rem var(--gutter) 2rem; background: var(--cream); overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav__list a { padding: 1rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav__list a::after { display: none; }
    .main-nav__list a.is-active { color: var(--accent); }
    body.nav-open { overflow: hidden; }

    .about-teaser, .split, .about-intro, .purpose, .office__grid, .home-contact__grid { grid-template-columns: 1fr; }
    .brand-mark { max-width: 320px; }
    .value-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
    .office__map { min-height: 320px; }
    .service-grid, .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .listing { grid-template-columns: 1fr; padding-top: 1.25rem; }
    .listing__filters-toggle { display: inline-flex; }
    .listing__filters {
        position: fixed; inset: 0 auto 0 0; z-index: 150; width: min(360px, 90vw); background: #fff; overflow-y: auto;
        transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    }
    .listing__filters.is-open { transform: none; visibility: visible; }
    .filters-panel { position: static; border: 0; border-radius: 0; }
    .filters-panel__close { display: inline-grid; }
    body.filters-open { overflow: hidden; }

    .property-layout { grid-template-columns: 1fr; }
    .property-aside { position: static; }
}

@media (max-width: 640px) {
    .property-grid, .property-grid--listing, .service-grid, .service-grid--compact, .type-grid { grid-template-columns: 1fr; }
    .value-strip { grid-template-columns: 1fr 1fr; }
    .brand-statement__band { letter-spacing: .08em; font-size: var(--fs-xs); }
    :root { --logo-h: 64px; }
    .site-header__actions { gap: .45rem; }
    .round-btn { width: 44px; height: 44px; }
    .round-btn .icon { width: 22px; height: 22px; }
    .nav-toggle { width: 40px; padding: 8px; }
    .hero__lead { font-size: 1rem; }
    .hero-search { border-radius: 14px; }
    .hero-search__tab:first-child input:checked + span { border-top-left-radius: 14px; }
    .hero-search__tab span { padding: .8rem .35rem; }
    .hero-search__bar { gap: .5rem; padding: .9rem .8rem 1rem; }
    .hero-search__field { min-height: 50px; padding: 0 .7rem; gap: .4rem; border-radius: 10px; }
    .hero-search__field select, .hero-search__field input { font-size: .92rem; }
    .hero-search__field select { padding-right: 1.3rem; }
    .hero-search__field:first-child .hero-search__icon { display: none; }
    .hero-search__icon { width: 19px; height: 19px; }
    .hero-search__submit { width: 56px; }
    .hero-search__submit .icon { width: 24px; height: 24px; }
    .hero__media { min-height: 560px; }
    .hero__media::after { background: linear-gradient(180deg, rgba(5, 13, 46, .6) 0%, rgba(5, 13, 46, .35) 45%, rgba(5, 13, 46, .1) 75%, rgba(5, 13, 46, .25) 100%); }
    .hero__rule { margin: 1rem 0 .9rem; }
    .appraisal-band__inner { flex-wrap: wrap; }
    .appraisal-band__icon { width: 48px; height: 48px; }
    .appraisal-band__text { flex-basis: calc(100% - 64px); padding-left: 1rem; }
    .appraisal-band__btn { width: 100%; justify-content: center; font-size: 1.1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .detail-table { grid-template-columns: 1fr; }
    .gallery__grid { height: 300px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
    .gallery__grid .gallery__item:not(:first-child) { display: none; }
    .gallery__grid .gallery__item:first-child { grid-row: auto; }
    .gallery { margin-inline: 0; padding-inline: 0; }
    .gallery__grid { border-radius: 0; }
    .lightbox__stage { padding: 0 0 4.5rem; }
    .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
    .sort-control label { display: none; }
    .cta-band__actions, .cta-band__actions .btn { width: 100%; }
    .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .whatsapp-float, .property-aside, .gallery__all, .cta-band { display: none !important; }
}
