/* Inmobiliaria 360 — corporativo, arquitectónico, retícula visible.
   Paleta: azul noche, blanco, gris cemento y naranja arquitectónico. */

:root {
  --night: #0b1a30;
  --night-2: #12284a;
  --steel: #2a3f62;
  --cement: #c8cbcb;
  --cement-100: #e9ebea;
  --cement-50: #f4f5f4;
  --white: #ffffff;
  --ink: #131c2b;
  --muted: #4f5866;
  --orange: #ec5f14;
  --orange-ink: #b8460a;   /* naranja para texto pequeño sobre blanco (contraste AA) */
  --danger: #b3261e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--cement);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.container-xxl { padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--orange); color: var(--night); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.demo-bar { margin: 0; padding: .5rem var(--gutter); background: var(--orange); color: var(--night); font-size: .8125rem; font-weight: 600; text-align: center; }

/* ---------- Tipografía ---------- */
.section-title {
  font-family: var(--font); font-stretch: 125%; font-weight: 800;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem); line-height: 1.02; letter-spacing: -.02em;
  color: var(--night); margin: 0 0 1rem; max-width: 20ch; text-wrap: balance;
}
.section-head { display: grid; gap: .75rem 4rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--muted); margin: 0; max-width: 52ch; }
@media (min-width: 992px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } .section-head .section-title { margin: 0; } }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 1rem; }

/* ---------- Botones (esquinas rectas, como piezas de obra) ---------- */
.btn {
  --bs-btn-border-radius: 0; --bs-btn-font-weight: 700; --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .85rem;
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; letter-spacing: .01em;
  transition: background-color .25s var(--ease), color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { box-shadow: inset 0 3px 0 rgba(0, 0, 0, .18); }
.btn:disabled { opacity: .65; }
.btn-orange {
  --bs-btn-bg: var(--orange); --bs-btn-color: var(--night); --bs-btn-border-color: var(--orange);
  --bs-btn-hover-bg: #ff7a33; --bs-btn-hover-color: var(--night); --bs-btn-hover-border-color: #ff7a33;
  --bs-btn-active-bg: #d65210; --bs-btn-active-color: var(--night); --bs-btn-active-border-color: #d65210;
  --bs-btn-disabled-bg: var(--orange); --bs-btn-disabled-color: var(--night); --bs-btn-disabled-border-color: var(--orange);
}
.btn-outline-light-sq { --bs-btn-color: var(--white); --bs-btn-border-color: rgba(255, 255, 255, .6); --bs-btn-border-width: 2px; --bs-btn-hover-bg: var(--white); --bs-btn-hover-color: var(--night); --bs-btn-hover-border-color: var(--white); --bs-btn-active-bg: var(--cement); --bs-btn-active-color: var(--night); }
.btn-night { --bs-btn-bg: var(--night); --bs-btn-color: var(--white); --bs-btn-border-color: var(--night); --bs-btn-hover-bg: var(--night-2); --bs-btn-hover-color: var(--white); --bs-btn-hover-border-color: var(--night-2); --bs-btn-active-bg: #050d19; --bs-btn-active-color: var(--white); }
.btn-outline-night { --bs-btn-color: var(--night); --bs-btn-border-color: var(--night); --bs-btn-border-width: 2px; --bs-btn-hover-bg: var(--night); --bs-btn-hover-color: var(--white); --bs-btn-hover-border-color: var(--night); --bs-btn-active-bg: var(--night-2); --bs-btn-active-color: var(--white); }

/* ---------- Navegación ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.navbar { --bs-navbar-padding-y: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); margin: 0; }
.brand-mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px; position: relative;
  border: 2px solid var(--white); font-stretch: 125%; font-weight: 800; font-size: .9375rem; letter-spacing: -.02em;
}
.brand-mark::after { content: ""; position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; background: var(--orange); }
.brand-name { font-stretch: 112%; font-weight: 700; font-size: 1.125rem; }
.navbar-nav .nav-link { color: #d5dbe5; font-weight: 600; font-size: .9375rem; padding: .7rem .85rem !important; position: relative; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus-visible { color: var(--white); }
.navbar-nav .nav-link::before { content: ""; position: absolute; left: .85rem; right: .85rem; top: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.navbar-nav .nav-link:hover::before { transform: scaleX(1); }
.nav-cta { margin-left: 1rem; min-height: 46px; }
.navbar-toggler { color: var(--white); border: 2px solid rgba(255, 255, 255, .4); border-radius: 0; width: 48px; height: 48px; padding: 0; font-size: 1.6rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: .75rem 0 1.25rem; }
  .navbar-nav .nav-link { font-size: 1.125rem; padding: .8rem 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .navbar-nav .nav-link::before { display: none; }
  .nav-cta { margin: 1rem 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--white); overflow: hidden; padding-top: clamp(2.5rem, 6vw, 5rem); }
/* Retícula de plano: 12 columnas alineadas con el contenedor. */
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(200, 203, 203, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 203, 203, .07) 1px, transparent 1px);
  background-size: calc((min(100vw, 1320px) - 2 * var(--gutter)) / 12) 100%, 100% 96px;
  background-position: calc((100vw - min(100vw, 1320px)) / 2 + var(--gutter)) 0, 0 0;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; } }
.hero-copy { position: relative; padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.hero-beam { position: absolute; left: 0; top: .35em; bottom: 0; width: 6px; background: var(--orange); transform-origin: top; }
.hero-title {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.875rem, .75rem + 3.6vw, 4.25rem); line-height: .98; margin: 0 0 1.75rem;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .ln > span { display: inline-block; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: #c9d1dd; max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-photo { position: relative; margin: 0; aspect-ratio: 1 / 1; background: var(--steel); overflow: hidden; }
@media (max-width: 991.98px) { .hero-photo { aspect-ratio: 16 / 10; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 10px; background: var(--orange); z-index: 2; }
.floors { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); pointer-events: none; }
.floors i { background: var(--night); transform: scaleX(0); transform-origin: right; }
.hero-photo figcaption { position: absolute; right: .6rem; top: .6rem; font-size: .75rem; color: var(--white); background: rgba(11, 26, 48, .7); padding: .15rem .5rem; z-index: 2; }

.hero-index { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid rgba(255, 255, 255, .16); }
@media (min-width: 768px) { .hero-index { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-index a {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: 1.25rem 1rem 1.25rem 0; color: var(--white); text-decoration: none; font-stretch: 112%; font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .16); min-height: 64px; transition: color .25s;
}
@media (max-width: 767.98px) { .hero-index a:nth-child(odd) { padding-right: 1rem; border-right: 1px solid rgba(255, 255, 255, .16); } .hero-index a:nth-child(even) { padding-left: 1rem; } }
@media (min-width: 768px) { .hero-index a { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .16); padding-left: 1rem; } .hero-index a:first-child { padding-left: 0; } .hero-index a:last-child { border-right: 0; } }
.hero-index a i { color: var(--orange); transition: transform .3s var(--ease); }
.hero-index a:hover { color: var(--orange); }
.hero-index a:hover i { transform: translate(3px, 3px); }

/* ---------- Líneas de negocio ---------- */
.lines { padding: var(--section) 0; background: var(--cement-50); }
.lines-grid { display: grid; gap: 1px; background: var(--cement); border: 1px solid var(--cement); }
@media (min-width: 768px) { .lines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lines-grid { grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3.5fr)); grid-template-rows: auto auto; } .line-feature { grid-row: span 2; } .line-dark { grid-column: 2 / 4; } }
.line-tile { background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .5rem; position: relative; }
.line-tile > i { font-size: 2rem; color: var(--orange-ink); margin-bottom: .5rem; }
.line-tile h3 { font-stretch: 118%; font-weight: 800; font-size: 1.375rem; margin: 0; color: var(--night); }
.line-tile p { color: var(--muted); margin: 0 0 1rem; }
.line-link { margin-top: auto; font-weight: 700; color: var(--night); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; border-bottom: 3px solid var(--orange); align-self: flex-start; }
.line-link:hover { color: var(--orange-ink); }
.line-feature { padding: 0; min-height: 420px; color: var(--white); overflow: hidden; }
.line-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 26, 48, .96) 0%, rgba(11, 26, 48, .82) 50%, rgba(11, 26, 48, .1) 85%); }
.line-feature-body { position: relative; z-index: 1; margin-top: auto; padding: clamp(1.5rem, 3vw, 2.25rem); }
.line-feature h3 { color: var(--white); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.line-feature p { color: #d5dbe5; }
.line-feature .line-link { color: var(--white); }
.line-feature .line-link:hover { color: var(--orange); }
.line-dark { background: var(--night); }
.line-dark h3 { color: var(--white); }
.line-dark p { color: #c9d1dd; }
.line-dark > i { color: var(--orange); }
.line-dark .line-link { color: var(--white); }
.line-dark .line-link:hover { color: var(--orange); }

/* ---------- Inmuebles ---------- */
.listings { padding: var(--section) 0; }
.segment { display: inline-flex; border: 2px solid var(--night); }
.segment-btn { background: var(--white); color: var(--night); border: 0; font-weight: 700; padding: .65rem 1.1rem; min-height: 46px; transition: background-color .2s, color .2s; }
.segment-btn + .segment-btn { border-left: 2px solid var(--night); }
.segment-btn:hover { background: var(--cement-100); }
.segment-btn[aria-pressed="true"] { background: var(--night); color: var(--white); }
.results-line { color: var(--muted); margin: 0 0 1.75rem; font-weight: 500; }
.listing-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.unit { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--cement); background: var(--white); position: relative; transition: border-color .25s, box-shadow .25s; }
.unit::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); z-index: 2; }
.unit:hover, .unit:focus-within { border-color: var(--night); box-shadow: 0 18px 40px rgba(11, 26, 48, .12); }
.unit:hover::before, .unit:focus-within::before { transform: scaleX(1); }
.unit-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cement-100); }
.unit-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-tags { position: absolute; left: 0; top: 0; display: flex; }
.unit-tags span { padding: .35rem .7rem; font-size: .8125rem; font-weight: 700; }
.tag-venta { background: var(--orange); color: var(--night); }
.tag-arriendo { background: var(--night); color: var(--white); }
.tag-uso { background: var(--white); color: var(--night); }
.unit-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.unit-place { font-size: .875rem; color: var(--muted); margin: 0 0 .25rem; }
.unit-name { font-stretch: 110%; font-weight: 700; font-size: 1.125rem; line-height: 1.25; margin: 0 0 .75rem; color: var(--night); }
.unit-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1rem; border-top: 1px solid var(--cement); border-bottom: 1px solid var(--cement); }
.unit-data div { padding: .55rem .25rem .55rem 0; }
.unit-data div + div { border-left: 1px solid var(--cement); padding-left: .6rem; }
.unit-data dt { font-size: .75rem; font-weight: 500; color: var(--muted); }
.unit-data dd { margin: 0; font-weight: 700; font-size: .9375rem; }
.unit-price { font-stretch: 118%; font-weight: 800; font-size: 1.3125rem; margin: 0 0 1rem; color: var(--night); font-variant-numeric: tabular-nums; }
.unit-price small { font-stretch: 100%; font-weight: 500; font-size: .875rem; color: var(--muted); }
.unit-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; border: 2px solid var(--night); color: var(--night); font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.unit-cta:hover { background: var(--night); color: var(--white); }
.demo-note { margin: 1.5rem 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- Proyectos ---------- */
.projects { padding: var(--section) 0; background: var(--cement-100); }
.project-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 992px) { .project-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; } .project:first-child { grid-row: span 2; } }
.project { background: var(--white); display: flex; flex-direction: column; }
.project-media { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cement); }
.project:first-child .project-media { flex: 1; min-height: 320px; aspect-ratio: auto; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-flag { position: absolute; left: 0; bottom: 0; background: var(--white); color: var(--night); font-size: .8125rem; font-weight: 700; padding: .35rem .75rem; }
.project-body { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: grid; gap: .25rem 1.5rem; }
@media (min-width: 576px) { .project-body { grid-template-columns: 1fr auto; align-items: start; } }
.project-body h3 { font-stretch: 120%; font-weight: 800; font-size: 1.5rem; margin: 0; color: var(--night); }
.project-place { color: var(--muted); margin: 0; }
.project-price { margin: 0; text-align: left; font-weight: 700; }
@media (min-width: 576px) { .project-price { text-align: right; grid-row: 1 / 3; grid-column: 2; } }
.project-price span { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.project-price strong { font-stretch: 118%; font-size: 1.25rem; color: var(--night); }
.project-meta { grid-column: 1 / -1; color: var(--muted); margin: .5rem 0 0; font-size: .9375rem; }
.stage { grid-column: 1 / -1; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.stage li { font-size: .75rem; font-weight: 600; color: var(--muted); padding-top: .55rem; border-top: 5px solid var(--cement); }
.stage li.done { border-top-color: var(--night); color: var(--night); }
.stage li.current { border-top-color: var(--orange); color: var(--night); font-weight: 800; }
.project-actions { grid-column: 1 / -1; margin-top: 1rem; }
.project-actions a { font-weight: 700; color: var(--night); text-decoration: none; border-bottom: 3px solid var(--orange); display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.project-actions a:hover { color: var(--orange-ink); }

/* ---------- Administración ---------- */
.admin { padding: var(--section) 0; }
.admin-grid { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .admin-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; } .admin-photo { position: sticky; top: 100px; } }
.admin-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cement-100); box-shadow: 18px 18px 0 var(--cement-100); }
@media (max-width: 991.98px) { .admin-photo { aspect-ratio: 16 / 10; box-shadow: none; } }
.admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-text { font-size: 1.1875rem; color: var(--muted); max-width: 50ch; }
.check-list { list-style: none; padding: 0; margin: 1.75rem 0 2.5rem; display: grid; gap: .1rem 2rem; }
@media (min-width: 576px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--cement-100); position: relative; font-weight: 500; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .65rem; color: var(--orange-ink); font-size: 1.125rem; }
.steps-title { font-stretch: 118%; font-weight: 800; font-size: 1.25rem; color: var(--night); margin-bottom: 1rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--cement); border: 1px solid var(--cement); }
@media (min-width: 576px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: s; background: var(--white); padding: 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-stretch: 125%; font-weight: 800; color: var(--orange-ink); font-size: 1.125rem; }
.steps strong { color: var(--night); }
.steps span { color: var(--muted); font-size: .9375rem; }

/* ---------- Propietarios ---------- */
.owners { background: var(--orange); color: var(--night); padding: var(--section) 0; }
.owners-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .owners-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; } }
.owners .section-title { color: var(--night); }
.owners-copy > p { font-size: 1.125rem; max-width: 46ch; font-weight: 500; }
.owners-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; font-weight: 600; }
.owners-points li { display: flex; gap: .6rem; }
.owners-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.owners-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 8px solid var(--night); background: var(--night); }
.owners-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inversión ---------- */
.invest { position: relative; color: var(--white); background: var(--night); overflow: hidden; padding: var(--section) 0; }
.invest-bg { position: absolute; inset: 0; }
.invest-bg img { width: 100%; height: 115%; object-fit: cover; }
.invest-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 26, 48, .96) 0%, rgba(11, 26, 48, .85) 50%, rgba(11, 26, 48, .55) 100%); }
.invest-inner { position: relative; }
.invest-head { max-width: 760px; margin-bottom: 2.5rem; }
.invest .section-title { color: var(--white); }
.invest-head p { color: #c9d1dd; font-size: 1.125rem; max-width: 56ch; }
.invest-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .18); margin-bottom: 2.5rem; }
@media (min-width: 768px) { .invest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.invest-card { background: rgba(11, 26, 48, .78); padding: 1.75rem; backdrop-filter: blur(4px); }
.invest-card h3 { font-stretch: 118%; font-weight: 800; font-size: 1.25rem; margin-bottom: .5rem; }
.invest-card h3::before { content: ""; display: block; width: 28px; height: 4px; background: var(--orange); margin-bottom: 1rem; }
.invest-card p { color: #c9d1dd; margin: 0; }
.photo-credit { margin: 2rem 0 0; font-size: .75rem; color: #a9b4c4; }
.photo-credit a { color: #d5dbe5; }

/* ---------- Indicadores (ejemplo) ---------- */
.metrics { padding: var(--section) 0 0; }
/* El rayado diagonal, como en un plano, marca contenido provisional. */
.metrics-panel {
  border: 2px dashed var(--steel); padding: clamp(1.5rem, 4vw, 3rem);
  background: repeating-linear-gradient(-45deg, var(--cement-50) 0 14px, var(--white) 14px 28px);
}
.metrics-head { display: grid; gap: 1rem 3rem; margin-bottom: 2rem; }
@media (min-width: 992px) { .metrics-head { grid-template-columns: 1fr minmax(0, 44ch); align-items: end; } .metrics-head .section-title { margin: 0; } }
.metrics-warning { margin: 0; background: var(--night); color: var(--white); padding: .85rem 1rem; font-size: .9375rem; font-weight: 600; display: flex; gap: .6rem; }
.metrics-warning i { color: var(--orange); }
.metrics-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--cement); border: 1px solid var(--cement); }
@media (min-width: 992px) { .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metrics-grid div { background: var(--white); padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column-reverse; gap: .25rem; }
.metrics-grid dt { font-weight: 600; color: var(--muted); font-size: .9375rem; }
.metrics-grid dd { margin: 0; font-stretch: 125%; font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1; color: var(--night); font-variant-numeric: tabular-nums; }
.metrics-grid dd::after { content: "ejemplo"; display: block; margin-top: .35rem; font-stretch: 100%; font-size: .75rem; font-weight: 700; line-height: 1.2; color: var(--orange-ink); letter-spacing: 0; }

/* ---------- Formulario de asesoría ---------- */
.advice { padding: var(--section) 0; }
.advice-grid { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .advice-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; } }
.advice-copy > p { color: var(--muted); font-size: 1.125rem; max-width: 40ch; }
.contact-data { margin: 2rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--night); }
.contact-data div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--cement); }
.contact-data dt { font-weight: 700; color: var(--night); }
.contact-data dd { margin: 0; }
.contact-data a { color: var(--orange-ink); font-weight: 700; }
.pending { color: var(--muted); font-style: italic; font-size: .9375rem; }
.form-shell { border: 1px solid var(--cement); border-top: 6px solid var(--night); padding: clamp(1.25rem, 3.5vw, 2.5rem); background: var(--white); }
.form-note { display: flex; gap: .5rem; font-size: .9rem; color: var(--muted); background: var(--cement-50); border-left: 4px solid var(--orange); padding: .75rem 1rem; margin-bottom: 1.5rem; }
.form-label { font-weight: 700; font-size: .9375rem; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.form-control, .form-select { border-radius: 0; min-height: 50px; border: 1px solid #a9adb3; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--night); box-shadow: 0 0 0 3px rgba(236, 95, 20, .35); }
.form-control[aria-invalid="true"], .form-select[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.form-check-input { border-radius: 0 !important; width: 1.25rem; height: 1.25rem; margin-top: .15rem; border-color: #6b7380; }
.form-check-input:checked { background-color: var(--night); border-color: var(--night); }
.form-check-input[aria-invalid="true"] { border-color: var(--danger); }
.form-check-label { padding-left: .35rem; font-size: .9375rem; }
.field-error { color: var(--danger); font-size: .875rem; font-weight: 600; margin: .35rem 0 0; display: flex; gap: .35rem; }
.field-error::before { content: "\F33A"; font-family: "bootstrap-icons"; }
.btn-submit { width: 100%; }
@media (min-width: 576px) { .btn-submit { width: auto; } }
.btn-submit[aria-busy="true"] .btn-label::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .6rem; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-result:focus { outline: none; }
.form-result h3 { font-stretch: 120%; font-weight: 800; color: var(--night); }
.form-result-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 var(--section); }
.faq-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; } }
.accordion { --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-border-color: var(--cement); --bs-accordion-active-bg: var(--cement-50); --bs-accordion-active-color: var(--night); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(236, 95, 20, .4); }
.accordion-item { border-left: 0; border-right: 0; }
.accordion-button { font-weight: 700; font-size: 1.0625rem; padding: 1.15rem 0; min-height: 60px; background: transparent; }
.accordion-button:not(.collapsed) { background: transparent; box-shadow: inset 0 -1px 0 var(--cement); color: var(--orange-ink); }
.accordion-body { padding: 1rem 0 1.5rem; color: var(--muted); }

/* ---------- CTA final ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--night); color: var(--white); padding: clamp(5rem, 12vw, 9rem) 0; }
.final-bg { position: absolute; inset: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.final-inner { position: relative; }
.final-cta h2 { font-stretch: 125%; font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 1rem + 4vw, 4.5rem); line-height: 1; max-width: 16ch; margin-bottom: 2rem; }
.final-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: #07111f; color: #aab5c5; padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: .9375rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }
.footer-about { margin-top: 1rem; max-width: 34ch; }
.footer-title { font-stretch: 112%; font-weight: 800; font-size: 1rem; color: var(--white); margin-bottom: .85rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 24px; }
.footer-links a:hover { color: var(--orange); }
.site-footer .pending { color: #8d99ab; font-size: .875rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: .4rem; font-size: .8125rem; }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 56px; height: 56px; display: grid; place-items: center; background: var(--orange); color: var(--night); font-size: 1.5rem; text-decoration: none; border: 2px solid var(--night); box-shadow: 6px 6px 0 var(--night); transition: transform .2s var(--ease), box-shadow .2s; }
.wa-float:hover { color: var(--night); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--night); }

/* ---------- Imagen no disponible ---------- */
.img-fallback { position: relative; background: repeating-linear-gradient(-45deg, var(--steel) 0 12px, var(--night-2) 12px 24px) !important; }
.img-fallback img { opacity: 0; }
.img-fallback::after { content: "Imagen no disponible"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-weight: 700; }

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

/* ---------- Pantallas muy angostas ---------- */
@media (max-width: 575.98px) {
  .segment { display: flex; width: 100%; }
  .segment-btn { flex: 1; padding-inline: .5rem; }
}
@media (max-width: 399.98px) {
  .hero-index { grid-template-columns: 1fr; }
  .hero-index a:nth-child(odd) { border-right: 0; }
  .hero-index a:nth-child(even) { padding-left: 0; }
}
