/* =========================================================
   UNILEVANTE — Web corporativa
   Paleta: naranja corporativo + negro
   ========================================================= */

:root {
  --orange:      #D67828;            /* naranja vivo pero corporativo */
  --orange-rgb:  214, 120, 40;       /* mismo color en rgb, para usar con alpha */
  --orange-soft: rgba(214,120,40,.85); /* versión translúcida para fondos grandes */
  --orange-600:  #b15c12;            /* hover, más oscuro */
  --orange-100:  #fbe6d2;            /* fondos sutiles */
  --black: #1a1a1a;
  --ink: #222;
  --muted: #5a5a5a;
  --line: #e9e9e9;
  --bg: #ffffff;
  --bg-soft: #faf8f6;
  --bg-dark: #111111;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 12px 40px rgba(0,0,0,.10);
  --shadow-orange: 0 12px 28px rgba(var(--orange-rgb), .22);

  --container: 1200px;
  --header-h: 76px;

  --t-fast: 180ms ease;
  --t-base: 280ms ease;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; color: var(--black); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0 0 .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-soft);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--black);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  filter: saturate(.7) brightness(.96);
  opacity: .92;
}
.brand-name {
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--black);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: .4rem 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switcher button {
  background: transparent;
  border: 0;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switcher button.active {
  background: var(--black);
  color: #fff;
}
.lang-switcher button:hover:not(.active) {
  background: var(--orange-100);
  color: var(--orange-600);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--black);
  transition: transform var(--t-base), top var(--t-base), opacity var(--t-fast);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(26,26,26,.84) 0%, rgba(26,26,26,.58) 55%, rgba(var(--orange-rgb),.28) 100%),
    radial-gradient(circle at 80% 10%, rgba(var(--orange-rgb),.22), transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero h1 { color: #fff; }
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin-top: 1rem;
}
.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero .eyebrow { color: #e6c9b1; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section.services { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 1.2rem auto 0;
}
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   SERVICIOS
   ========================================================= */

/* --- Badge / etiqueta --- */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange-soft);
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.badge-soft {
  background: var(--orange-100);
  color: var(--orange-600);
}

/* --- Banner inclusivo "Da igual el tamaño de tu cartera" --- */
.any-size-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 820px;
  margin: -1.4rem auto 2.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-soft);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.any-size-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(27,138,69,.12);
  color: #1b8a45;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.any-size-icon svg { width: 22px; height: 22px; }
.any-size-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.any-size-text strong {
  font-size: 1rem;
  color: var(--black);
  font-weight: 700;
  line-height: 1.3;
}
.any-size-text span {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- BLOQUE PRINCIPAL: service-hero --- */
.service-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas:
    "text  media"
    "body  body";
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(2rem, 4vw, 2.8rem);
  align-items: start;
  background: #fff;
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 60%);
}
.service-hero-text { grid-area: text; }
.service-hero-media { grid-area: media; }
.service-hero-body  {
  grid-area: body;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.service-hero-text h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: .2rem 0 .9rem;
}
.service-hero-text > p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.service-section-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .9rem;
}
.service-section-title + .rental-modes,
.service-section-title + .service-features {
  margin-top: 0;
}

/* --- Modalidades de alquiler --- */
.rental-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin: 0 0 1.6rem;
}
.rental-mode {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: border-color var(--t-base), transform var(--t-base), background var(--t-base);
}
.rental-mode:hover {
  border-color: rgba(var(--orange-rgb), .35);
  transform: translateY(-2px);
  background: #fff;
}
.rm-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--orange-rgb), .14);
  color: var(--orange-600);
  display: grid;
  place-items: center;
  margin-bottom: .2rem;
}
.rm-icon svg { width: 18px; height: 18px; }
.rental-mode strong {
  font-size: .92rem;
  color: var(--black);
  font-weight: 700;
}
.rental-mode span {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.4;
}
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.6rem;
}
.service-features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: .9rem;
  align-items: flex-start;
}
.sf-dot {
  width: 10px;
  height: 10px;
  margin-top: .55em;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--orange-100);
}
.service-features strong {
  display: block;
  color: var(--black);
  font-weight: 700;
  margin-bottom: .15rem;
  font-size: 1rem;
}
.service-features p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}

/* --- Sub-bloque destacado: Gestión integral --- */
.integral-block {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-soft);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.4rem;
  margin: 0 0 1.8rem;
}
.integral-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0 0 .4rem;
}
.integral-block h4 {
  font-size: 1.18rem;
  margin: 0 0 .6rem;
  color: var(--black);
  line-height: 1.3;
}
.integral-block h4 em {
  color: var(--orange-600);
  font-style: italic;
  font-weight: 700;
}
.integral-block > p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 1.2rem;
}
.integral-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.integral-features li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .85rem;
  align-items: flex-start;
}
.if-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(var(--orange-rgb), .12);
  color: var(--orange-600);
  display: grid;
  place-items: center;
  margin-top: .15rem;
}
.if-icon svg { width: 20px; height: 20px; }
.integral-features strong {
  display: block;
  color: var(--black);
  font-weight: 700;
  font-size: .98rem;
  margin-bottom: .15rem;
}
.integral-features p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* --- Modelo de honorarios --- */
.fee-model {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a1a1a 0%, #262321 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.3rem 1.25rem;
  margin: 0 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.fee-model::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  background: rgba(var(--orange-rgb), .18);
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.fee-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--orange-rgb), .20);
  color: #f5d6b8;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.fee-icon svg { width: 24px; height: 24px; }
.fee-model > div {
  position: relative;
  z-index: 1;
}
.fee-eyebrow {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,214,184,.85);
  font-weight: 700;
  margin: 0 0 .25rem;
}
.fee-model strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
  line-height: 1.3;
}
.fee-model p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  line-height: 1.55;
}

.service-hero-media {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}
.service-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}
.shm-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}
.shm-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(26,26,26,.88);
  color: #fff;
  border-radius: 12px;
  padding: .85rem 1rem;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.shm-tag strong {
  font-size: 1.1rem;
  color: #f5d6b8;
  font-weight: 800;
  letter-spacing: -.01em;
}
.shm-tag span {
  font-size: .82rem;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}

/* --- BLOQUE SECUNDARIO: service-secondary --- */
.service-secondary {
  background: var(--bg);
  border-radius: 18px;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  margin-bottom: 2.4rem;
}
.ss-head { margin-bottom: 1.6rem; }
.ss-head h3 {
  font-size: 1.4rem;
  margin: .1rem 0 .5rem;
}
.ss-head p {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}
.ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.ss-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ss-item {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid transparent;
  transition: border-color var(--t-base), transform var(--t-base), background var(--t-base);
}
.ss-item:hover {
  border-color: var(--orange-100);
  transform: translateY(-3px);
}
.ss-item-highlight {
  background: linear-gradient(180deg, #fff 0%, var(--orange-100) 100%);
  border-color: rgba(var(--orange-rgb), .25);
  position: relative;
}
.ss-item-highlight strong {
  color: var(--orange-600);
  font-weight: 700;
}
.ss-features {
  list-style: none;
  padding: 0;
  margin: .9rem 0 0;
  display: grid;
  gap: .35rem;
}
.ss-features li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .88rem;
  color: var(--ink);
  font-weight: 500;
}
.ss-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.ss-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
}
.ss-icon svg { width: 22px; height: 22px; }
.ss-item h4 {
  font-size: 1.05rem;
  margin: 0 0 .4rem;
  color: var(--black);
}
.ss-item p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

/* =========================================================
   DASHBOARD PREVIEW (mockup del cuadro de mando)
   ========================================================= */
.dashboard-preview {
  margin: 0 0 3rem;
}
.dp-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}
.dp-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: .2rem 0 .6rem;
}
.dp-head h3::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--orange-soft);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.dp-head .section-lead { color: var(--muted); }

.dp-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,.18),
    0 8px 20px -8px rgba(0,0,0,.08);
  font-feature-settings: 'tnum' on, 'lnum' on; /* tabular numbers para KPIs */
}

/* Chrome estilo ventana */
.dp-chrome {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #f1f3f5;
  border-bottom: 1px solid #e6e8eb;
  padding: .6rem .85rem;
}
.dp-dots {
  display: inline-flex;
  gap: .35rem;
}
.dp-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d3d5d8;
  display: block;
}
.dp-dots span:nth-child(1) { background: #ec6b5e; }
.dp-dots span:nth-child(2) { background: #f4bf50; }
.dp-dots span:nth-child(3) { background: #61c454; }
.dp-url {
  flex: 1;
  text-align: center;
  font-size: .82rem;
  color: #6a7079;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 7px;
  padding: .3rem .8rem;
  max-width: 380px;
  margin: 0 auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.dp-url-path { color: #1a1a1a; font-weight: 600; }

/* Layout body: sidebar + main */
.dp-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 540px;
}

/* Sidebar */
.dp-sidebar {
  background: #fafbfc;
  border-right: 1px solid #eceef1;
  padding: 1rem .9rem 1.4rem;
  font-size: .82rem;
}
.dp-filter {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  padding: .55rem .7rem;
  margin-bottom: 1.1rem;
}
.dp-filter-label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7a8089;
  font-weight: 700;
  margin-bottom: .2rem;
}
.dp-filter-value {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 600;
  color: #1a1a1a;
  font-size: .92rem;
}
.dp-panel-title {
  font-size: .8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid #eceef1;
}
.dp-group { margin-bottom: 1.2rem; }
.dp-group:last-child { margin-bottom: 0; }
.dp-group-title {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
  font-weight: 800;
  margin: 0 0 .5rem;
}
.dp-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dp-group li {
  font-size: .82rem;
  color: #525860;
  padding: .35rem .5rem;
  border-radius: 5px;
  margin-bottom: .12rem;
  line-height: 1.35;
  cursor: default;
  transition: background var(--t-fast), color var(--t-fast);
}
.dp-group li:hover { background: #f0f1f3; color: #1a1a1a; }
.dp-group li.active {
  background: rgba(var(--orange-rgb), .12);
  color: var(--orange-600);
  font-weight: 700;
  border-left: 3px solid var(--orange);
  padding-left: .8rem;
}

/* Main area */
.dp-main {
  padding: 1.2rem 1.4rem 1.5rem;
  background: #fff;
}
.dp-property-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eceef1;
}
.dp-property-tag {
  display: block;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7a8089;
  font-weight: 700;
  margin-bottom: .25rem;
}
.dp-property-header h4 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--orange-600);
  font-weight: 800;
  letter-spacing: -.01em;
}
.dp-status {
  font-size: .75rem;
  font-weight: 700;
  color: #1b8a45;
  background: #e6f5ec;
  border: 1px solid #c7e6d2;
  border-radius: 999px;
  padding: .25rem .7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* KPI rows */
.dp-kpi-row {
  display: grid;
  gap: .65rem;
  margin-bottom: .75rem;
}
.dp-kpi-row-4 { grid-template-columns: repeat(4, 1fr); }
.dp-kpi-row-5 { grid-template-columns: repeat(5, 1fr); }
.dp-kpi-row-6 { grid-template-columns: repeat(6, 1fr); }

.dp-kpi {
  background: #fafbfc;
  border: 1px solid #eceef1;
  border-radius: 8px;
  padding: .65rem .75rem .7rem;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dp-k-label {
  font-size: .72rem;
  color: #6a7079;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .25rem;
}
.dp-k-label em { font-style: normal; color: #9ba0a8; font-weight: 500; }
.dp-k-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.dp-k-pos { color: #1b8a45; }
.dp-k-neg { color: #c53030; }

/* Hero row */
.dp-hero-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: .65rem;
  margin: .9rem 0 1rem;
}
.dp-hero-card {
  background: linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: 1rem 1.1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
  min-height: 92px;
}
.dp-h-label {
  font-size: .72rem;
  color: #6a7079;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dp-h-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1b8a45;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.dp-h-value-xl {
  font-size: 2.3rem;
  line-height: 1;
}
.dp-hero-accent {
  background: linear-gradient(180deg, #fff 0%, rgba(var(--orange-rgb), .07) 100%);
  border-color: rgba(var(--orange-rgb), .25);
}
.dp-hero-market {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #e6f5ec 100%);
  border-color: #c7e6d2;
}
.dp-h-value-pos { color: #1b8a45; }
.dp-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1b8a45;
  background: rgba(27,138,69,.12);
  border: 1px solid rgba(27,138,69,.22);
  padding: .15rem .5rem;
  border-radius: 999px;
}

/* --- Incidencias / Actuaciones --- */
.dp-incidents {
  margin-top: 1rem;
  background: #fafbfc;
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: .9rem 1.1rem 1rem;
}
.dp-incidents-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid #eceef1;
}
.dp-incidents-head h5 {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.dp-incidents-count {
  font-size: .72rem;
  color: #6a7079;
  font-weight: 600;
}
.dp-incidents-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.dp-incident {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: .9rem;
  font-size: .82rem;
  padding: .45rem .55rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f1f3f5;
}
.dp-incident-date {
  color: #6a7079;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dp-incident-text { color: #2a2f36; }
.dp-incident-amount {
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}
.dp-incident-status {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .18rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.dp-incident-ok {
  color: #1b8a45;
  background: #e6f5ec;
  border: 1px solid #c7e6d2;
}
.dp-incident-insurance {
  color: #1b5fae;
  background: #e6efff;
  border: 1px solid #c7dafc;
}

/* =========================================================
   DASHBOARD DE PRÉSTAMOS
   ========================================================= */
.dp-window-loan {
  margin-top: 1.4rem;
}

.dp-loan-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .65rem;
  margin: .9rem 0 .9rem;
}
.dp-loan-card {
  background: linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: 1rem 1.1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 130px;
  position: relative;
}
.dp-loan-card .dp-h-label {
  font-size: .72rem;
  color: #6a7079;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Barra de progreso del préstamo */
.dp-loan-progress { justify-content: center; }
.dp-progress {
  height: 14px;
  background: #f1f3f5;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  margin-top: .15rem;
}
.dp-progress-bar {
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  background: linear-gradient(90deg, #1b8a45 0%, #2caf5b 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 .5rem;
}
.dp-progress-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  text-transform: uppercase;
}
.dp-progress-numbers {
  display: flex;
  justify-content: space-between;
  margin-top: .35rem;
  font-size: .78rem;
  color: #6a7079;
  font-variant-numeric: tabular-nums;
}
.dp-progress-numbers strong { color: #1a1a1a; font-weight: 700; }
.dp-progress-numbers em { font-style: normal; }

.dp-loan-cer {
  background: linear-gradient(180deg, #fff 0%, #e6f5ec 100%);
  border-color: #c7e6d2;
  align-items: flex-start;
  justify-content: center;
}
.dp-loan-cer .dp-chip {
  position: static;
  align-self: flex-start;
  margin-top: -.1rem;
}

.dp-loan-collateral { justify-content: center; }
.dp-loan-collateral strong {
  font-size: 1.02rem;
  color: var(--orange-600);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.dp-collateral-extra {
  font-size: .76rem;
  color: #6a7079;
  line-height: 1.4;
  border-top: 1px dashed #d8dbdf;
  padding-top: .45rem;
  margin-top: .2rem;
}

/* =========================================================
   BLOQUE COMPARATIVO: spread (la punchline)
   ========================================================= */
.dp-spread {
  margin-top: 1.6rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2520 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.8rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px -16px rgba(0,0,0,.35);
}
.dp-spread::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(var(--orange-rgb), .18), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(27,138,69,.12), transparent 55%);
  pointer-events: none;
}
.dp-spread-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 1.3fr;
  gap: 1.4rem;
  align-items: center;
  position: relative;
}
.dp-spread-cell { display: flex; flex-direction: column; gap: .35rem; }
.dp-spread-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 700;
}
.dp-spread-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dp-spread-foot {
  font-size: .8rem;
  color: rgba(255,255,255,.62);
  line-height: 1.4;
}
.dp-spread-vs {
  align-items: center;
  text-align: center;
}
.dp-spread-arrow {
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  font-weight: 700;
}
.dp-spread-cost .dp-spread-value { color: #f8b48a; }
.dp-spread-yield .dp-spread-value { color: #7ee0a0; }

/* Benchmark Bono del Estado */
.dp-bench {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px dashed rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.dp-bench-label {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 700;
}
.dp-bench-row {
  display: flex;
  align-items: baseline;
  gap: .65rem;
}
.dp-bench-value {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dp-bench-diff {
  font-size: .78rem;
  color: #7ee0a0;
  font-weight: 800;
  background: rgba(126,224,160,.12);
  border: 1px solid rgba(126,224,160,.25);
  padding: .1rem .45rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
.dp-spread-margin {
  background: rgba(var(--orange-rgb), .14);
  border: 1px solid rgba(var(--orange-rgb), .35);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.dp-spread-margin .dp-spread-label { color: #f5d6b8; }
.dp-spread-value-big {
  font-size: 2.6rem;
  color: #fff !important;
}
.dp-spread-margin .dp-spread-foot { color: rgba(255,255,255,.78); }

/* Footnote */
.dp-footnote {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin: 1.2rem 0 0;
  font-style: italic;
}

/* --- MENCIÓN MENOR: service-note --- */
.service-note {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.sn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--orange-rgb), .10);
  color: var(--orange-600);
  display: grid;
  place-items: center;
}
.sn-icon svg { width: 22px; height: 22px; }
.service-note h4 {
  font-size: 1rem;
  margin: 0 0 .25rem;
  color: var(--black);
}
.service-note p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

/* =========================================================
   EMPRESA
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  position: relative;
}
.about-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-image: url('https://images.unsplash.com/photo-1554469384-e58fac16e23a?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.about-badge img {
  width: 100%;
  border-radius: 14px;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--muted); }
.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .65rem;
}
.about-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--orange-100);
}
.about-points strong { color: var(--black); }

/* =========================================================
   CONTACTO
   ========================================================= */
.section.contact { background: var(--bg-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.4rem;
  align-items: stretch;
}
.contact-info {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: var(--orange);
  border-radius: 50%;
  opacity: .16;
  filter: blur(14px);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-list a { color: #e6c9b1; }
.contact-list a:hover { color: #fff; }
.contact-list strong { color: #fff; }
.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--orange-rgb), .20);
  color: #f0a973;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 22px; height: 22px; }

.contact-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 70%);
}
.contact-cta h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0 0 .4rem;
  line-height: 1.25;
}
.contact-cta-lead {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 1rem;
}
.contact-cta-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.contact-cta-actions .btn { flex: 1 1 auto; min-width: 160px; }
.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}
.contact-cta-note {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-style: italic;
}

.map {
  margin-top: 2.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: saturate(.9);
}
.map-link {
  display: block;
  text-align: center;
  padding: .8rem;
  background: #fff;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0e0e0e;
  color: #cfcfcf;
  padding-top: 4rem;
  margin-top: 0;
}
.site-footer .brand-name { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 3rem;
}
.footer-brand p { color: #9a9a9a; margin-top: 1rem; max-width: 28ch; }
.footer-col h3 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.footer-col a, .footer-grid address a { color: #cfcfcf; }
.footer-col a:hover, .footer-grid address a:hover { color: var(--orange); }
.footer-grid address { font-style: normal; line-height: 1.7; color: #cfcfcf; }
.footer-bottom {
  border-top: 1px solid #232323;
  padding: 1.2rem 0;
  color: #8a8a8a;
  font-size: .85rem;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   LEGAL PAGES (aviso-legal, politica-privacidad)
   ========================================================= */
.legal-page main {
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.legal-page p, .legal-page li { color: var(--ink); }
.legal-page ul { padding-left: 1.2rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "media" "body";
  }
  .service-hero-media { max-width: 520px; margin: 0 auto; width: 100%; aspect-ratio: 16/10; }
  .service-hero-body { padding-top: 1.6rem; }
  .service-features { grid-template-columns: 1fr; }
  .integral-features { grid-template-columns: 1fr; }
  .any-size-note { flex-direction: column; align-items: flex-start; text-align: left; margin-top: -.5rem; }
  .rental-modes { grid-template-columns: repeat(2, 1fr); }
  .ss-grid { grid-template-columns: 1fr; }
  .ss-grid-3 { grid-template-columns: 1fr; }

  /* Dashboard: colapsa sidebar arriba */
  .dp-body { grid-template-columns: 1fr; min-height: 0; }
  .dp-sidebar { border-right: 0; border-bottom: 1px solid #eceef1; }
  .dp-kpi-row-4 { grid-template-columns: repeat(2, 1fr); }
  .dp-kpi-row-5 { grid-template-columns: repeat(2, 1fr); }
  .dp-kpi-row-6 { grid-template-columns: repeat(2, 1fr); }
  .dp-hero-row { grid-template-columns: 1fr; }
  .dp-loan-row { grid-template-columns: 1fr; }
  .dp-h-value-xl { font-size: 1.9rem; }
  .dp-property-header { flex-direction: column; align-items: flex-start; }
  .dp-incident {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date   amount"
      "text   text"
      "status status";
    gap: .35rem .8rem;
  }
  .dp-incident-date { grid-area: date; }
  .dp-incident-amount { grid-area: amount; text-align: right; }
  .dp-incident-text { grid-area: text; }
  .dp-incident-status { grid-area: status; justify-self: start; }
  .dp-spread-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }
  .dp-spread-vs { display: none; }
  .dp-spread-value { font-size: 1.7rem; }
  .dp-spread-value-big { font-size: 2.1rem; }
  .service-note { grid-template-columns: 1fr; text-align: left; }
  .service-note .sn-icon { margin-bottom: .2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.2rem 24px 2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--t-base);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
  }
  .site-nav ul li {
    border-top: 1px solid var(--line);
  }
  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
  }
  .lang-switcher { align-self: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .about-badge {
    width: 90px;
    height: 90px;
    right: -10px;
    bottom: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
