/* ==========================================================================
   GoRent — Landing comercial
   HTML + CSS + JS puro. Sin frameworks.
   Paleta basada en el logo: rojo #D83736 / tinta #0F172A
   ========================================================================== */

:root {
  --red: #D83736;
  --red-600: #C02E2D;
  --red-soft: rgba(216, 55, 54, 0.09);
  --red-light: #EF8483;

  --ink: #0F172A;
  --ink-2: #1E293B;
  --text: #3B4759;
  --muted: #66748B;

  --bg: #FFFFFF;
  --bg-soft: #F6F8FA;
  --line: #E5EAF1;
  --line-strong: #D5DDE8;

  --dark: #0F172A;
  --dark-2: #0B1220;
  --dark-card: rgba(255, 255, 255, 0.045);
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-text: #A9B4C7;

  --ok: #1F9D61;
  --ok-soft: rgba(31, 157, 97, 0.12);
  --warn: #B7791F;
  --warn-soft: rgba(183, 121, 31, 0.13);
  --neutral-chip: #EEF2F7;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, 0.35);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--red); text-decoration: none; }

::selection { background: rgba(216, 55, 54, 0.18); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: 84px; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Utilidades ---------- */

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); }

.section-head { max-width: 720px; margin-bottom: 52px; }

.kicker {
  display: block;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(216, 55, 54, 0.55);
}

.btn-primary:hover {
  background: var(--red-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(216, 55, 54, 0.6);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 15.5px;
  border-radius: 12px;
}

.btn-block { width: 100%; }

/* Chips y puntos de estado */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip-new { background: var(--red-soft); color: var(--red); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-muted { background: var(--neutral-chip); color: var(--muted); }
.chip-white { background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: var(--shadow-sm); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 97, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(31, 157, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 97, 0); }
}

.pulse { animation: pulse 2.2s infinite; }

/* Placeholder de imagen (rayado sutil) */

.ph {
  background: repeating-linear-gradient(135deg, #E9EEF4 0 12px, #F4F7FB 12px 24px);
  position: relative;
  overflow: hidden;
}

.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #97A3B6;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.main-nav > a:not(.nav-cta) {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.main-nav > a:not(.nav-cta):hover { color: var(--red); }

.nav-cta { display: none; }

.header-cta { flex: none; }

/* Hamburguesa */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(15, 23, 42, 0.35);
  }

  .main-nav.open { display: flex; }

  .main-nav > a:not(.nav-cta) {
    font-size: 16px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--bg-soft);
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 14px;
    justify-content: center;
    padding: 14px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--dark);
  background-image:
    radial-gradient(640px 420px at 88% -10%, rgba(216, 55, 54, 0.16), transparent 62%),
    radial-gradient(760px 520px at -12% 112%, rgba(64, 96, 150, 0.2), transparent 60%);
  color: #fff;
  padding: 92px 0 104px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #D5DDEB;
  margin-bottom: 26px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.35rem + 3.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hl {
  background-image: linear-gradient(transparent 80%, rgba(216, 55, 54, 0.65) 80%);
}

.hero-sub {
  color: #B7C2D5;
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-note {
  color: #8D9AB1;
  font-size: 0.9rem;
}

/* --- Mockup del hero --- */

.hero-visual { position: relative; }

.mock {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.hero-mock { position: relative; z-index: 1; }

.mock-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.mock-dots { display: inline-flex; gap: 6px; }

.mock-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E2E8F0;
}

.mock-dots span:first-child { background: rgba(216, 55, 54, 0.55); }

.mock-title {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-right: 39px; /* compensa los tres puntos */
}

.mock-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFCFE;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.kpi-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.kpi-delta { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.kpi-delta.up { color: var(--ok); }

.mock-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.mock-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px;
}

.mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.lead-row,
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #F0F3F8;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.lead-info {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.lead-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-info small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tarjeta de propiedad del hero */

.prop-img {
  height: 92px;
  border-radius: 9px;
}

.prop-img .chip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}

.prop-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 8px;
}

.prop-title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.prop-price { font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }

.prop-status { display: grid; gap: 5px; }

.status-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.status-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Tarjetas flotantes */

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 11px 15px;
}

.float-a { top: -20px; right: -14px; }
.float-b { bottom: -22px; left: -16px; }

.float-info { display: grid; gap: 1px; }
.float-info strong { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.float-info small { font-size: 11px; color: var(--muted); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 620px; }
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 80px; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-cols { grid-template-columns: 1fr; }
  .float-a { top: -16px; right: 0; }
  .float-b { display: none; }
}

/* ==========================================================================
   Beneficios rápidos
   ========================================================================== */

.benefits { padding: 64px 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.benefit-term {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.benefit-term::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.benefit-card p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Grillas de cards (plataforma / integraciones / tecnología)
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card,
.int-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover,
.int-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.icon-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}

.icon-chip svg { width: 21px; height: 21px; }

.feature-card h3,
.int-card h3,
.tech-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 16px 0 8px;
}

.feature-card p,
.int-card p,
.tech-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Publicaciones y captación
   ========================================================================== */

.pub-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15.5px;
  color: var(--ink-2);
  font-weight: 600;
}

.check-list svg {
  width: 19px;
  height: 19px;
  color: var(--red);
  flex: none;
  margin-top: 3px;
}

/* Flujo visual */

.pub-flow {
  max-width: 470px;
  margin-left: auto;
  width: 100%;
  font-size: 13px;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
}

.pub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.pub-img {
  height: 150px;
}

.pub-img .chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.pub-card-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px 6px;
}

.pub-card-info { display: grid; gap: 1px; }
.pub-card-info strong { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pub-card-info small { font-size: 12px; color: var(--muted); }

.pub-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.pub-card-actions {
  display: flex;
  gap: 10px;
  padding: 12px 17px 17px;
}

.pub-lead { padding: 16px 17px; }
.pub-lead .pub-card-actions { padding: 12px 0 0; }
.pub-lead .lead-row { border-top: none; padding: 6px 0; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 15px;
  border-radius: 9px;
}

.mini-primary { background: var(--red); color: #fff; }

.mini-outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.pub-connector {
  position: relative;
  height: 62px;
  margin-left: 42px;
  border-left: 2px dashed #C4CEDC;
  display: flex;
  align-items: center;
}

.pub-connector .chip { margin-left: 18px; }

@media (max-width: 1020px) {
  .pub-grid { grid-template-columns: 1fr; gap: 48px; }
  .pub-flow { margin-left: 0; }
}

/* ==========================================================================
   Integraciones y APIs
   ========================================================================== */

.int-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.int-head h3 { margin: 0; }

.int-card p { margin-top: 10px; }

.api-card {
  margin-top: 28px;
  background: var(--dark);
  border-radius: 18px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.api-copy h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.api-copy p { color: var(--dark-text); font-size: 14.5px; }

.api-endpoints { display: grid; gap: 12px; }

.api-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  padding: 13px 18px;
}

.api-row code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: #E7ECF4;
  white-space: nowrap;
}

.method { font-weight: 700; margin-right: 6px; }
.method.get { color: #7EE2A8; }
.method.post { color: #F5C878; }

.api-desc {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--dark-text);
  text-align: right;
}

@media (max-width: 860px) {
  .api-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .api-row { flex-wrap: wrap; gap: 6px; }
  .api-desc { margin-left: 0; width: 100%; text-align: left; }
}

/* ==========================================================================
   Panel de gestión (mockup dashboard)
   ========================================================================== */

.dash {
  display: grid;
  grid-template-columns: 208px 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dash-side {
  background: #FBFCFE;
  border-right: 1px solid var(--line);
  padding: 20px 14px;
}

.dash-logo { height: 24px; width: auto; margin: 4px 8px 22px; }

.dash-menu { display: grid; gap: 3px; }

.dash-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 9px;
}

.dash-item.active {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}

.dash-main { padding: 22px; min-width: 0; }

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-head strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.avatars { display: inline-flex; }
.avatars .avatar { border: 2px solid #fff; }
.avatars .avatar + .avatar { margin-left: -8px; }

.dash-kpis { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dash-props { grid-column: 1 / -1; }

.task-check {
  width: 17px;
  height: 17px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
  flex: none;
}

.task-check.done {
  background: var(--ok);
  border-color: var(--ok);
  position: relative;
}

.task-check.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.prop-mini {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  display: grid;
  gap: 3px;
  justify-items: start;
}

.prop-mini-img {
  width: 100%;
  height: 64px;
  border-radius: 7px;
  margin-bottom: 5px;
}

.prop-mini strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.prop-mini small { font-size: 11.5px; color: var(--muted); }
.prop-mini .chip { margin-top: 4px; }

@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .props-grid { grid-template-columns: 1fr; }
  .prop-mini { grid-template-columns: 64px 1fr; column-gap: 12px; align-items: center; }
  .prop-mini-img { width: 64px; margin-bottom: 0; grid-row: 1 / 4; }
}

@media (max-width: 560px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Funciones principales
   ========================================================================== */

.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}

.fn-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fn-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.fn-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.fn-card h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--red);
  flex: none;
}

.fn-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   Tecnología (sección oscura)
   ========================================================================== */

.section-dark .kicker { color: var(--red-light); }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: var(--dark-text); }

.tech-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tech-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.tech-card .icon-chip {
  background: rgba(216, 55, 54, 0.16);
  color: var(--red-light);
}

.tech-card h3 { color: #fff; }
.tech-card p { color: #9FACC3; }

/* ==========================================================================
   Franja de inmobiliarias
   ========================================================================== */

.strip {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.strip-text {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.strip-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 48px;
}

.strip-name { color: #93A1B6; white-space: nowrap; }

.strip-name.n1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.strip-name.n2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: start;
}

.contact-points {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.point-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  flex: none;
}

.point-icon svg { width: 16px; height: 16px; }

.point-info { display: grid; gap: 2px; }
.point-info strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.point-info small { font-size: 13.5px; color: var(--muted); }

/* Formulario */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.form-intro {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #FDFDFE;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 96px; }

.field input::placeholder,
.field textarea::placeholder { color: #A2ADC0; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 55, 54, 0.13);
}

.field-error {
  display: none;
  color: var(--red-600);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
}

.field.invalid input { border-color: #DB6B6A; }
.field.invalid .field-error { display: block; }

.form-card .btn-block { margin-top: 6px; }

/* Mensaje de éxito */

.form-success { text-align: center; padding: 28px 8px; }

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  margin: 0 auto 18px;
}

.success-icon svg { width: 26px; height: 26px; }

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-success h3:focus { outline: none; }

.form-success p {
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
  margin: 0 auto 20px;
}

.link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark-2);
  color: #93A1B8;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }

.footer-brand p {
  font-size: 14.5px;
  color: #93A1B8;
  max-width: 34ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: #C3CDDD;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: #6E7C93;
}

/* ==========================================================================
   Animaciones de aparición (solo con JS activo)
   ========================================================================== */

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Preferencia de movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on .reveal {
    opacity: 1;
    transform: none;
  }
}
