/* ===========================================================================
   Kuros 2000 — hoja de estilos principal
   Paleta tomada del logo: K roja, UROS plata, 2000 negro.
   Estética limpia inspirada en 11ars.com.
   =========================================================================== */

@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/satoshi-300.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/satoshi-700.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/satoshi-900.woff2") format("woff2"); }

:root {
  --red: #c8102e;
  --red-dark: #9e0b22;
  --red-soft: #fce9ec;
  --ink: #16181d;
  --charcoal: #24272e;
  --slate: #4b5058;
  --muted: #7b818c;
  --line: #ececef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-card: #ffffff;
  --bg-dark: #16181d;
  --silver: #c3c7cf;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(30,25,20,.10);
  --shadow-sm: 0 6px 22px rgba(30,25,20,.06);
  --maxw: 1280px;
  --header-h: 92px;
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.04; font-weight: 500; letter-spacing: -.035em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
/* Titular display al estilo 11ars: enorme, fino y muy apretado */
.display { font-size: clamp(3rem, 9vw, 7rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--red { background: linear-gradient(135deg, #d81730 0%, #b30d26 100%); color: #fff; }
.section--red h1, .section--red h2, .section--red h3 { color: #fff; }
.section--tight { padding: 44px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700;
  color: var(--red);
}
.eyebrow span { display: none; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.14rem; margin-top: 16px; font-weight: 400; }
.lead { color: var(--slate); font-size: 1.18rem; font-weight: 400; }

/* ---- Botones ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .95rem; padding: 13px 24px; border-radius: 999px;
  border: 1.6px solid transparent; cursor: pointer; transition: .18s ease;
  font-family: inherit; white-space: nowrap;
  position: relative;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,16,46,.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
@property --wa-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-whatsapp {
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .9rem; padding: 11px 20px; border-radius: 999px;
  color: #fff; border: 2.5px solid transparent;
  background:
    linear-gradient(var(--red), var(--red)) padding-box,
    conic-gradient(from var(--wa-angle), var(--red-dark) 0deg, #000 42deg, #000 62deg, var(--red-dark) 104deg, var(--red-dark) 360deg) border-box;
  animation: wa-border-spin 2.6s linear infinite;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
@keyframes wa-border-spin { to { --wa-angle: 360deg; } }
.btn-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 24px rgba(200,16,46,.35); }
.btn-whatsapp svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) { .btn-whatsapp { animation: none; border-color: #000; } }

/* ---- Header / navegación ----------------------------------------------- */
/* Barra superior (teléfono, email y redes) */
.topbar { background: var(--ink); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); font-weight: 500; }
.topbar-item:hover { color: #fff; }
.topbar-item svg { width: 15px; height: 15px; color: #e8626f; }
.topbar-social { display: inline-flex; align-items: center; gap: 8px; }
.topbar-ic { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.22); transition: .2s ease; }
.topbar-ic:hover { background: var(--red); border-color: var(--red); color: #fff; }
.topbar-ic svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .topbar { font-size: .78rem; }
  .topbar-inner { min-height: 36px; }
  .topbar-left .topbar-item:first-child { display: none; } /* oculta el email (largo); deja teléfono */
  .topbar-left { gap: 14px; }
  .topbar-ic { width: 25px; height: 25px; }
}

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(247,245,244,.82);
  backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-drop > a {
  padding: 9px 13px; font-weight: 600; font-size: .98rem; text-transform: none; letter-spacing: -.01em;
  color: var(--charcoal); border-radius: 8px; transition: .15s; position: relative;
}
.nav > a:hover, .nav-drop:hover > a { color: var(--red); }
.nav > a.active { color: var(--red); }
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s;
}
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-drop-menu a { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--charcoal); }
.nav-drop-menu a:hover { background: var(--bg-soft); color: var(--red); }
.nav-drop-menu--icons { min-width: 268px; }
.nav-drop-menu--icons a { gap: 12px; }
.nav-drop-menu--icons a img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.nav-drop-menu--icons a .nav-ic { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--red-soft); color: var(--red); }
.nav-drop-menu--icons a .nav-ic svg { width: 20px; height: 20px; }
.nav-contacto { display: inline-flex; align-items: center; gap: 6px; }
.nav-contacto-ic { display: inline-flex; color: var(--red); }
.nav-contacto-ic svg { width: 17px; height: 17px; }
.nav .nav-campaign { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px 7px 12px; border-radius: 999px; background: #fff; color: var(--red); font-weight: 700; border: 1px solid rgba(200,16,46,.4); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.nav-campaign-ic { display: inline-flex; }
.nav-campaign-ic svg { width: 17px; height: 17px; }
.nav .nav-campaign:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(200,16,46,.18); }
.nav .nav-campaign.active { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.campaign-badge { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 8px 24px rgba(0,0,0,.18); margin-bottom: 16px; }
.campaign-badge svg { width: 32px; height: 32px; }
/* Título del hero de campaña más contenido */
.hero.hero--campaign h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; margin-bottom: 16px; }
.hero.hero--campaign .hero-inner > p { font-size: 1.12rem; max-width: 620px; }
/* Intro con foto */
.campaign-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.campaign-intro-img img, .campaign-intro-img picture { display: block; width: 100%; height: 100%; }
.campaign-intro-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.campaign-intro-img img { object-fit: cover; height: 100%; }
/* Cuerpo del contenido: títulos contenidos y buen ritmo */
.campaign-body { max-width: 780px; margin: 0 auto; }
.campaign-body h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; margin: 38px 0 12px; }
.campaign-body h2:first-child { margin-top: 0; }
.campaign-body h3 { font-size: 1.14rem; color: var(--ink); margin: 24px 0 6px; }
.campaign-body p { margin-bottom: 14px; }
.campaign-body ul, .campaign-body ol { margin: 6px 0 18px; padding-left: 22px; }
.campaign-body li { margin-bottom: 7px; }
.campaign-h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; }
/* Banda de foto ancha */
.campaign-photo-band { max-width: 1000px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21/9; }
.campaign-photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Datos de contacto legibles (fondo claro) */
.campaign-contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.campaign-contact-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.campaign-contact-list a { color: var(--ink); }
.campaign-contact-list a:hover { color: var(--red); }
.campaign-contact-list .feat-ic { color: var(--red); flex: none; }
@media (max-width: 820px) {
  .campaign-intro { grid-template-columns: 1fr; gap: 24px; }
  .campaign-intro-img { order: -1; }
  .campaign-photo-band { aspect-ratio: 16/9; }
}
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-social { display: inline-flex; align-items: center; gap: 8px; }
.social-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); transition: .2s ease; }
.social-ic:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.social-ic svg { width: 18px; height: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.header-phone svg { color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-close { display: none; }
.nav-backdrop { display: none; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img, .hero-bg video { position: absolute; top: -36%; left: 0; width: 100%; height: 172%; object-fit: cover; will-change: transform; }
.hero-bg video { pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(16,18,23,.92) 0%, rgba(16,18,23,.62) 48%, rgba(16,18,23,.30) 100%); }
/* Hero de las páginas de servicio: degradado más claro para que se vea la imagen */
.hero--service .hero-bg::after { background: linear-gradient(100deg, rgba(16,18,23,.46) 0%, rgba(16,18,23,.2) 50%, rgba(16,18,23,0) 100%); }
.hero--service .hero-inner .eyebrow, .hero--service .hero-inner h1, .hero--service .hero-inner > p { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
/* Botones destacados de venta/alquiler (hero de inmobiliaria) */
.hero-cta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.hero-cta-btn { display: inline-flex; align-items: center; gap: 16px; padding: 18px 34px 18px 20px; border-radius: 20px; font-weight: 800; font-size: 1.22rem; box-shadow: 0 18px 38px rgba(0,0,0,.26); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.hero-cta-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 26px 52px rgba(0,0,0,.34); }
.hero-cta-ic { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 15px; flex: none; }
.hero-cta-ic svg { width: 30px; height: 30px; }
.hero-cta-txt { display: flex; flex-direction: column; line-height: 1.14; }
.hero-cta-txt small { font-weight: 500; font-size: .85rem; opacity: .85; margin-top: 3px; }
.hero-cta-btn--sale { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.hero-cta-btn--sale:hover { filter: brightness(1.07); }
.hero-cta-btn--sale .hero-cta-ic { background: rgba(255,255,255,.22); color: #fff; }
.hero-cta-btn--rent { background: #fff; color: var(--ink); }
.hero-cta-btn--rent .hero-cta-ic { background: var(--red-soft); color: var(--red); }
@media (max-width: 520px) { .hero-cta-btn { width: 100%; font-size: 1.12rem; } }

/* Botones de compradores / vendedores (info-card) */
.info-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem; margin-top: 18px; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.info-btn svg { width: 20px; height: 20px; }
.info-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(200,16,46,.28); }
.info-btn--buy { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.info-btn--buy .info-btn-ic { color: #fff; }
.info-btn--sell { background: var(--ink); color: #fff; }
.info-btn--sell:hover { box-shadow: 0 16px 32px rgba(20,18,15,.32); }
.info-btn-ic { display: inline-flex; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; padding-top: 60px; padding-bottom: 60px; }
.hero-logo { width: min(440px, 72%); height: auto; margin-bottom: 26px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.35)); }
.hero h1 { color: #fff; margin-bottom: 22px; font-size: clamp(2.8rem, 7.2vw, 6rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.hero h1 em { color: #fff; font-style: normal; opacity: 1; }

/* HOME (/): brillo de degradado que recorre el lema */
.hero--home1 h1 em {
  background: linear-gradient(100deg, #fff 0%, #fff 34%, var(--red) 50%, #fff 66%, #fff 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: em-sheen 4.5s ease-in-out infinite;
}
@keyframes em-sheen { 0%, 100% { background-position: 135% 0; } 50% { background-position: -35% 0; } }

/* HOME2 (/home2): las palabras del lema aparecen una a una subiendo */
.hero--home2 h1 em { color: #fff; }
.hero--home2 h1 em .em-word { display: inline-block; opacity: 0; transform: translateY(.45em); animation: em-word-in .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes em-word-in { to { opacity: 1; transform: none; } }

/* HOME3 (/home3): lema bajo el logo con resplandor pulsante */
.hero .home3-tagline { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 46px; max-width: none; }
.hero .home3-tagline em { font-style: normal; color: #fff; animation: em-glow 2.6s ease-in-out infinite alternate; }
@keyframes em-glow { from { text-shadow: 0 0 4px rgba(255,255,255,.15); } to { text-shadow: 0 0 24px rgba(56,132,255,.9), 0 0 10px rgba(255,255,255,.5); } }
.hero-inner--home3 .hero-logo-center { margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  .hero--home1 h1 em { animation: none; -webkit-text-fill-color: #fff; color: #fff; background: none; }
  .hero--home2 h1 em .em-word { animation: none; opacity: 1; transform: none; }
  .home3-tagline em { animation: none; }
}
.hero p { font-size: 1.22rem; color: rgba(255,255,255,.85); max-width: 560px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Cabecera principal con los 4 iconos de servicios dentro (home2) */
.hero--home2 { min-height: 100vh; padding: calc(var(--header-h) + 30px) 0 50px; }
.hero-inner--home2 { max-width: 940px; }
.hero-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.hero-svc { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border-radius: 16px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); text-align: center; transition: .2s ease; }
.hero-svc:hover { background: rgba(255,255,255,.18); transform: translateY(-5px); }
.hero-svc img { height: 110px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.hero-svc span, .hero-svc-title { color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin: 0; }
@media (max-width: 720px) { .hero-services { grid-template-columns: 1fr 1fr; } .hero-svc img { height: 88px; } .hero-svc-title { font-size: 1.05rem; } }

/* Home3: logo centrado grande + 4 iconos, centrado vertical */
.hero--home3 { min-height: 100vh; display: flex; align-items: center; }
/* Hero claro (home principal): imagen a la vista, degradado mínimo como en la web de referencia */
.hero--clear .hero-bg::after { background: linear-gradient(180deg, rgba(23,14,11,.06) 42%, rgba(0,0,0,.32) 100%); }
/* Ocupa toda la pantalla (rellena), sin bordes laterales, sin zoom de parallax */
.hero--clear .hero-bg { background: var(--bg-dark); }
.hero--clear .hero-bg img, .hero--clear .hero-bg video { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none !important; }
@media (max-width: 760px) { .hero--clear .hero-bg img, .hero--clear .hero-bg video { object-position: center 30%; } }
.hero--clear .hero-logo-center { filter: drop-shadow(0 8px 34px rgba(0,0,0,.55)); }
.hero--clear .home3-tagline { text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero--clear .hero-svc span, .hero--clear .hero-svc-title { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
/* Home: sección con solo el formulario de contacto */
.contact-only { max-width: 720px; }
.hero--clear .hero-logo-center--color { filter: drop-shadow(0 0 20px rgba(255,255,255,.6)) drop-shadow(0 8px 22px rgba(0,0,0,.4)); }
/* Contacto en dos columnas (home) */
.contact-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-split-info .lead { margin-top: 12px; }
.contact-split-info h2.display { font-size: clamp(1.6rem, 3vw, 2.3rem); }
/* Botón de ver galería completa */
.gallery-cta { margin: -30px 0 40px; }
.gallery-cta .btn svg { width: 18px; height: 18px; }
.contact-split-list { list-style: none; margin: 24px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.contact-split-list li { display: flex; align-items: center; gap: 12px; color: var(--charcoal); font-weight: 500; }
.contact-split-list .feat-ic { flex: none; width: 40px; height: 40px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.contact-split-list a:hover { color: var(--red); }
.contact-split-form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.contact-h { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }
/* Consentimientos del formulario */
.form-consents { display: flex; flex-direction: column; gap: 7px; margin: 2px 0 12px; }
.consent { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; font-size: .8rem; line-height: 1.4; color: var(--slate); cursor: pointer; }
.consent input[type="checkbox"] { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.consent em { color: var(--red); font-style: normal; }
.hero-inner--home3 { max-width: 940px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo-center { width: min(560px, 80%); height: auto; margin-bottom: 54px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.4)); }
.hero-services--home3 { width: 100%; max-width: 860px; }

/* Buscador del hero */
.hero-search {
  margin-top: 38px; background: rgba(255,255,255,.97); border-radius: 16px; padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; box-shadow: var(--shadow);
}
.hero-search .field-inline { display: flex; flex-direction: column; padding: 6px 12px; text-align: left; }
.hero-search label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.hero-search select { border: 0; background: transparent; font-family: inherit; font-size: .96rem; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; }
.hero-search .btn { border-radius: 12px; }
.hero-search--simple { grid-template-columns: 1fr 1.5fr auto; }
.filters--simple { grid-template-columns: 1fr auto; max-width: 560px; }

/* ---- Botón flotante de contacto ---------------------------------------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(200,16,46,.4); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; position: relative; }
.fab-toggle:hover { background: var(--red-dark); transform: scale(1.05); }
.fab-toggle svg { width: 26px; height: 26px; }
.fab-toggle .fab-k { width: 30px; height: 30px; object-fit: contain; display: block; }
.fab-toggle-close { font-size: 2rem; line-height: 1; display: none; }
.fab.open .fab-toggle-open { display: none; }
.fab.open .fab-toggle-close { display: block; }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .22s ease; }
.fab.open .fab-menu { opacity: 1; visibility: visible; transform: none; }
.fab-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; font-family: inherit; transition: .15s; }
.fab-item:hover { transform: translateX(-3px); box-shadow: var(--shadow); }
.fab-ic { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.fab-ic svg { width: 19px; height: 19px; }
.fab-wa .fab-ic { background: #25d366; }
.fab-call .fab-ic { background: var(--ink); }
.fab-msg .fab-ic { background: var(--red); }

.fab-modal { position: fixed; inset: 0; z-index: 210; background: rgba(16,18,23,.55); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.fab-modal.open { display: flex; }
.fab-modal-box { background: #fff; border-radius: var(--radius); padding: 28px; width: 100%; max-width: 440px; position: relative; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; }
.fab-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.fab-modal-close:hover { color: var(--red); }
@media (max-width: 600px) { .fab { right: 16px; bottom: 16px; } .fab-toggle { width: 54px; height: 54px; } }

/* ---- Marquesina de texto (estilo 11ars) -------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; white-space: nowrap; }
.marquee--dark { background: var(--bg-dark); border-color: rgba(255,255,255,.1); }
.marquee-track { display: inline-flex; align-items: center; gap: 0; will-change: transform; animation: marquee-scroll 38s linear infinite; }
.marquee-item { font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 400; letter-spacing: -.03em; color: var(--ink); padding: 0 4px; }
.marquee--dark .marquee-item { color: #fff; }
.marquee-sep { font-size: 1.1rem; color: var(--red); margin: 0 28px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Chips de acceso rápido / localidades ------------------------------ */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip-row .badge { display: inline-flex; align-items: center; padding: 8px 15px; font-size: .74rem; line-height: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--charcoal);
  transition: .15s;
}
.chip:hover, .chip.active { border-color: var(--red); color: var(--red); }
.chip .n { color: var(--muted); font-weight: 600; }
.chip:hover .n, .chip.active .n { color: var(--red); }

/* ---- Grid de servicios (home) ------------------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  text-align: center; transition: .2s; box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.service-card img { height: 138px; width: auto; margin: 0 auto 14px; object-fit: contain; transition: transform .25s ease; }
.service-card:hover img { transform: translateY(-5px) scale(1.04); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .92rem; }

/* ---- Bloques de servicio de la home (estilo test: planos, a la izquierda) --- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.svc-block { display: block; text-align: left; transition: transform .25s ease; }
.svc-block img { height: 150px; width: auto; margin-bottom: 16px; object-fit: contain; transition: transform .3s ease; }
.svc-block:hover img { transform: translateY(-6px) scale(1.03); }
.svc-block h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; margin-bottom: 8px; color: var(--ink); }
.svc-block p { color: var(--slate); font-size: 1rem; font-weight: 400; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---- Sección de declaración editorial (estilo 11ars) ------------------- */
.stmt { padding: 110px 0; }
.stmt-lead { font-size: 1.15rem; font-weight: 500; color: var(--red); margin-bottom: 12px; }
.stmt .display { max-width: 960px; color: var(--ink); }
.stmt-para { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.22; max-width: 1000px; color: var(--ink); }
.stmt-row { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 5vw, 70px); align-items: center; }
.stmt-art { flex: none; }
.stmt-art img { display: block; width: clamp(180px, 22vw, 300px); height: auto; filter: drop-shadow(0 22px 42px rgba(20,18,15,.16)); }
@media (max-width: 860px) { .stmt-row { grid-template-columns: 1fr; } .stmt-art { order: -1; display: flex; justify-content: center; } .stmt-art img { width: 150px; margin: 0 auto 6px; } }

/* ---- Stats -------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; color: var(--ink); letter-spacing: -.04em; white-space: nowrap; }
.stat .label { color: var(--muted); font-weight: 500; font-size: .96rem; }
.section--dark .stat .num, .section--red .stat .num { color: #fff; }
.section--dark .stat .label, .section--red .stat .label { color: rgba(255,255,255,.72); }
.section--dark .stat .num { color: #fff; }
.section--dark .stat .label { color: rgba(255,255,255,.6); }

/* ---- Tarjetas de inmueble ---------------------------------------------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.prop-card {
  background: transparent; border: none; box-shadow: none; border-radius: 0; overflow: visible;
  transition: transform .3s ease; display: flex; flex-direction: column;
}
/* Slider de inmuebles similares */
.prop-slider { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.prop-slider::-webkit-scrollbar { display: none; }
.prop-slide { flex: 0 0 clamp(280px, 32%, 380px); scroll-snap-align: start; }
.slider-nav { display: flex; gap: 8px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg-card); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: .15s; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { border-color: var(--red); color: var(--red); }
.prop-card:hover { transform: translateY(-5px); }
.prop-card-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius); }
.prop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: .6s ease; }
.prop-card:hover .prop-card-media img { transform: scale(1.05); }
.prop-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge {
  display: inline-block; white-space: nowrap; font-size: .72rem; font-weight: 700; padding: 5px 11px;
  border-radius: 999px; color: #fff; text-transform: uppercase; letter-spacing: .04em; backdrop-filter: blur(4px);
}
.badge-op { background: var(--ink); }
.badge-op.alquiler { background: var(--red); }
.badge-status { position: absolute; top: 12px; right: 12px; z-index: 2; }
.badge-reservado { background: #d98200; }
.badge-alquilado { background: #2b6ca3; }
.badge-vendido { background: #3b3f47; }
.prop-card-body { padding: 18px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.prop-title { font-size: 1.05rem; font-weight: 500; margin: 4px 0 4px; color: var(--charcoal); }
.prop-loc { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.prop-loc svg { color: var(--red); flex: none; }
.prop-specs {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--slate); font-size: .86rem; font-weight: 600;
}
.prop-specs span { display: inline-flex; align-items: center; gap: 6px; }
.prop-specs svg { color: var(--muted); }

/* ---- Barra de filtros --------------------------------------------------- */
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px;
  box-shadow: var(--shadow-sm); margin-bottom: 30px;
}
.filters .field { display: flex; flex-direction: column; padding: 4px 10px; }
.filters label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.filters select, .filters input {
  border: 0; background: transparent; font-family: inherit; font-size: .93rem; font-weight: 600;
  color: var(--ink); outline: none; padding: 3px 0; cursor: pointer; width: 100%;
}
.filters .field + .field { border-left: 1px solid var(--line); }
.result-count { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.result-count b { color: var(--ink); }

/* Filtro de localidades en botones */
.loc-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--bg-card); border: 1.5px solid var(--line); font-weight: 500; font-size: .95rem;
  color: var(--charcoal); transition: .18s ease; white-space: nowrap;
}
.loc-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.loc-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.loc-n { font-size: .82em; opacity: .6; font-weight: 600; }
.loc-chip.active .loc-n { opacity: .85; }

/* ---- Ficha de inmueble -------------------------------------------------- */
.detail-head { padding-top: 30px; padding-bottom: 10px; }
.breadcrumbs { color: var(--muted); font-size: .86rem; font-weight: 600; margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--red); }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.detail-title-row h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.detail-price { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; color: var(--red); white-space: nowrap; }

/* Mosaico de galería: 1 foto grande a la izquierda + 4 pequeñas (2x2) a la derecha */
/* Galería: imagen principal panorámica + fila de miniaturas.
   Las fotos de origen son ~2:1 (panorámicas), así la principal las muestra sin recortar. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 44px; }
.gallery a { display: block; overflow: hidden; position: relative; border-radius: 12px; background: var(--bg-soft); aspect-ratio: 3/2; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.gallery .more-photos { position: absolute; inset: 0; background: rgba(20,20,15,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; backdrop-filter: blur(1px); }
/* Variantes según nº de fotos */
.gallery--1 a:first-child { aspect-ratio: 2 / 1; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--2 a:first-child { grid-column: auto; aspect-ratio: 3 / 2; }
.gallery--3 { grid-template-columns: repeat(2, 1fr); }
.gallery--4 { grid-template-columns: repeat(3, 1fr); }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.spec {
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
.spec .spec-val { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.spec .spec-lbl { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.prose { color: var(--slate); font-size: 1.02rem; }
.prose p { margin-bottom: 14px; }
.features-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 16px; margin-top: 14px; }
.features-list li { list-style: none; display: flex; align-items: center; gap: 7px; color: var(--charcoal); font-weight: 500; font-size: .8rem; line-height: 1.3; text-transform: capitalize; }
.features-list .feat-ic { flex: none; width: 17px; height: 17px; margin: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--red); }
.features-list .feat-ic svg { width: 15px; height: 15px; display: block; }
@media (max-width: 560px) { .features-list { grid-template-columns: repeat(2, 1fr); gap: 5px 12px; } .features-list li { font-size: .78rem; } }
.detail-econ { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 16px; }
.detail-econ div { font-size: .95rem; }
.detail-econ .k { color: var(--muted); font-weight: 600; }
.detail-econ .v { color: var(--ink); font-weight: 700; }

.detail-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.prop-map { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 0; }
.kuros-marker { background: transparent; border: 0; }
.kuros-marker-inner { background: #fff; border: 2px solid var(--red); border-radius: 10px; padding: 5px 9px; box-shadow: 0 6px 16px rgba(0,0,0,.28); position: relative; }
.kuros-marker-inner img { height: 24px; width: auto; display: block; }
.kuros-marker-inner::after { content: ""; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 9px solid var(--red); }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card h3 { margin-bottom: 4px; }
.aside-card .ref { color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 16px; }

/* ---- Formularios -------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 10px; }
.form .field { display: flex; flex-direction: column; gap: 4px; }
.form label { font-size: .8rem; font-weight: 700; color: var(--charcoal); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .92rem; padding: 9px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink); outline: none; transition: .15s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form textarea { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alert { padding: 13px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.alert-ok { background: #e7f7ec; color: #1c7d3f; }
.alert-error { background: var(--red-soft); color: var(--red-dark); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--red); color: #fff; border-radius: 20px; padding: 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 6px; }

/* ---- Steps (11 pasos) --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.step { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--red); background: var(--red-soft); width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---- 11 pasos (estilo editorial 11ars) --------------------------------- */
.steps11 { border-top: 1px solid var(--line); }
.step11 { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: baseline; padding: 40px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.step11:hover { padding-left: 14px; }
.step11-num { font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; color: var(--red); }
.step11-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; color: var(--ink); }
.step11-body p { color: var(--slate); font-size: 1.1rem; max-width: 640px; }
@media (max-width: 720px) {
  .step11 { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .step11-num { font-size: 3rem; }
}

/* ---- Blog --------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.blog-card { display: flex; flex-direction: column; transition: transform .3s ease; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card-media { position: relative; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: .6s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-cat { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.blog-card-body { padding: 18px 2px 0; }
.blog-meta { color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.blog-card-body p { color: var(--slate); font-size: .96rem; }
.blog-readmore { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--red); }

/* Ficha de artículo */
.post-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); padding-bottom: 20px; }
.post-hero .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.post-hero .hero-bg img { position: absolute; top: -36%; left: 0; width: 100%; height: 172%; object-fit: cover; will-change: transform; }
.post-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,18,23,.9) 0%, rgba(16,18,23,.45) 55%, rgba(16,18,23,.35) 100%); }
.post-hero .hero-inner { position: relative; z-index: 2; padding-top: 50px; padding-bottom: 10px; }
.post-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -.03em; margin: 12px 0; }
.post-meta { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.post-content { max-width: 720px; font-size: 1.1rem; line-height: 1.75; }
.post-lead { font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 24px; line-height: 1.4; }
.post-content h2 { font-size: 1.7rem; font-weight: 600; margin: 34px 0 14px; letter-spacing: -.02em; }
.post-content h3 { font-size: 1.3rem; font-weight: 600; margin: 26px 0 10px; }
.post-content p { margin-bottom: 18px; color: var(--slate); }
.post-content ul, .post-content ol { margin: 0 0 18px 22px; color: var(--slate); display: flex; flex-direction: column; gap: 8px; }
.post-content blockquote { border-left: 3px solid var(--red); padding: 6px 0 6px 22px; margin: 26px 0; font-size: 1.25rem; font-weight: 500; color: var(--ink); font-style: italic; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-aside { position: sticky; top: calc(var(--header-h) + 16px); }

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { position: relative; background-color: var(--bg-dark); color: rgba(255,255,255,.88); padding: 60px 0 26px; }
.site-footer a { color: rgba(255,255,255,.88); }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.9); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/footer-bg.png?v=5") center bottom / cover no-repeat; opacity: 1; pointer-events: none; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer img.flogo { height: 64px; margin-bottom: 18px; }
.footer-h { color: #fff; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: .93rem; }
.footer-contact div { display: flex; gap: 10px; margin-bottom: 12px; font-size: .93rem; }
.footer-contact svg { color: var(--red); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 26px; font-size: .84rem; color: rgba(255,255,255,.75); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: rgba(255,255,255,.78); }
.footer-legal a:hover { color: #fff; }
.footer-credit { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: rgba(255,255,255,.72); }
.footer-credit a { color: #fff; font-weight: 600; }
.footer-credit .heartbeat { display: inline-flex; vertical-align: middle; color: var(--red); animation: heartbeat 1.3s ease-in-out infinite; transform-origin: center; }
.footer-credit .heartbeat svg { width: 15px; height: 15px; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.28); } 24% { transform: scale(1); } 36% { transform: scale(1.2); } 50% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .footer-credit .heartbeat { animation: none; } }
.footer-credit a:hover { color: var(--red); }

/* Aviso de cookies */
.cookie-consent { position: fixed; right: 20px; bottom: 20px; z-index: 300; width: 330px; max-width: calc(100vw - 32px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 60px -22px rgba(20,18,15,.4); opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-consent[hidden] { display: none; }
.cookie-consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie-consent__ico { width: 18px; height: 18px; flex: none; color: #fff; background: var(--red); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.cookie-consent__head span { font-weight: 700; font-size: .95rem; }
.cookie-consent p { font-size: .84rem; line-height: 1.55; color: var(--slate); margin-bottom: 16px; }
.cookie-consent p a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.cookie-consent p a:hover { color: var(--red-dark); }
.cookie-consent__acciones { display: flex; gap: 10px; }
.cookie-consent__btn { flex: 1; padding: 11px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-align: center; cursor: pointer; transition: background .2s, filter .2s, border-color .2s; }
.cookie-consent__btn--out { background: transparent; border: 1px solid var(--line); color: var(--slate); }
.cookie-consent__btn--out:hover { background: var(--bg-soft); color: var(--ink); }
.cookie-consent__btn--solido { background: var(--red); border: 1px solid var(--red); color: #fff; }
.cookie-consent__btn--solido:hover { background: var(--red-dark); border-color: var(--red-dark); }
@media (prefers-reduced-motion: reduce) { .cookie-consent { transition: opacity .01s linear; transform: none; } }
@media (max-width: 560px) { .cookie-consent { right: 12px; left: 12px; bottom: 12px; width: auto; } }

/* Páginas legales */
.legal { max-width: 760px; color: var(--slate); line-height: 1.7; font-size: 1rem; }
.legal-fecha { font-size: .86rem; color: var(--muted); margin-bottom: 26px; }
.legal h2 { font-size: 1.24rem; color: var(--ink); margin: 34px 0 10px; letter-spacing: -.01em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: 14px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--red-dark); }
.legal strong { color: var(--ink); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal ul li { margin-bottom: 7px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .9rem; }
.legal table th, .legal table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }

/* ---- Cursor personalizado ---------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor select, body.has-custom-cursor summary, body.has-custom-cursor label, body.has-custom-cursor .prop-card { cursor: none; }
  body.has-custom-cursor input, body.has-custom-cursor textarea { cursor: auto; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; display: flex; align-items: center; justify-content: center; will-change: transform; }
  /* Halo blanco sutil: el cursor rojo se adapta y se ve sobre fondos claros y oscuros */
  .cursor-dot { width: 7px; height: 7px; background: var(--red); box-shadow: 0 0 0 1.6px rgba(255,255,255,.6); transition: opacity .2s; }
  .cursor-ring { width: 34px; height: 34px; border: 1.8px solid var(--red); box-shadow: 0 0 0 1px rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.35); transition: width .22s ease, height .22s ease, background .22s, border-color .22s, box-shadow .22s, opacity .2s; }
  .cursor-ring.hovering { width: 58px; height: 58px; background: rgba(200,16,46,.12); border-color: var(--red); }
  .cursor-ring.labelled { width: 72px; height: 72px; background: var(--red); border-color: transparent; box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
  .cursor-ring.down { transform-box: fill-box; }
  .cursor-ring.down { filter: brightness(.9); }
  .cursor-label { opacity: 0; transform: scale(.8); font-size: .64rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .06em; transition: opacity .2s, transform .2s; white-space: nowrap; }
  .cursor-ring.labelled .cursor-label { opacity: 1; transform: none; }
  body.cursor-hidden .cursor-dot, body.cursor-hidden .cursor-ring { opacity: 0; }
}

/* ---- Lightbox ----------------------------------------------------------- */
.lb-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(12,14,18,.95); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.lb-stage { position: relative; flex: 0 1 auto; width: min(74vw, 1320px); height: 92vh; display: flex; align-items: center; justify-content: center; }
.lb-img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: 16px; right: 20px; z-index: 3; background: rgba(0,0,0,.4); border: 0; color: #fff; font-size: 1.8rem; width: 44px; height: 44px; border-radius: 50%; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--red); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer; transition: .15s; z-index: 2; }
.lb-nav:hover { background: var(--red); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); padding: 5px 12px; border-radius: 999px; color: #fff; font-weight: 600; font-size: .85rem; }
/* Galería lateral de miniaturas */
.lb-rail { flex: none; width: 108px; max-height: 94vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.lb-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }
.lb-thumb { border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: none; flex: none; height: 84px; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .6; transition: opacity .15s; }
.lb-thumb:hover img { opacity: .9; }
.lb-thumb.is-active { border-color: var(--red); }
.lb-thumb.is-active img { opacity: 1; }
@media (max-width: 760px) {
  .lb-overlay { flex-direction: column; padding: 12px; gap: 8px; }
  .lb-stage { height: auto; flex: 1; width: 100%; }
  .lb-img { max-height: 72vh; }
  .lb-rail { flex-direction: row; width: 100%; height: 78px; overflow-x: auto; overflow-y: hidden; }
  .lb-thumb { height: 70px; width: 92px; }
}

/* ---- Utilidades / animación revelado ----------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mt-0 { margin-top: 0; } .center { text-align: center; }

/* ===========================================================================
   Áreas de servicio (identidad por área)
   =========================================================================== */
.area-eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--area, var(--red)); margin-bottom: 10px; }

/* Hero de área con el icono ilustrado (estilo test) */
.area-hero-light { background: linear-gradient(160deg, var(--area-soft) 0%, var(--bg) 75%); padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.area-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.area-hero-text h1 { color: var(--ink); }
.area-hero-icon { display: flex; justify-content: center; }
.area-hero-icon img { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 20px 40px rgba(30,25,20,.18)); }
@media (max-width: 820px) {
  .area-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .area-hero-icon { order: -1; justify-content: center; }
  .area-hero-icon img { max-width: 190px; }
}

/* Hero de área (usa el arte SVG del concepto) */
.area-hero { position: relative; min-height: 62vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.area-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.area-hero .hero-bg img { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.area-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,18,23,.6) 0%, rgba(16,18,23,.32) 52%, rgba(16,18,23,.06) 100%); }
.area-hero .hero-inner { position: relative; z-index: 2; max-width: 660px; padding-top: 54px; padding-bottom: 54px; }
.area-hero h1 { color: #fff; margin-bottom: 16px; }
.area-hero p { font-size: 1.14rem; color: rgba(255,255,255,.88); max-width: 540px; }

/* Tarjetas de área en la home */
.area-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.area-card-art { aspect-ratio: 16/10; overflow: hidden; background: var(--area-soft); }
.area-card-art img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.area-card:hover .area-card-art img { transform: scale(1.06); }
.area-card-body { padding: 20px; }
.area-card-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.area-card-body p { color: var(--muted); font-size: .9rem; min-height: 40px; }
.area-card-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--area, var(--red)); }

/* Listado de áreas (página servicios) */
.area-list { display: flex; flex-direction: column; gap: 22px; }
.area-row { display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.area-row:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.area-row-art { overflow: hidden; background: var(--area-soft); min-height: 200px; }
.area-row-art img { width: 100%; height: 100%; object-fit: cover; }
.area-row-icon { display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(160deg, var(--area-soft), var(--bg-card)); }
.area-row-icon img { width: auto; height: auto; max-height: 160px; max-width: 180px; object-fit: contain; }
.area-row-body { padding: 28px; }
.area-row-body h2 { font-size: 1.4rem; margin-bottom: 8px; }
.area-row-body p { color: var(--muted); }

/* Servicios (lista con checks de acento) */
.area-services { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.area-services li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; color: var(--charcoal); }
.area-check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--area-soft, var(--red-soft)); color: var(--area, var(--red)); display: inline-flex; align-items: center; justify-content: center; }
.area-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; }
.area-svc-item { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.area-svc-item h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; }
.area-svc-item p { color: var(--slate); font-size: .96rem; }
@media (max-width: 780px) { .area-svc-grid { grid-template-columns: 1fr; } }

/* Accesos de la landing inmobiliaria */
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.access-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s; box-shadow: var(--shadow-sm); }
.access-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.access-ic { width: 66px; height: 66px; border-radius: 18px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.access-ic svg { width: 32px; height: 32px; }
.feat-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-ic svg { width: 30px; height: 30px; }
.access-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.access-card p { color: var(--muted); font-size: .94rem; }
.access-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--area, var(--red)); }

/* Compradores / vendedores */
.two-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 1.4rem; margin-bottom: 18px; }
.info-card .area-services { grid-template-columns: 1fr; gap: 12px; }

/* FAQ con menú lateral */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.faq-nav-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.faq-nav nav { display: flex; flex-direction: column; gap: 2px; }
.faq-nav-link { padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: .95rem; color: var(--slate); border-left: 2px solid transparent; transition: .15s; }
.faq-nav-link:hover { color: var(--red); }
.faq-nav-link.active { color: var(--red); background: var(--red-soft); }
.faq-group { scroll-margin-top: calc(var(--header-h) + 20px); margin-bottom: 44px; }
.faq-group > h2 { font-size: 1.6rem; margin-bottom: 16px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; } .faq-nav nav { flex-direction: row; flex-wrap: wrap; } .faq-nav-link { border-left: 0; border: 1px solid var(--line); } }

/* FAQ acordeón */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 700; font-size: 1.02rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--area, var(--red)); border-radius: 2px; transition: .2s; }
.faq-icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq-icon::after { top: 3px; left: 10px; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-body { padding: 0 4px 20px; color: var(--slate); }
.faq-body p { margin: 0; }

/* ===========================================================================
   Panel de gestión
   =========================================================================== */
.admin-body { background: var(--bg-soft); }
.admin-topbar {
  position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 62px;
}
.admin-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.admin-brand img { height: 30px; background: #fff; padding: 3px 6px; border-radius: 6px; }
.admin-brand span { color: rgba(255,255,255,.7); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.admin-topbar-right .admin-link { color: rgba(255,255,255,.8); }
.admin-topbar-right .admin-link:hover { color: #fff; }
.admin-user { color: rgba(255,255,255,.6); }
.admin-topbar .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.admin-topbar .btn-outline:hover { border-color: #fff; }
.admin-main { padding: 30px 24px 80px; }
.admin-wrap { max-width: 1150px; margin: 0 auto; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.7rem; }
.admin-sub { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.admin-back { color: var(--muted); font-weight: 600; font-size: .88rem; display: inline-block; margin-bottom: 4px; }
.admin-back:hover { color: var(--red); }

/* Panel de inmuebles con filtro lateral */
.admin-wrap:has(.admin-layout) { max-width: 1340px; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.admin-sidebar { position: sticky; top: 20px; }
.admin-filter-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 11px; }
.af-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 11px; }
.af-search:focus-within { border-color: var(--red); }
.af-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.af-search input { border: none; outline: none; padding: 10px 0; width: 100%; font-family: inherit; font-size: .92rem; background: none; }
.af-group { display: flex; flex-direction: column; gap: 4px; }
.af-group > label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.af-group input, .af-group select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; font-family: inherit; font-size: .88rem; width: 100%; }
.af-group input:focus, .af-group select:focus { border-color: var(--red); outline: none; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.af-more { border-top: 1px solid var(--line); padding-top: 4px; }
.af-more > summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--red); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.af-more > summary::-webkit-details-marker { display: none; }
.af-more > summary::before { content: "＋"; font-weight: 700; }
.af-more[open] > summary::before { content: "－"; }
.af-more-body { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.af-features { max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.af-feat { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--charcoal); cursor: pointer; }
.af-feat input { width: auto; }
.af-actions { display: flex; gap: 8px; margin-top: 4px; }
.af-actions .btn { flex: 1; }
.admin-result-count { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.admin-bulkbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); }
.admin-bulkbar[hidden] { display: none; }
.admin-bulk-selall { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.admin-bulk-count { font-size: .88rem; opacity: .85; }
.admin-bulk-count b { color: #fff; }
.admin-bulk-actions { display: inline-flex; gap: 8px; margin-left: auto; }
.admin-bulk-del { background: #fff; color: var(--red); border: 1px solid #fff; }
.admin-bulk-del:hover { background: var(--red); color: #fff; border-color: var(--red); }
.admin-bulk-status { font-size: .84rem; opacity: .9; width: 100%; }
.admin-bulk-status:empty { display: none; }
.admin-status-sel { border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: .74rem; padding: 4px 8px; border-radius: 999px; font-family: inherit; }
.admin-status-sel:focus { outline: 2px solid var(--red); }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: static; } }

/* Badge de nuevos leads en el menú */
.admin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle; }

/* Leads */
.lead-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lead-tab { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; background: #fff; border: 1px solid var(--line); color: var(--slate); }
.lead-tab:hover { border-color: var(--red); color: var(--red); }
.lead-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.lead-list { display: flex; flex-direction: column; gap: 12px; }
.lead-card { display: flex; gap: 16px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--silver); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.lead-card.lead-nuevo { border-left-color: var(--red); }
.lead-card.lead-atendido { border-left-color: #1c7d3f; }
.lead-card.lead-descartado { border-left-color: var(--silver); opacity: .72; }
.lead-card-main { min-width: 0; flex: 1; }
.lead-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lead-name { font-size: 1.05rem; color: var(--ink); }
.lead-dept { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--red); background: var(--red-soft); padding: 3px 9px; border-radius: 999px; }
.lead-date { font-size: .82rem; color: var(--muted); margin-left: auto; }
.lead-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lead-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--charcoal); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; }
.lead-chip svg { width: 15px; height: 15px; color: var(--red); }
.lead-chip:hover { border-color: var(--red); color: var(--red); }
.lead-chip-wa { color: #1f9d55; } .lead-chip-wa svg { color: #1f9d55; }
.lead-chip-src { color: var(--muted); font-weight: 500; }
.lead-msg { font-size: .92rem; line-height: 1.55; color: var(--slate); background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin: 0; white-space: pre-line; }
.lead-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.lead-status-sel { cursor: pointer; font-weight: 700; font-size: .76rem; padding: 6px 10px; border-radius: 999px; font-family: inherit; border: 1px solid transparent; }
.pill-lead-nuevo { background: var(--red-soft); color: var(--red); }
.pill-lead-atendido { background: #e7f7ec; color: #1c7d3f; }
.pill-lead-descartado { background: #eceef1; color: #545a63; }
.lead-del { border: none; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.lead-del:hover { background: var(--red-soft); color: var(--red); }
@media (max-width: 640px) { .lead-card { flex-direction: column; } .lead-card-side { flex-direction: row; align-items: center; } }

/* Marketing / métricas */
.mk-filters { display: flex; flex-wrap: wrap; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.mk-fgroup { display: flex; flex-direction: column; gap: 7px; }
.mk-lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mk-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-seg a { font-size: .84rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--slate); }
.mk-seg a:hover { border-color: var(--red); color: var(--red); }
.mk-seg a.active { background: var(--red); border-color: var(--red); color: #fff; }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.mk-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.mk-num { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.mk-slbl { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.mk-card h2 { font-size: 1rem; margin: 0 0 18px; color: var(--slate); }
.mk-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.mk-bar { flex: 1; background: linear-gradient(var(--red), var(--red-dark)); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .88; }
.mk-bar:hover { opacity: 1; }
.mk-chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; margin-top: 8px; }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mk-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mk-table td.mk-r { text-align: right; font-weight: 700; color: var(--ink); width: 60px; }
.mk-mini { background: var(--bg-soft); border-radius: 6px; height: 5px; overflow: hidden; margin-top: 5px; }
.mk-mini span { display: block; height: 100%; background: var(--red); }
.mk-empty { color: var(--muted); font-size: .9rem; }
.mk-hm-form { margin-bottom: 16px; }
.mk-visor { position: relative; width: 100%; height: 1400px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.mk-visor iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.mk-capa { position: absolute; inset: 0; pointer-events: none; }
.mk-punto { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: radial-gradient(circle, rgba(255,60,40,.5) 0%, rgba(255,140,0,.3) 45%, rgba(255,140,0,0) 75%); mix-blend-mode: multiply; }
@media (max-width: 760px) { .mk-two { grid-template-columns: 1fr; } .mk-filters { flex-direction: column; gap: 14px; } }

/* Modo de mapa: 3 casillas seleccionables (radios) */
.map-mode-opts { display: flex; flex-direction: column; gap: 8px; }
.map-mode-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; cursor: pointer; transition: .15s ease; }
.map-mode-opt:hover { border-color: var(--red); }
.map-mode-opt input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
.map-mode-opt span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.map-mode-opt b { font-size: .9rem; color: var(--ink); }
.map-mode-opt small { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.map-mode-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }

/* Fila de botones de subida de fotos */
.admin-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .admin-upload-row { grid-template-columns: 1fr; } }

/* Formulario de creación de usuarios: campos espaciados + botón a la derecha */
.user-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
.user-form-row .field { flex: 1; min-width: 170px; }
.user-form-row .btn { flex: none; margin-left: auto; }
@media (max-width: 620px) { .user-form-row .btn { margin-left: 0; width: 100%; } }

/* Etiqueta de eficiencia energética (escala A→G) */
.energy-label { max-width: 360px; }
.energy-scale { display: flex; flex-direction: column; gap: 3px; }
.energy-band { position: relative; height: 26px; width: var(--ew); min-width: 90px; background: var(--eb); border-radius: 0 4px 4px 0; display: flex; align-items: center; }
.energy-letter { color: #fff; font-weight: 800; font-size: .85rem; padding-left: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.energy-band.is-active { height: 32px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.energy-band.is-active .energy-letter { font-size: 1rem; }
.energy-arrow { position: absolute; right: -2px; transform: translateX(100%); background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; padding: 4px 12px 4px 16px; border-radius: 3px; margin-left: 10px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.energy-caption { margin-top: 12px; font-size: .95rem; color: var(--slate); }
.energy-caption strong { color: var(--ink); }

.admin-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-filters input[type=search], .admin-filters select {
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit;
  font-size: .92rem; background: #fff; outline: none;
}
.admin-filters input[type=search] { min-width: 240px; flex: 1; }
.admin-filters input:focus, .admin-filters select:focus { border-color: var(--red); }

.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.admin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 13px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 11px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--bg-soft); }
.admin-table .admin-cb-col { width: 34px; text-align: center; padding-left: 8px; padding-right: 0; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 76px; }
.admin-cb, .admin-cb-all { width: 17px; height: 17px; cursor: pointer; accent-color: var(--red); }
.admin-thumb { width: 64px; height: 48px; max-width: none; object-fit: cover; border-radius: 7px; background: var(--bg-soft); display: block; }
.admin-row-title { font-weight: 700; color: var(--ink); display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-title:hover { color: var(--red); }
.admin-row-sub { color: var(--muted); font-size: .76rem; display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin-icon-link { color: var(--muted); font-size: 1.1rem; padding: 4px; }
.admin-icon-link:hover { color: var(--red); }
.admin-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px 8px; border-radius: 7px; }
.admin-del:hover { background: var(--red-soft); color: var(--red); }
.admin-empty { padding: 40px; text-align: center; color: var(--muted); }
.pill { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-disponible { background: #e7f7ec; color: #1c7d3f; }
.pill-reservado { background: #fdf0dd; color: #b56a00; }
.pill-vendido { background: #eceef1; color: #545a63; }
.pill-pendiente { background: #fde8e8; color: #b3261e; margin-left: 6px; vertical-align: middle; }

/* Formulario de inmueble */
.admin-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.admin-panel h3 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-col-side .admin-panel { position: sticky; top: 78px; }
.admin-grid-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.admin-check input { width: 18px; height: 18px; accent-color: var(--red); }
.admin-save-row { margin-top: 16px; }
.admin-hint { color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* Editor de artículos del blog */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.editor-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 11px; font-size: .88rem; cursor: pointer; font-family: inherit; color: var(--charcoal); transition: .15s; }
.editor-toolbar button:hover { border-color: var(--red); color: var(--red); }
.editor { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px 20px; min-height: 380px; font-size: 1.02rem; line-height: 1.7; color: var(--slate); outline: none; background: #fff; }
.editor:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.editor h2 { font-size: 1.5rem; font-weight: 600; margin: 20px 0 10px; color: var(--ink); }
.editor h3 { font-size: 1.2rem; font-weight: 600; margin: 16px 0 8px; color: var(--ink); }
.editor p { margin-bottom: 14px; }
.editor ul, .editor ol { margin: 0 0 14px 22px; }
.editor blockquote { border-left: 3px solid var(--red); padding-left: 16px; margin: 16px 0; font-style: italic; color: var(--ink); }
.editor a { color: var(--red); text-decoration: underline; }
.blog-cover-preview { aspect-ratio: 3/2; border-radius: 10px; background: var(--bg-soft); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
.blog-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-del-post { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px 8px; border-radius: 7px; }
.admin-del-post:hover { background: var(--red-soft); color: var(--red); }

.totp-secret { font-family: "Courier New", monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; margin: 14px 0; color: var(--ink); }

/* Aviso de guía en el dashboard */
.admin-guide-banner { display: flex; align-items: center; gap: 14px; background: var(--red-soft); border: 1px solid #f3c9d0; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; color: var(--ink); font-size: .95rem; transition: .15s; }
.admin-guide-banner:hover { border-color: var(--red); }
.admin-guide-ico { font-size: 1.4rem; }
.admin-guide-arrow { margin-left: auto; color: var(--red); font-weight: 700; white-space: nowrap; }

/* Guía paso a paso */
/* Revisor de fichas duplicadas */
.dup-h { font-size: 1.15rem; color: var(--ink); margin: 26px 0 4px; }
.dup-block { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 14px; }
.dup-key { font-size: .88rem; color: var(--slate); margin-bottom: 8px; }
.dup-group { display: flex; flex-direction: column; gap: 8px; }
.dup-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--bg-soft); }
.dup-item .admin-thumb { flex: none; }
.dup-item-body { flex: 1; min-width: 0; }
.dup-item-body .admin-row-sub { white-space: normal; }
.dup-item-actions { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 620px) { .dup-item { flex-wrap: wrap; } }

/* Botón flotante de editar (solo visible con sesión de admin) */
.admin-edit-fab { position: fixed; left: 20px; bottom: 20px; z-index: 600; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: .88rem; padding: 11px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.32); transition: transform .18s ease, background .18s ease; }
.admin-edit-fab:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.admin-edit-fab svg { width: 16px; height: 16px; }
.admin-fab-group { position: fixed; left: 20px; bottom: 20px; z-index: 600; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.admin-fab-group .admin-edit-fab { position: static; }
.admin-edit-fab--alt { border: none; cursor: pointer; font-family: inherit; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.admin-edit-fab--alt:hover { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 560px) { .admin-fab-group { left: 14px; bottom: 14px; } .admin-edit-fab { font-size: .82rem; padding: 9px 14px; } }
/* Mini-modal de admin (cambiar visualización del mapa) */
.admin-mini-modal { position: fixed; inset: 0; z-index: 9997; background: rgba(12,14,18,.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.admin-mini-modal.open { display: flex; }
.admin-mini-box { position: relative; background: #fff; border-radius: var(--radius); padding: 26px; width: 100%; max-width: 400px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.admin-mini-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.admin-mini-close:hover { color: var(--red); }
.admin-mini-select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem; margin-bottom: 14px; }
.admin-mini-select:focus { border-color: var(--red); outline: none; }
.admin-mini-status { font-size: .88rem; color: var(--slate); min-height: 20px; margin-bottom: 10px; }

/* Mapa de inmuebles (zonas de Madrid) */
.map-filter { display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); }
.map-filter-btn { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--slate); padding: 9px 18px; border-radius: 999px; transition: .15s ease; }
.map-filter-btn span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bg-soft); color: var(--slate); font-size: .78rem; }
.map-filter-btn:hover { color: var(--red); }
.map-filter-btn.active { background: var(--red); color: #fff; }
.map-filter-btn.active span { background: rgba(255,255,255,.25); color: #fff; }
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.map-title { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.map-sub { color: var(--muted); font-size: .94rem; margin-top: 6px; max-width: 640px; }
.zonemap { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: stretch; }
.zonemap-map-wrap { min-width: 0; }
.zonemap-map { height: 74vh; min-height: 560px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 0; }
.zone-marker { background: none; border: none; }
.zone-marker-in, .leaflet-container a.zone-marker-in { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff !important; font-weight: 800; font-size: .95rem; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 6px 16px rgba(200,16,46,.45); transition: transform .15s ease; }
.zone-marker-in:hover { transform: scale(1.12); }
.zonemap-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; }
.zonemap-panel-head { text-align: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.zonemap-total { font-size: 2.4rem; font-weight: 800; color: var(--red); line-height: 1; }
.zonemap-total-lbl { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.zonemap-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; margin-bottom: 12px; }
.zonemap-search:focus-within { border-color: var(--red); }
.zonemap-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.zonemap-search input { border: none; outline: none; padding: 11px 0; width: 100%; font-family: inherit; font-size: .95rem; background: none; }
.zonemap-list { overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.zone-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; transition: background .15s ease; }
.zone-item:hover { background: var(--red-soft); }
.zone-pin { display: inline-flex; color: var(--red); flex: none; }
.zone-pin svg { width: 18px; height: 18px; }
.zone-name { font-weight: 600; color: var(--ink); flex: 1; }
.zone-count { flex: none; min-width: 26px; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .82rem; border-radius: 999px; }
.zone-item:hover .zone-count { background: var(--red); }
.zone-empty { color: var(--muted); font-size: .9rem; padding: 12px; }
@media (max-width: 860px) { .zonemap { grid-template-columns: 1fr; } .zonemap-map { height: 420px; } .zonemap-list { max-height: 320px; } }

/* Slider infinito de Instagram */
.ig-section { padding: 46px 0 60px; overflow: hidden; }
.ig-section h2 svg { width: .9em; height: .9em; flex: none; }
.ig-marquee { display: block; overflow: hidden; margin-top: 26px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ig-track { display: flex; gap: 14px; width: max-content; animation: ig-scroll 45s linear infinite; }
.ig-marquee:hover .ig-track { animation-play-state: paused; }
.ig-item { position: relative; width: 220px; height: 220px; flex: none; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ig-item:hover img { transform: scale(1.07); }
.ig-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(200,16,46,0); opacity: 0; transition: .25s ease; }
.ig-item:hover .ig-ov { background: rgba(200,16,46,.38); opacity: 1; }
.ig-ov svg { width: 36px; height: 36px; }
@keyframes ig-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ig-track { animation: none; } }
@media (max-width: 560px) { .ig-item { width: 150px; height: 150px; } }

.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card-ico { font-size: 2rem; margin-bottom: 12px; }
.guide-card h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; }
.guide-card p { color: var(--slate); font-size: .92rem; line-height: 1.5; flex: 1; }
.guide-card-link { margin-top: 14px; color: var(--red); font-weight: 700; font-size: .9rem; }
.guide { margin-top: 10px; }
.guide-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide-num { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.guide-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.guide-body p { color: var(--slate); margin-bottom: 8px; }
.guide-body ul { margin: 6px 0 8px 18px; color: var(--slate); display: flex; flex-direction: column; gap: 6px; }
.guide-tip { background: var(--bg-soft); border-radius: 8px; padding: 10px 14px; font-size: .92rem; color: var(--charcoal); }
.guide-callout { background: var(--ink); color: #fff; border-radius: 14px; padding: 28px; margin-top: 26px; }
.guide-callout h3 { color: #fff; margin-bottom: 8px; }
.guide-callout p { color: rgba(255,255,255,.85); margin-bottom: 14px; }

/* Modal de recorte de fotos */
.crop-modal { position: fixed; inset: 0; z-index: 300; background: rgba(16,18,23,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.crop-box { background: #fff; border-radius: var(--radius); width: 100%; max-width: 640px; padding: 20px; box-shadow: var(--shadow); }
.crop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.05rem; }
.crop-count { color: var(--muted); font-size: .88rem; font-weight: 600; }
.crop-stage { background: var(--bg-soft); border-radius: 10px; overflow: hidden; }
.crop-stage img { max-width: 100%; display: block; }
.crop-stage .cropper-container { max-height: 56vh; }
.crop-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.crop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crop-modal.busy { pointer-events: none; opacity: .7; }

.geocode-status { display: inline-block; margin-left: 12px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.geocode-status.ok { color: #1c7d3f; }
.geocode-status.err { color: var(--red); }

.admin-feat-group { margin-bottom: 14px; }
.admin-feat-group-title { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.admin-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; }
.admin-feat { display: flex; align-items: center; gap: 7px; font-size: .88rem; cursor: pointer; color: var(--charcoal); }
.admin-feat input { width: 16px; height: 16px; accent-color: var(--red); flex: none; }
@media (max-width: 700px) { .admin-feat-grid { grid-template-columns: 1fr 1fr; } }

.admin-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.admin-gitem { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); cursor: grab; background: #fff; }
.admin-gitem.dragging { opacity: .4; }
.admin-gitem img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.admin-gitem-bar { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; font-size: .74rem; background: #fff; }
.admin-plan-toggle { display: flex; align-items: center; gap: 4px; color: var(--muted); cursor: pointer; }
.admin-gdel { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.admin-gdel:hover { color: var(--red); }
.admin-upload { display: block; }
.admin-upload-status { font-size: .84rem; color: var(--muted); margin-top: 8px; min-height: 18px; }

@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-col-side .admin-panel { position: static; }
  .admin-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 980px) {
  .services-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
  .two-info { grid-template-columns: 1fr; }
  .area-row { grid-template-columns: 1fr; }
  .area-row-art { min-height: 180px; aspect-ratio: 16/7; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .grid-2, .steps { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field + .field { border-left: 0; }
}
@media (max-width: 780px) {
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .header-social { display: none; }
  /* Sin backdrop-filter en móvil: si no, la cabecera se vuelve el bloque
     contenedor de los elementos fixed (menú y fondo) y los recorta. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247,245,244,.97); }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); background: #fff; flex-direction: column;
    align-items: stretch; padding: 24px 22px 40px; gap: 2px; transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -14px 0 48px rgba(0,0,0,.22); z-index: 200; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  /* Fondo oscuro que cierra al tocar fuera */
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(16,18,23,.5); z-index: 150;
    opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  /* Botón de cerrar (X) */
  .nav-close {
    display: flex; align-items: center; justify-content: center; align-self: flex-end;
    width: 42px; height: 42px; margin: -4px -6px 8px 0; padding: 0; border: 0; background: none;
    font-size: 34px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 10px;
  }
  .nav-close:hover { background: var(--bg-soft); color: var(--red); }
  /* Enlaces a lo ancho, con separadores para que se lea bien */
  .nav > a, .nav-drop > a { padding: 12px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav-drop > a { justify-content: space-between; }
  .nav-drop { border-bottom: 1px solid var(--line); }
  .nav-drop > a { border-bottom: 0; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 2px 0 8px 6px; min-width: 0; }
  .nav-drop:hover .nav-drop-menu { transform: none; }
  .nav-drop-menu--icons a { padding: 8px 10px; font-size: .9rem; }
  .nav-drop-menu--icons a img, .nav-drop-menu--icons a .nav-ic { width: 30px; height: 30px; }
  .nav-contacto { margin-top: 10px; }
  .nav-contacto.active, .nav .nav-contacto { border-bottom: 0; }
  .nav .nav-campaign { border-bottom: 0; align-self: flex-start; margin-top: 8px; }
  .nav-backdrop { display: block; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .services-grid, .stats-grid, .prop-grid, .spec-grid, .form-row, .area-services { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:first-child { grid-column: 1 / span 2; aspect-ratio: 2 / 1; }
  .gallery a:nth-child(n+4) { display: none; }
  .hero-search { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; }
}

/* ---- Ajustes específicos de móvil (revisión general) ------------------- */
.filter-select { display: none; }
@media (max-width: 640px) {
  /* Filtros (localidad / categorías) como desplegable, más recogido */
  .filter-select {
    display: block; width: 100%; margin-bottom: 24px; padding: 13px 44px 13px 16px;
    font-size: 1rem; font-weight: 600; color: var(--ink); background-color: #fff;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    -webkit-appearance: none; appearance: none; box-shadow: var(--shadow-sm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
  }
  .loc-filter { display: none; }

  /* Chips de localidad (inmobiliaria): en una sola fila con scroll */
  .chip-row--scroll {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    margin: 0 -20px; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chip-row--scroll::-webkit-scrollbar { display: none; }
  .chip-row--scroll .chip { flex: none; }

  /* Cabeceras y contenido no pegados a los bordes */
  .container { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding-top: 46px; padding-bottom: 46px; }
  .area-hero .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .area-hero { min-height: 52vh; }
  .hero { min-height: 74vh; }

  /* Servicio: icono centrado y con aire */
  .grid-2 { gap: 26px; text-align: center; }
  .grid-2 .center img { margin: 0 auto; max-height: 170px !important; }
  .grid-2 .btn { margin-left: auto; margin-right: auto; }

  /* Ficha: menos hueco entre galería y características */
  .gallery { margin: 16px 0 18px; }
  .gallery-cta { margin: 0 0 6px; }
  .detail-head { padding-top: 16px; }
  .detail-title-row { gap: 8px; }
  .detail-price { font-size: 1.7rem; }
  .section--tight { padding: 26px 0; }
  .spec-grid { margin: 4px 0 8px; gap: 10px; }
  .detail-econ { gap: 8px 22px; }

  /* Footer ordenado en móvil */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer img.flogo { height: 54px; margin-bottom: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { gap: 8px 18px; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}
