/* =========================================================================
   JPC · Jacobo Palacín Calavia — Inmobiliaria en Zaragoza
   Lenguaje visual: profesional, sobrio y elegante.
   Azul marino + grafito sobre fondo neutro · serif Fraunces para titulares
   + Inter para cuerpo · sombras frías neutras · micro-animaciones reales
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400;500;600;700;800&display=swap');

:root,
[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #efece3;
  --surface: #ffffff;
  --surface-2: #faf7f0;
  --text: #1a1813;
  --muted: #615d54;
  --muted-2: #857f74;
  --border: #e2dccc;
  --border-soft: #ece6d8;
  --accent: #a9802f;
  --accent-hover: #c8a45e;
  --accent-ink: #ffffff;
  --accent-soft: #f3ead7;
  --accent-2: #2a271f;
  --accent-2-soft: #efece3;
  --gold: #a9802f;
  --ok: #2f7d52;
  --shadow: 0 30px 60px -30px rgba(40,30,10,.20);
  --shadow-sm: 0 14px 30px -18px rgba(40,30,10,.14);
  --radius: 14px;
  --radius-sm: 9px;
  --pill: 980px;
  --ff-display: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "SF Mono", "Inter", monospace;
  --nav-h: 60px;
}

[data-theme="dark"] {
  --bg: #0c0c0c;
  --bg-2: #141414;
  --surface: #1a1a1a;
  --surface-2: #161616;
  --text: #f4f1ea;
  --muted: #9a958c;
  --muted-2: #6f6b62;
  --border: #2a2a2a;
  --border-soft: #222222;
  --accent: #c8a45e;
  --accent-hover: #dcc07c;
  --accent-ink: #1a1813;
  --accent-soft: rgba(200,164,94,.14);
  --accent-2: #c8c6c6;
  --accent-2-soft: #1a1a1a;
  --gold: #c8a45e;
  --ok: #5fb37c;
  --shadow: 0 30px 70px -30px rgba(0,0,0,.82);
  --shadow-sm: 0 14px 32px -18px rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--ff-body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em; overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.06; letter-spacing: -.03em; color: var(--text); }
/* Titulares editoriales: serif Fraunces solo en las piezas "de marca",
   los paneles funcionales (filtros, calculadora, admin) se quedan en Inter
   para no perder legibilidad ni parecer una plantilla genérica. */
.hero h1, .hero-portal h1, .hero--split h1, .section__head h2,
.detalle__layout h1, .about__text h2, .cta-band h2,
.login-card h1, .calc__hero h1 {
  font-family: var(--ff-display); font-weight: 600; letter-spacing: -.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 90vw); margin: 0 auto; }
.accent { color: var(--accent); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; display: inline-block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft); transition: background .3s, border-color .3s;
}
.nav__inner { display: flex; align-items: center; gap: 26px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .9rem; color: var(--accent-ink); background: var(--accent); border-radius: 11px; letter-spacing: -.02em; }
.brand__txt strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.brand__txt small { display: block; font-size: .72rem; color: var(--muted); }
.nav__links { display: flex; gap: 26px; margin-left: 10px; }
.nav__links a { font-size: .86rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__cta { font-size: .84rem; padding: 8px 16px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: .25s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 17px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero { min-height: 86vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(90px, 14vh, 150px) 20px 50px; }
.hero .eyebrow { font-size: 1.05rem; text-transform: none; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.7rem, 7.5vw, 5.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.03; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--muted); margin-top: 18px; max-width: 32ch; letter-spacing: -.02em; }
.hero__cta { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: center; }
.hero__cta .link { color: var(--accent); font-size: 1.08rem; }
.hero__cta .link:hover { text-decoration: underline; }
.scrollcue { margin-top: 50px; color: var(--muted-2); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; animation: bob 2.2s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scrollcue { animation: none; } }

/* ---------------- Buscador ---------------- */
.searchbar { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); position: relative; z-index: 5; }
.searchbar__row { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 500; color: var(--muted); }
.input { font-family: var(--ff-body); font-size: .96rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
textarea.input { resize: vertical; min-height: 110px; }

/* ---------------- Secciones ---------------- */
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head.left { text-align: left; margin-left: 0; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; margin: 10px 0 12px; letter-spacing: -.035em; }
.section__head p { color: var(--muted); font-size: 1.15rem; }

/* ---------------- Tarjetas de vivienda ---------------- */
.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.props-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(140deg, #e8ebf0, #d3d8e0); }
[data-theme="dark"] .card__media { background: linear-gradient(140deg, #0e1a2c, #0a1422); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted-2); }
.card__op { position: absolute; top: 12px; left: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: 3px; backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: color .2s, transform .2s; }
.card__fav:hover { transform: scale(1.08); color: var(--accent); }
.card__fav.on { color: var(--accent); }
.card__fav.on svg { fill: currentColor; }
.card__body { padding: 18px 20px 22px; }
.card__price { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.card__price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.card__title { display: block; font-size: 1.06rem; font-weight: 600; margin: 3px 0 8px; letter-spacing: -.02em; transition: color .2s; }
.card:hover .card__title { color: var(--accent); }
.card__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
.card__specs { display: flex; gap: 16px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: .86rem; }
.card__specs span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- Contacto ---------------- */
.contacto { background: var(--bg-2); }
.contacto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.contacto h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; margin: 12px 0 16px; letter-spacing: -.035em; }
.contacto p { color: var(--muted); margin-bottom: 28px; font-size: 1.1rem; }
.contacto__channels { display: flex; flex-direction: column; gap: 12px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); transition: .25s; }
.channel:hover { border-color: var(--accent); transform: translateX(4px); }
.channel__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.channel strong { display: block; font-size: .98rem; }
.channel span span { color: var(--muted); font-size: .82rem; }
.form-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 1.4rem; font-weight: 600; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-success { text-align: center; padding: 28px 10px; color: var(--ok); }
.form-success svg { color: var(--ok); margin-bottom: 8px; }

/* ---------------- Footer ---------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border-soft); padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 14px; font-weight: 600; }
.footer__grid a { display: block; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer__grid a:hover { color: var(--accent); }
.brand--footer .brand__mark { width: 36px; height: 36px; }
.footer__claim { color: var(--muted); margin-top: 14px; max-width: 32ch; }
.footer__zona { color: var(--muted-2) !important; font-size: .82rem; margin-top: 8px; }
.footer__legal { display: flex; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--border-soft); color: var(--muted-2); font-size: .82rem; }
.footer__legal a { color: var(--muted); }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25925a; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,146,90,.6); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   LISTADO
   ============================================================ */
.listado { padding: clamp(40px, 6vw, 72px) 0 80px; }
.listado__layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--nav-h) + 16px); }
.filters h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }
.filters .field { margin-bottom: 14px; }
.listado__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.listado__count { color: var(--muted); }
.listado__count strong { color: var(--text); font-size: 1.2rem; }

/* ============================================================
   DETALLE
   ============================================================ */
.detalle { padding: clamp(28px, 4vw, 48px) 0 80px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 44px; height: clamp(340px, 50vw, 520px); }
.gallery__main { position: relative; overflow: hidden; cursor: zoom-in; border-radius: var(--radius); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__main:hover img { transform: scale(1.04); }
.gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery__side > div { position: relative; overflow: hidden; cursor: zoom-in; background: var(--surface-2); border-radius: var(--radius); }
.gallery__side img { width: 100%; height: 100%; object-fit: cover; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; font-weight: 700; }
.gallery__empty { height: clamp(300px, 40vw, 440px); display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted-2); margin-bottom: 44px; }
.detalle__layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.detalle__layout h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 14px 0 10px; letter-spacing: -.035em; }
.detalle__layout h2 { font-size: 1.5rem; font-weight: 600; margin: 40px 0 18px; }
.detalle__loc { color: var(--muted); margin-bottom: 28px; }
.detalle__keyspecs { display: flex; flex-wrap: wrap; gap: 14px; padding: 24px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 32px; }
.keyspec { flex: 1; min-width: 90px; }
.keyspec strong { font-size: 1.7rem; font-weight: 700; display: block; letter-spacing: -.02em; }
.keyspec span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.detalle__desc { color: var(--muted); white-space: pre-line; }
.detalle__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feat { display: flex; align-items: center; gap: 10px; }
.feat svg { color: var(--accent); flex: none; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: .96rem; }
.specs-table td:first-child { color: var(--muted); }
.specs-table td:last-child { text-align: right; font-weight: 600; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 16px); }
.sidebar-card .price { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; }
.sidebar-card .price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.agent-mini { display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.agent-mini__av { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.agent-mini strong { display: block; font-size: .98rem; }
.agent-mini span { color: var(--muted); font-size: .84rem; }
.mortgage-hint { margin-top: 18px; padding: 16px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .9rem; }
.mortgage-hint b { font-size: 1.1rem; color: var(--accent); }

/* ============================================================
   CALCULADORA
   ============================================================ */
.calc { padding: clamp(40px, 6vw, 80px) 0; }
.calc__hero { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.calc__hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin: 14px 0 14px; letter-spacing: -.035em; }
.calc__hero p { color: var(--muted); font-size: 1.1rem; }
.calc__bank { display: inline-block; margin-top: 18px; font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border-soft); padding: 8px 16px; border-radius: var(--pill); }
.calc__bank b { color: var(--accent); }
.calc__layout { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.calc__panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 16px); }
.calc__panel h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }
.calc__toggle { display: flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.calc__toggle button { flex: 1; padding: 10px; border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 500; border-radius: 9px; cursor: pointer; transition: .2s; }
.calc__toggle button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.range-field { margin-bottom: 22px; }
.range-field__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range-field__top label { font-size: .9rem; color: var(--muted); }
.range-field__val { font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 4px; background: var(--surface-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--surface); }
.calc__cuota { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); }
.calc__cuota span { font-size: .9rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.calc__cuota strong { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 700; display: block; margin: 6px 0; line-height: 1; letter-spacing: -.03em; }
.calc__cuota small { opacity: .85; }
.calc__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.calc__cell { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 18px; }
.calc__cell label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.calc__cell strong { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.calc__breakdown { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.calc__breakdown h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
.calc__breakdown table { width: 100%; border-collapse: collapse; }
.calc__breakdown td { padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: .92rem; }
.calc__breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.calc__breakdown tr.total td { border-bottom: none; border-top: 2px solid var(--border); padding-top: 14px; font-weight: 700; color: var(--accent); }
.calc__disclaimer { color: var(--muted-2); font-size: .8rem; margin-top: 18px; line-height: 1.6; }

/* ============================================================
   ADMIN
   ============================================================ */
.adminbar { background: var(--surface); border-bottom: 1px solid var(--border-soft); padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.adminbar__inner { display: flex; align-items: center; gap: 14px; }
.adminbar h1 { font-size: 1.15rem; font-weight: 600; }
.adminbar nav { margin-left: auto; display: flex; gap: 18px; }
.adminbar nav a { color: var(--muted); font-size: .9rem; }
.adminbar nav a:hover { color: var(--accent); }
.badge { font-size: .68rem; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--accent); padding: 4px 10px; border-radius: var(--pill); }
.admin { padding: 34px 0 80px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.stat-box { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.stat-box strong { font-size: 2.4rem; font-weight: 700; display: block; line-height: 1; letter-spacing: -.03em; }
.stat-box span { color: var(--muted); font-size: .88rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.admin-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); padding: 14px 16px; border-bottom: 1px solid var(--border-soft); font-weight: 600; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; }
.mono { font-variant-numeric: tabular-nums; font-size: .92rem; }
.tag { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: var(--pill); font-weight: 600; }
.tag--on { background: color-mix(in srgb, var(--ok) 18%, transparent); color: #1c8c3e; }
.tag--off { background: var(--surface-2); color: var(--muted); }
.tag--dest { background: var(--accent-soft); color: var(--accent); }
.admin-side { position: sticky; top: 80px; }
.fieldset { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.fieldset__title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 600; }
.fieldset__num { font-size: .8rem; color: #fff; background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.fieldset__sub { color: var(--muted); font-size: .88rem; margin: 6px 0 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid--4 { grid-template-columns: repeat(4, 1fr); }
.field-lg { grid-column: 1 / -1; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); cursor: pointer; transition: .2s; text-align: center; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 16px; }
.preview-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-soft); }
.img-item { position: relative; }
.img-item form { position: absolute; top: 6px; right: 6px; }
.img-del { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .8rem; }
.img-del:hover { background: #d63b3b; }
.hint { display: block; color: var(--muted-2); font-size: .8rem; margin-top: 6px; }
.leads-list { display: flex; flex-direction: column; gap: 12px; max-height: 70vh; overflow-y: auto; }
.lead-item { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px; font-size: .9rem; }
.lead-item.unread { border-left: 3px solid var(--accent); }
.lead-item__head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.lead-item__head time { color: var(--muted-2); font-size: .78rem; }
.lead-item p { color: var(--muted); margin: 6px 0; }
.lead-item a { color: var(--accent); font-size: .84rem; margin-right: 10px; }

/* ============================================================
   LOGIN · 404 · LIGHTBOX
   ============================================================ */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 44px; max-width: 400px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.login-card .brand__mark { width: 54px; height: 54px; margin: 0 auto 18px; font-size: 1.2rem; }
.login-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.login-card p { color: var(--muted); margin-bottom: 24px; }
.login-card form { text-align: left; }
.login-err { background: color-mix(in srgb, #d63b3b 14%, transparent); color: #d63b3b; padding: 12px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 18px; }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(5rem, 16vw, 11rem); font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -.04em; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close, .lightbox .prev, .lightbox .next { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .contacto__grid, .detalle__layout, .calc__layout, .listado__layout, .admin-grid { grid-template-columns: 1fr; }
  .calc__panel, .sidebar-card, .filters, .admin-side { position: static; }
  .props-grid, .props-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .searchbar__row { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 20px 6vw; border-bottom: 1px solid var(--border-soft); gap: 6px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .props-grid, .props-grid--2, .checks, .form-grid, .form-grid--3, .form-grid--4, .calc__cards, .stat-row, .detalle__features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 140px; }
  .footer__grid, .searchbar__row { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
}

/* ============================================================
   HOME CLÁSICA · hero con retrato + valores sobrios
   ============================================================ */
.hero--split { text-align: left; min-height: auto; align-items: stretch; padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vw, 80px); }
.hero--split .wrap { width: min(1180px, 92vw); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero--split h1 { max-width: none; }
.hero--split .hero__cta { justify-content: flex-start; }
.hero__portrait { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 380px; }
.hero__portrait::before { content: ""; position: absolute; bottom: 0; left: 6%; right: 6%; height: 74%; border-radius: 14px;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border-soft); z-index: 0; }
.hero__portrait img { position: relative; z-index: 1; width: auto; max-height: min(560px, 64vh); object-fit: contain;
  filter: drop-shadow(0 34px 54px rgba(0,0,0,.16)); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.value { border-top: 1px solid var(--border); padding-top: 20px; }
.value .n { color: var(--accent); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.value h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 8px; }
.value p { color: var(--muted); font-size: .96rem; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero--split { text-align: center; }
  .hero--split .hero__cta { justify-content: center; }
  .hero__portrait { order: -1; min-height: 0; }
  .hero__portrait img { max-height: 46vh; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Hover premium en tarjetas: línea de acento */
.card { position: relative; }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.card:hover::after { width: 100%; }

/* ============================================================
   HOME PREMIUM · secciones extra + microefectos
   ============================================================ */
/* Reveal escalonado */
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* HERO premium */
.hero--split { position: relative; overflow: hidden; }
.hero--split::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); pointer-events: none; }
[data-theme="dark"] .hero--split::before { background: linear-gradient(180deg, #0c1830, #000); }
.hero--split .wrap { position: relative; z-index: 1; }
.hero__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 3px; font-size: .8rem; color: var(--muted); background: var(--surface); }
.hero__tag b { color: var(--accent); }


/* MARQUEE de zonas */
.marquee { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 18px 0; overflow: hidden; background: var(--surface); }
.marquee__track { display: flex; width: max-content; animation: marq 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__group span { padding: 0 26px; font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: -.01em; position: relative; white-space: nowrap; }
.marquee__group span::after { content: "·"; position: absolute; right: -4px; color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* STATS con contador */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-c { text-align: center; padding: 10px; }
.stat-c strong { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat-c strong span { font-size: inherit; color: inherit; display: inline; margin: 0; font-variant-numeric: tabular-nums; }
.stat-c > span { color: var(--muted); font-size: .92rem; margin-top: 8px; display: block; }

/* SERVICIOS */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.service { padding: 32px 28px; border-right: 1px solid var(--border-soft); transition: background .25s; position: relative; }
.service:last-child { border-right: none; }
.service:hover { background: var(--bg-2); }
.service__n { font-size: .8rem; color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.service h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin: 16px 0 10px; }
.service p { color: var(--muted); font-size: .95rem; }
.service__arrow { margin-top: 18px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: .25s; }
.service:hover .service__arrow { opacity: 1; transform: none; }

/* PROCESO (timeline) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: var(--border); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step__dot { width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 6px var(--bg); }
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band { background: linear-gradient(125deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 78%, var(--accent))); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.cta-band__txt { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; font-size: 1.1rem; }
.cta-band .btn { position: relative; z-index: 1; }
.btn--light { background: #fff; color: var(--accent-2); }
.btn--light:hover { background: #f0f0f0; }

/* Banner de confirmación (alertas email panel) */
.alert-banner { display: flex; gap: 16px; align-items: flex-start; background: var(--accent-2-soft); border: 1px solid color-mix(in srgb, var(--accent-2) 35%, var(--border-soft)); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; }
.alert-banner__ic { font-size: 1.4rem; line-height: 1; flex: none; }
.alert-banner strong { display: block; color: var(--accent-2); font-size: 1rem; margin-bottom: 4px; }
.alert-banner p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.alert-banner p b { color: var(--text); }

/* TESTIMONIOS */
.tts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tt { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; }
.tt__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; }
.tt p { font-size: 1.05rem; line-height: 1.6; }
.tt__who { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 12px; }
.tt__av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.tt__who strong { display: block; font-size: .95rem; }
.tt__who span { color: var(--muted); font-size: .84rem; }

@media (max-width: 980px) {
  .stats, .services, .process, .tts { grid-template-columns: repeat(2, 1fr); }
  .service { border-bottom: 1px solid var(--border-soft); }
  .service:nth-child(odd) { border-right: 1px solid var(--border-soft); }
  .service:nth-child(even) { border-right: none; }
  .process::before { display: none; }
}
@media (max-width: 560px) {
  .stats, .services, .process, .tts { grid-template-columns: 1fr; }
  .service { border-right: none; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   BUSCADOR POR MAPA (tipo Idealista)
   ============================================================ */
.mapbar { border-bottom: 1px solid var(--border-soft); background: var(--surface); position: sticky; top: var(--nav-h); z-index: 30; padding: 12px 0; }
.mapbar__form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mapbar__form .input { width: auto; min-width: 140px; padding: 10px 12px; }
.mapbar__form .input[type="number"] { min-width: 150px; }

.mapview { display: grid; grid-template-columns: minmax(360px, 38%) 1fr; height: calc(100vh - var(--nav-h) - 63px); }
.mapview__list { overflow-y: auto; border-right: 1px solid var(--border-soft); padding: 16px; background: var(--bg); }
.mapview__count { color: var(--muted); font-size: .92rem; margin: 4px 6px 14px; }
.mapview__count strong { color: var(--text); font-size: 1.1rem; }
.mapview__map { position: relative; }
#map { position: absolute; inset: 0; }

.mapcard { display: flex; gap: 14px; padding: 10px; border-radius: var(--radius); border: 1px solid transparent; margin-bottom: 8px; transition: background .2s, border-color .2s, transform .2s; }
.mapcard:hover, .mapcard.is-hover { background: var(--surface); border-color: var(--border-soft); }
.mapcard.is-active { border-color: var(--accent); background: var(--surface); }
.mapcard__img { width: 116px; height: 88px; flex: none; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--surface-2); display: grid; place-items: center; color: var(--muted-2); }
.mapcard__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mapcard__price { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.mapcard__price small { font-size: .76rem; color: var(--muted); font-weight: 400; }
.mapcard__title { font-weight: 600; font-size: .96rem; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapcard__meta { color: var(--muted); font-size: .84rem; }

/* Pines de precio */
.pin-wrap { background: none !important; border: none !important; }
.pin { display: inline-block; transform: translate(-50%, -120%); background: var(--text); color: var(--bg); font-weight: 700;
  font-size: .8rem; padding: 5px 10px; border-radius: 100px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.3);
  border: 2px solid var(--bg); cursor: pointer; transition: background .2s, transform .2s; }
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--text); margin-top: -1px; }
.pin--hot, .leaflet-marker-icon:hover .pin { background: var(--accent); color: #fff; transform: translate(-50%, -130%) scale(1.06); }
.pin--hot::after { border-top-color: var(--accent); }

/* Popup */
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; padding: 0 !important; overflow: hidden; }
.leaflet-popup-content { margin: 0 !important; width: 230px !important; }
.mappop__img { height: 120px; background-size: cover; background-position: center; }
.mappop__b { padding: 12px 14px; }
.mappop__price { font-size: 1.25rem; font-weight: 700; }
.mappop__t { font-weight: 600; font-size: .95rem; margin: 2px 0 4px; }
.mappop__m { color: var(--muted); font-size: .84rem; }
.mappop__link { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .9rem; }

.map-toggle { display: none; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 500;
  background: var(--text); color: var(--bg); border: none; padding: 12px 22px; border-radius: 100px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

@media (max-width: 860px) {
  .mapview { grid-template-columns: 1fr; position: relative; }
  .mapview__list { display: none; }
  .mapview.show-list .mapview__list { display: block; position: absolute; inset: 0; z-index: 400; }
  .map-toggle { display: block; }
  .mapbar__form .input { flex: 1; min-width: 120px; }
}

/* ============================================================
   HOME · portal limpio (hero buscador + zonas + asesor)
   ============================================================ */
.hero-portal { min-height: auto; padding: clamp(70px, 12vh, 130px) 0 clamp(40px, 6vw, 70px); text-align: center; position: relative; }
.hero-portal h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -.04em; max-width: 16ch; margin: 0 auto; }
.hero-portal .hero__lead { margin: 18px auto 0; }

/* Buscador grande del hero */
.hero-search { max-width: 860px; margin: 34px auto 0; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 14px; box-shadow: 0 30px 60px -34px rgba(0,0,0,.3); padding: 10px; display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto; gap: 8px; align-items: stretch; text-align: left; }
.hero-search .field { gap: 4px; padding: 8px 10px; }
.hero-search .field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.hero-search .input { border: none; background: transparent; padding: 4px 0; font-size: 1.02rem; font-weight: 500; }
.hero-search .input:focus { box-shadow: none; }
.hero-search .field + .field { border-left: 1px solid var(--border-soft); padding-left: 16px; }
.hero-search button { border-radius: 10px; font-size: 1.05rem; padding: 0 30px; }
.hero-tabs { display: inline-flex; gap: 4px; margin-bottom: 22px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.hero-tabs a { padding: 9px 20px; border-radius: 7px; font-size: .92rem; font-weight: 600; color: var(--muted); transition: .2s; }
.hero-tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Zonas */
.zonas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zona-chip { padding: 10px 18px; border: 1px solid var(--border); border-radius: 8px; font-weight: 500; color: var(--text);
  background: var(--surface); transition: .2s; }
.zona-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Tu asesor */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 18%; border-radius: 16px; box-shadow: var(--shadow); }
.about__photo .badge-float { position: absolute; right: -14px; bottom: 24px; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.about__photo .badge-float strong { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.about__photo .badge-float span { font-size: .82rem; color: var(--muted); }
.about__text h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; margin: 10px 0 16px; }
.about__text > p { color: var(--muted); font-size: 1.12rem; margin-bottom: 26px; max-width: 46ch; }
.about__list { display: grid; gap: 18px; }
.about__item { display: flex; gap: 14px; }
.about__item .ck { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.about__item h3 { font-size: 1.05rem; font-weight: 600; }
.about__item p { color: var(--muted); font-size: .95rem; }

@media (max-width: 820px) {
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search button { grid-column: 1 / -1; padding: 14px; }
  .hero-search .field + .field { border-left: none; padding-left: 10px; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 520px) { .hero-search { grid-template-columns: 1fr; } .hero-search .field + .field { border-top: 1px solid var(--border-soft); } }

/* ============================================================
   CARRUSEL DE FOTOS EN TARJETAS (estilo Idealista)
   ============================================================ */
.card__carousel { position: absolute; inset: 0; overflow: hidden; }
.card__track { display: flex; height: 100%; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card__slide { flex: 0 0 100%; height: 100%; }
.card__slide img { width: 100%; height: 100%; object-fit: cover; }
.card__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(6px);
}
.card__arrow--prev { left: 10px; }
.card__arrow--next { right: 10px; }
.card:hover .card__arrow { opacity: 1; }
.card__arrow:hover { background: var(--surface); color: var(--accent); }
.card__dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; display: flex; gap: 5px; justify-content: center; }
.card__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 3px rgba(0,0,0,.4); transition: .2s; }
.card__dot.on { background: #fff; width: 16px; border-radius: 4px; }
.card__tour { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; box-shadow: var(--shadow-sm); }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 4; }
.card__tour ~ .card__fav { top: 44px; }
.card__m2 { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.card__compare { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; font-size: .82rem; color: var(--muted); cursor: pointer; user-select: none; }
.card__compare input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.card__compare:hover { color: var(--accent); }
@media (hover: none) { .card__arrow { opacity: 1; } }

/* ============================================================
   NAV · favoritos con contador
   ============================================================ */
.nav__fav { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; transition: .25s; }
.nav__fav:hover { border-color: var(--accent); color: var(--accent); }
.nav__fav-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ============================================================
   MIGAS DE PAN
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--muted-2); }

/* ============================================================
   FICHA · barra de acciones (compartir / guardar)
   ============================================================ */
.detalle__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.detalle__actions { display: flex; gap: 10px; margin-bottom: 22px; }
.iconbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: .2s; }
.iconbtn:hover { border-color: var(--accent); color: var(--accent); }
.iconbtn.on { border-color: var(--accent); color: var(--accent); }
.iconbtn.on svg { fill: currentColor; }

/* ============================================================
   FILTROS AVANZADOS
   ============================================================ */
.filters__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filters__more { margin: 4px 0 14px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 6px 0; }
.filters__more summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 8px 0; color: var(--accent); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.filters__more summary::-webkit-details-marker { display: none; }
.filters__more summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.filters__more[open] summary::after { content: "–"; }
.filters__more[open] { padding-bottom: 14px; }
.filters__checks { display: flex; flex-direction: column; gap: 8px; max-height: 230px; overflow-y: auto; padding: 4px 2px; }
.filters__check { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text); cursor: pointer; }
.filters__check input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }

/* ============================================================
   BANDEJA DE COMPARACIÓN (flotante)
   ============================================================ */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -14px 30px -18px rgba(20,30,48,.3); padding: 14px 0; animation: trayUp .3s ease; }
@keyframes trayUp { from { transform: translateY(100%); } to { transform: none; } }
.compare-tray__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.compare-tray__label { color: var(--muted); font-size: .95rem; }
.compare-tray__label strong { color: var(--text); font-size: 1.1rem; }
.compare-tray__actions { display: flex; gap: 10px; }
.compare-tray .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   TABLA COMPARADOR
   ============================================================ */
.compare-scroll { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); text-align: center; vertical-align: middle; font-size: .92rem; }
.compare-table thead th { border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-rowhead { text-align: left !important; color: var(--muted); font-weight: 500; background: var(--surface-2); position: sticky; left: 0; z-index: 1; }
.compare-card { display: block; }
.compare-img { display: block; height: 110px; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.compare-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-noimg { display: grid; place-items: center; height: 100%; color: var(--muted-2); font-size: .8rem; }
.compare-card strong { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.compare-card strong small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.compare-name { display: block; font-size: .86rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.compare-remove { margin-top: 8px; border: none; background: none; color: var(--accent); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; }
.compare-yes { color: var(--ok); font-weight: 700; }
.compare-no { color: #c9756e; font-weight: 600; }
/* ===========================================================================
   Páginas nuevas: Quién soy, Seguros, Vender, Blog  (añadido)
   =========================================================================== */
.page { padding: calc(var(--nav-h, 70px) + 48px) 0 80px; }
.page__narrow { max-width: 760px; }
.page__head { margin-bottom: 32px; }
.page__head h1 { font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 8px 0 12px; }
.page__lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.page__media { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.page__media img { display: block; width: 100%; height: auto; }
.page__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.page__cta span { color: var(--muted); }
.page__split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .page__split { grid-template-columns: 1fr; gap: 32px; } }

.prose { color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft, var(--surface-2)); color: var(--accent); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* Seguros */
.seguros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.seguro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.seguro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm, 0 8px 24px rgba(0,0,0,.08)); }
.seguro-card--dest { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.seguro-card__icon { font-size: 2.2rem; margin-bottom: 12px; }
.seguro-card h3 { font-family: var(--ff-display); font-size: 1.5rem; margin: 0 0 4px; }
.seguro-card__sub { color: var(--accent); font-size: .9rem; font-weight: 600; margin: 0 0 12px; }
.seguro-card__desc { color: var(--muted); line-height: 1.6; flex: 1; }
.seguro-card__desc p { margin: 0 0 .8em; }
.seguro-card__link { margin-top: 16px; font-weight: 600; color: var(--accent); text-decoration: none; align-self: flex-start; }
.seguro-card__link:hover { text-decoration: underline; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm, 0 8px 24px rgba(0,0,0,.08)); }
.blog-card__media { display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__noimg { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; font-size: 2rem; color: var(--muted-2); letter-spacing: .1em; }
.blog-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.blog-card__body time { color: var(--muted-2); font-size: .8rem; font-family: var(--ff-mono); }
.blog-card__body h3 { font-family: var(--ff-display); font-size: 1.25rem; line-height: 1.2; margin: 0; }
.blog-card__body h3 a { color: var(--text); text-decoration: none; }
.blog-card__body h3 a:hover { color: var(--accent); }
.blog-card__body p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.blog-card__more { margin-top: auto; color: var(--accent); font-weight: 600; text-decoration: none; font-size: .9rem; }
.back-link { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: var(--accent); }
.post__meta { color: var(--muted-2); font-size: .85rem; font-family: var(--ff-mono); }

.empty { text-align: center; padding: 60px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Panel: tarjetas de gestión */
.manage-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.manage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: transform .2s, box-shadow .2s; }
.manage-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm, 0 8px 24px rgba(0,0,0,.08)); border-color: var(--accent); }
.manage-card__ic { font-size: 1.8rem; }
.manage-card strong { font-size: 1.05rem; }
.manage-card__n { color: var(--muted); font-size: .85rem; }

/* ===========================================================================
   Portada sencilla: foto + presentación + servicios  (añadido)
   =========================================================================== */
.home-hero { padding: calc(var(--nav-h, 72px) + 64px) 0 72px; }
.home-hero__inner {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 56px; align-items: center;
}
.home-hero__text .eyebrow { color: var(--accent); }
.home-hero__text h1 {
    font-family: var(--ff-display); font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.05; margin: 10px 0 4px;
}
.home-hero__role { color: var(--accent); font-weight: 600; font-size: 1.05rem; margin-bottom: 18px; }
.home-hero__claim { color: var(--muted); font-size: 1.12rem; line-height: 1.65; max-width: 46ch; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.home-hero__photo img {
    width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: var(--radius); margin-left: auto; display: block;
    box-shadow: var(--shadow, 0 30px 70px rgba(0,0,0,.18));
    border: 1px solid var(--border);
}
@media (max-width: 860px) {
    .home-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .home-hero__photo { order: -1; }
    .home-hero__photo img { max-width: 300px; margin: 0; aspect-ratio: 1/1; }
}

.home-serv { padding: 24px 0 80px; }
.serv-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px; margin-top: 8px;
}
.serv-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px 26px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.serv-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm, 0 8px 24px rgba(0,0,0,.08)); }
.serv-card__num { font-family: var(--ff-mono); color: var(--accent); font-size: .85rem; }
.serv-card h3 { font-family: var(--ff-display); font-size: 1.4rem; margin: 10px 0 8px; }
.serv-card p { color: var(--muted); line-height: 1.6; }

/* ===========================================================================
   PALETA DE MARCA JPC  ·  Azul marino #0D233A · Blanco #FFFFFF · Dorado #C5A059
   (override final — manda sobre lo anterior)
   =========================================================================== */
:root, [data-theme="light"] {
  --bg: #f2f4f7;
  --bg-2: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --text: #0D233A;
  --muted: #56657a;
  --muted-2: #8593a4;
  --border: #dbe2ec;
  --border-soft: #e8edf3;
  --accent: #C5A059;
  --accent-hover: #d6b878;
  --accent-ink: #0D233A;
  --accent-soft: #f4ecdc;
  --accent-2: #0D233A;
  --accent-2-soft: #e9edf2;
  --gold: #C5A059;
  --brand: #0D233A;
  --shadow: 0 30px 60px -30px rgba(13,35,58,.22);
  --shadow-sm: 0 14px 30px -18px rgba(13,35,58,.16);
}
[data-theme="dark"] {
  --bg: #081521;
  --bg-2: #0D233A;
  --surface: #0f2334;
  --surface-2: #0c1c2b;
  --text: #f1f5fa;
  --muted: #a7b4c2;
  --muted-2: #6f8093;
  --border: #1d3650;
  --border-soft: #16293c;
  --accent: #C5A059;
  --accent-hover: #d6b878;
  --accent-ink: #0D233A;
  --accent-soft: rgba(197,160,89,.16);
  --accent-2: #cdd8e4;
  --gold: #C5A059;
  --brand: #0D233A;
}
[data-theme="dark"] {
  --border: #1d3650;
  --border-soft: #16293c;
  --accent: #C5A059;
  --accent-hover: #d6b878;
  --accent-ink: #0D233A;
  --accent-soft: rgba(197,160,89,.16);
  --accent-2: #cdd8e4;
  --gold: #C5A059;
  --brand: #0D233A;
}

/* Cabecera azul marino */
.nav { background: var(--brand); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav .brand__txt strong { color: #fff; }
.nav .brand__txt small { color: var(--gold); }
.brand__mark { background: var(--gold); color: var(--brand); }
.nav__links a { color: #e6ecf3; }
.nav__links a:hover { color: var(--gold); }
.nav__fav, .theme-toggle { color: #e6ecf3; }
.nav__cta { color: #fff; border-color: rgba(255,255,255,.35); }
.nav__cta:hover { background: var(--gold); color: var(--brand); border-color: var(--gold); }

/* Botones */
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--gold); color: var(--brand); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Pie azul marino */
.footer { background: var(--brand); color: #e6ecf3; }
.footer a { color: #c8d3df; }
.footer a:hover { color: var(--gold); }
.footer h4, .footer .brand__txt strong { color: #fff; }
.footer .brand__txt small { color: var(--gold); }
.footer__claim, .footer__zona { color: #c8d3df !important; }
/* Logo de la cabecera (aparece al subir static/img/logo.png) */
.brand__logo { height: 42px; width: auto; display: block; }
.footer .brand__logo { height: 40px; }

/* ===========================================================================
   REDISEÑO ESTILO LION CAPITAL  ·  todo CUADRADO · Futura/Avenir/Copperplate
   (override final — manda sobre todo lo anterior)
   =========================================================================== */
:root, [data-theme="light"], [data-theme="dark"] {
  --radius: 0px; --radius-sm: 0px; --pill: 0px;
  --ff-display: 'Futura','Avenir Next','Century Gothic','Trebuchet MS',sans-serif;
  --ff-body: 'Avenir Next','Avenir','Futura','Century Gothic','Helvetica Neue',Arial,sans-serif;
}
*, *::before, *::after { border-radius: 0 !important; }
body { font-family: var(--ff-body); }
.eyebrow { font-family: 'Copperplate','Copperplate Gothic Light',var(--ff-display); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; color: var(--accent); }

/* Cabecera BLANCA estilo Lion */
.nav { background: #fff !important; border-bottom: 1px solid var(--border); box-shadow: none; }
.nav .brand__txt strong { color: var(--brand); }
.nav .brand__txt small { color: var(--accent); }
.brand__mark { background: var(--brand); color: #fff; }
.nav__links a { color: var(--brand); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.nav__links a:hover { color: var(--accent); }
.nav__fav, .theme-toggle { color: var(--brand); }
.nav__cta { color: var(--brand); border: 1px solid var(--brand); background: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.nav__cta:hover { background: var(--brand); color: #fff; }

/* Botones cuadrados */
.btn { text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 600; padding: 15px 30px; }
.btn--primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--brand); }
.btn--ghost { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }

/* ===== Portada estilo Lion ===== */
.lc-hero {
  position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 150px 24px 100px; overflow: hidden;
  background: linear-gradient(160deg, #0D233A 0%, #08172a 100%);
}
.lc-hero__overlay { position: absolute; inset: 0; background: radial-gradient(circle at 50% 28%, rgba(197,160,89,.14), transparent 62%); }
.lc-hero__inner { position: relative; z-index: 2; max-width: 920px; }
.lc-hero__eyebrow { color: var(--accent); display: block; margin-bottom: 26px; }
.lc-hero__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 44px; }
.lc-hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.lc-btn { display: inline-block; padding: 17px 38px; border: 1px solid rgba(255,255,255,.55); color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .77rem; font-weight: 600; transition: background .25s, color .25s; }
.lc-btn + .lc-btn { border-left: none; }
.lc-btn:hover { background: #fff; color: var(--brand); }
@media (max-width: 600px) { .lc-hero__cta { flex-direction: column; } .lc-btn + .lc-btn { border-left: 1px solid rgba(255,255,255,.55); border-top: none; } }

.lc-people { padding: 100px 0; }
.lc-people__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.lc-people__text h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; color: var(--brand); margin: 14px 0 22px; }
.lc-prose { color: var(--muted); font-size: 1.08rem; line-height: 1.75; margin-bottom: 30px; }
.lc-prose p { margin-bottom: 1em; }
.lc-people__photo img { width: 100%; object-fit: cover; aspect-ratio: 4/5; display: block; }
@media (max-width: 800px) { .lc-people__grid { grid-template-columns: 1fr; gap: 36px; } .lc-people__photo { order: -1; } }

.lc-stats { background: var(--brand); color: #fff; padding: 86px 0; }
.lc-stats__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.1; margin-bottom: 48px; }
.lc-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.lc-stats__grid > div { border-left: 1px solid rgba(255,255,255,.16); padding: 8px 28px; }
.lc-stats__grid > div:first-child { border-left: none; padding-left: 0; }
.lc-stats__grid strong { font-family: var(--ff-display); font-weight: 600; font-size: clamp(2.8rem, 6vw, 4.6rem); color: var(--accent); display: block; line-height: 1; }
.lc-stats__grid span { display: block; margin-top: 12px; color: #c3cfdc; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
@media (max-width: 700px) { .lc-stats__grid { grid-template-columns: 1fr; } .lc-stats__grid > div { border-left: none; border-top: 1px solid rgba(255,255,255,.16); padding: 26px 0; } .lc-stats__grid > div:first-child { border-top: none; } }

.lc-serv { padding: 100px 0; background: var(--surface-2); }
.lc-h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--brand); margin: 10px 0 40px; }
.lc-serv__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.lc-serv__grid article { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 32px; background: #fff; transition: background .2s; }
.lc-serv__grid article:hover { background: var(--surface-2); }
.lc-serv__num { color: var(--accent); font-weight: 700; letter-spacing: .14em; font-size: .85rem; }
.lc-serv__grid h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.35rem; color: var(--brand); margin: 12px 0 10px; }
.lc-serv__grid p { color: var(--muted); line-height: 1.65; }

.lc-contact { padding: 100px 0; }

/* ===========================================================================
   FIX: título del hero visible + tipografía geométrica real (Jost ~ Futura)
   =========================================================================== */
:root, [data-theme="light"], [data-theme="dark"] {
  --ff-display: 'Jost','Futura','Avenir Next','Century Gothic','Trebuchet MS',sans-serif !important;
  --ff-body: 'Jost','Avenir Next','Avenir','Century Gothic','Helvetica Neue',Arial,sans-serif !important;
}
.lc-hero, .lc-hero__inner, .lc-hero__title, .lc-hero__eyebrow, .lc-hero__cta { color: #fff; }
.lc-hero__title { color: #fff !important; font-weight: 600; }
.lc-hero__eyebrow { color: var(--accent) !important; }

/* ===========================================================================
   ESCALA LION · contenido ancho y tipografía grande en pantallas grandes
   =========================================================================== */
.wrap { width: min(1500px, 92vw); }

/* Hero a pantalla completa con título enorme */
.lc-hero { min-height: calc(100vh - 74px); padding: 120px 24px 90px; }
.lc-hero__inner { max-width: 1280px; }
.lc-hero__eyebrow { font-size: .95rem; letter-spacing: .26em; margin-bottom: 34px; }
.lc-hero__title { font-size: clamp(3.2rem, 7.2vw, 8rem); margin-bottom: 56px; }
.lc-btn { padding: 20px 52px; font-size: .88rem; }

/* Secciones con más presencia */
.lc-people { padding: 130px 0; }
.lc-people__grid { gap: 90px; }
.lc-people__text h2 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); }
.lc-prose { font-size: 1.18rem; }
.lc-stats { padding: 110px 0; }
.lc-stats__title { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.lc-stats__grid strong { font-size: clamp(3.2rem, 6.5vw, 5.6rem); }
.lc-serv { padding: 130px 0; }
.lc-h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.lc-serv__grid article { padding: 52px 40px; }
.lc-serv__grid h3 { font-size: 1.55rem; }
.lc-contact { padding: 130px 0; }
.eyebrow { font-size: .82rem; }

/* Logo real en cabecera y pie */
.brand__logo { height: 50px; }
.footer .brand__logo { height: 62px; }
.nav__inner { min-height: 74px; }

/* ===========================================================================
   HERO PERSONAL · su foto y su historia primero (diseño propio, no Lion)
   =========================================================================== */
.jp-hero { background: linear-gradient(105deg, #fff 55%, #eef2f6 55%); border-bottom: 1px solid var(--border); padding: 84px 0 76px; }
.jp-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.jp-hero__text h1 { font-family: var(--ff-display); font-weight: 600; color: var(--brand); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.06; margin: 18px 0 26px; }
.jp-hero__story { color: var(--muted); font-size: 1.15rem; line-height: 1.75; max-width: 56ch; }
.jp-hero__story p { margin-bottom: 1em; }
.jp-hero__claim { font-family: var(--ff-display); color: var(--accent); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; margin: 8px 0 32px; }
.jp-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.jp-hero__photo { position: relative; justify-self: end; width: min(430px, 100%); }
.jp-hero__photo::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--brand); z-index: 0; }
.jp-hero__photo::after { content: ""; position: absolute; top: -16px; left: -16px; width: 96px; height: 96px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); z-index: 2; }
.jp-hero__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; }
@media (max-width: 920px) {
  .jp-hero { padding: 56px 0; }
  .jp-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .jp-hero__photo { justify-self: center; width: min(340px, 88%); }
}

/* Franja de accesos rápidos (todo a un clic) */
.jp-quick { background: var(--brand); }
.jp-quick__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.jp-quick__grid a { padding: 28px 22px; border-left: 1px solid rgba(255,255,255,.12); color: #fff; display: block; transition: background .2s; }
.jp-quick__grid a:first-child { border-left: none; }
.jp-quick__grid a:hover { background: rgba(197,160,89,.18); }
.jp-quick__grid strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.jp-quick__grid span { display: block; margin-top: 6px; font-size: .8rem; color: #b9c6d4; }
@media (max-width: 1100px) {
  .jp-quick__grid { grid-template-columns: repeat(3, 1fr); }
  .jp-quick__grid a { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 560px) { .jp-quick__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===========================================================================
   TEMA CLARO/OSCURO COHERENTE + HERO PANTALLA COMPLETA + OPINIONES + QUIÉN SOY
   (override final definitivo — barrido de todo lo anterior)
   =========================================================================== */

/* --- Cabecera: blanca en claro, azul marino en oscuro, logo que cambia --- */
.nav { background: var(--surface) !important; border-bottom: 1px solid var(--border); }
[data-theme="dark"] .nav { background: var(--brand) !important; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav__links a, .nav__fav, .theme-toggle { color: var(--text); }
.nav__links a:hover { color: var(--accent); }
.nav__cta { color: var(--text); border: 1px solid var(--text); background: transparent; }
.nav__cta:hover { background: var(--accent); color: var(--brand); border-color: var(--accent); }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }

/* --- Botones legibles en ambos temas --- */
.btn--ghost { border: 1px solid var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
[data-theme="dark"] .btn--primary { background: var(--accent); color: var(--brand); border-color: var(--accent); }
[data-theme="dark"] .btn--primary:hover { background: var(--accent-hover); }

/* --- Titulares con color de tema (no azul fijo, que desaparece en oscuro) --- */
.lc-people__text h2, .lc-h2, .lc-serv__grid h3, .jp-hero__text h1 { color: var(--text); }
.lc-serv__grid article { background: var(--surface); }

/* --- "Los números nos respaldan": título blanco SIEMPRE (fondo azul fijo) --- */
.lc-stats__title { color: #fff !important; }

/* --- Hero personal: pantalla completa, accesos arriba en la parte blanca --- */
.jp-hero { background: linear-gradient(105deg, var(--surface) 55%, var(--surface-2) 55%); min-height: calc(100vh - 74px); display: flex; padding: 0; }
.jp-hero__wrap { display: flex; flex-direction: column; padding: 34px 0 64px; }
.jp-hero__quick { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); background: var(--surface); margin-bottom: clamp(30px, 6vh, 64px); }
.jp-hero__quick a { text-align: center; padding: 17px 10px; border-left: 1px solid var(--border); color: var(--text); text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 600; font-family: var(--ff-display); transition: background .2s, color .2s; }
.jp-hero__quick a:first-child { border-left: none; }
.jp-hero__quick a:hover { background: var(--brand); color: #fff; }
[data-theme="dark"] .jp-hero__quick a:hover { background: var(--accent); color: var(--brand); }
.jp-hero__grid { flex: 1; }
[data-theme="dark"] .jp-hero__photo::before { background: var(--surface-2); }
@media (max-width: 1100px) { .jp-hero__quick { grid-template-columns: repeat(3, 1fr); } .jp-hero__quick a { border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .jp-hero__quick { grid-template-columns: repeat(2, 1fr); } }

/* --- Opiniones de clientes --- */
.jp-tts { padding: 110px 0; background: var(--surface-2); border-top: 1px solid var(--border-soft); }
.jp-tts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 14px; }
.jp-tts figure { background: var(--surface); border: 1px solid var(--border); padding: 34px 30px; display: flex; flex-direction: column; margin: 0; }
.jp-tts__stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 16px; font-size: 1.05rem; }
.jp-tts blockquote { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; flex: 1; }
.jp-tts figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-family: var(--ff-display); font-weight: 600; color: var(--text); letter-spacing: .04em; }
@media (max-width: 900px) { .jp-tts__grid { grid-template-columns: 1fr; } }

/* --- Tiles de acción del hero (no duplican el menú: número + verbo + qué ganas) --- */
.jp-hero__tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: var(--surface); margin-top: clamp(28px, 5vh, 56px); }
.jp-hero__tiles a { padding: 22px 24px; border-left: 1px solid var(--border); transition: background .2s; }
.jp-hero__tiles a:first-child { border-left: none; }
.jp-hero__tiles a:hover { background: var(--brand); }
.jp-hero__tiles a:hover strong, .jp-hero__tiles a:hover em { color: #fff; }
.jp-hero__tiles span { color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .14em; }
.jp-hero__tiles strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.15rem; color: var(--text); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.jp-hero__tiles em { display: block; font-style: normal; color: var(--muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 1000px) { .jp-hero__tiles { grid-template-columns: repeat(2, 1fr); } .jp-hero__tiles a { border-top: 1px solid var(--border); } }
@media (max-width: 480px) { .jp-hero__tiles { grid-template-columns: 1fr; } }

/* --- Blog estilo periódico --- */
.np__masthead { text-align: center; border-bottom: 3px double var(--border); padding-bottom: 22px; margin-bottom: 36px; }
.np__kicker { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; margin-bottom: 8px; }
.np__masthead h1 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.np__date { display: block; color: var(--muted-2); font-size: .82rem; margin-top: 10px; text-transform: uppercase; letter-spacing: .12em; }
.np__lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.np__lead-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.np__lead-media img { width: 100%; height: 100%; object-fit: cover; }
.np__noimg { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; font-size: 2.6rem; color: var(--muted-2); letter-spacing: .2em; }
.np__tag { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.np__lead-body h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.12; margin: 10px 0 14px; }
.np__lead-body h2 a { color: var(--text); }
.np__lead-body h2 a:hover { color: var(--accent); }
.np__lead-body p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.np__meta { margin-top: 16px; color: var(--muted-2); font-size: .85rem; display: flex; gap: 8px; }
.np__meta a { color: var(--accent); font-weight: 600; }
.np__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; margin-top: 8px; }
.np__item { border-top: 1px solid var(--border); padding: 22px 0 26px; }
.np__item-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); margin-bottom: 14px; }
.np__item-media img { width: 100%; height: 100%; object-fit: cover; }
.np__item time { color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.np__item h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin: 8px 0 8px; }
.np__item h3 a { color: var(--text); }
.np__item h3 a:hover { color: var(--accent); }
.np__item p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.np__more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .88rem; }
@media (max-width: 900px) { .np__lead { grid-template-columns: 1fr; gap: 22px; } .np__grid { grid-template-columns: 1fr; } }

/* --- Valorador por pasos (Vender) --- */
.val-steps { display: flex; gap: 0; margin-bottom: 22px; border: 1px solid var(--border); }
.val-steps span { flex: 1; text-align: center; padding: 10px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); border-left: 1px solid var(--border); }
.val-steps span:first-child { border-left: none; }
.val-steps span.on { background: var(--brand); color: #fff; }
[data-theme="dark"] .val-steps span.on { background: var(--accent); color: var(--brand); }
.val-result { text-align: center; border: 1px solid var(--accent); padding: 26px 18px; }
.val-result span { display: block; color: var(--muted); font-size: .9rem; }
.val-result strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--accent); margin: 8px 0 6px; letter-spacing: -.01em; }
.val-result small { color: var(--muted-2); font-size: .84rem; }

/* --- Ficha: formulario en el lateral, sin sticky raro --- */
.detalle__layout aside .sidebar-card { position: static; }
.sidebar-form { margin-top: 16px; padding: 24px; }

/* --- Quién soy: foto lateral + historia + CTA --- */
.jp-bio { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; margin-bottom: 70px; }
.jp-bio__text h1 { font-family: var(--ff-display); font-weight: 600; color: var(--text); font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; margin: 14px 0 24px; }
.jp-bio__text .prose { color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.jp-bio__photo { position: relative; justify-self: end; width: min(420px, 100%); }
.jp-bio__photo::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--brand); z-index: 0; }
[data-theme="dark"] .jp-bio__photo::before { background: var(--surface-2); }
.jp-bio__photo::after { content: ""; position: absolute; top: -16px; left: -16px; width: 96px; height: 96px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); z-index: 2; }
.jp-bio__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; }
.jp-bio__form { max-width: 760px; margin: 0 auto; }
@media (max-width: 920px) {
  .jp-bio { grid-template-columns: 1fr; gap: 48px; }
  .jp-bio__photo { justify-self: center; width: min(340px, 88%); }
}

/* ===========================================================================
   RETRATO RECORTADO SOBRE PANEL DE MARCA (portada y Quién soy)
   =========================================================================== */
.jp-photo-panel {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  padding: 38px 28px 0; border: 1px solid var(--border); overflow: visible;
  background: radial-gradient(circle at 72% 18%, rgba(197,160,89,.16), transparent 55%),
              linear-gradient(165deg, var(--bg-2) 0%, var(--surface-2) 75%);
}
[data-theme="dark"] .jp-photo-panel {
  border-color: rgba(197,160,89,.28);
  background: radial-gradient(circle at 72% 18%, rgba(197,160,89,.16), transparent 55%),
              linear-gradient(165deg, #10283f 0%, #081521 80%);
}
.jp-photo-panel::before { display: none !important; }
.jp-photo-panel::after {
  content: ""; position: absolute; top: -14px; left: -14px; width: 92px; height: 92px;
  border-top: 3px solid var(--accent); border-left: 3px solid var(--accent);
}
.jp-photo-panel img {
  position: static; width: 100%; max-width: 400px; aspect-ratio: auto;
  object-fit: contain; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,0,.28));
}

/* Quién soy · bloque de contacto equilibrado (canales + formulario) */
.jp-bio { align-items: center; margin-bottom: 0; }
.jp-bio__contact {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start;
  border-top: 1px solid var(--border); margin-top: 70px; padding-top: 60px;
}
.jp-bio__channels h2 { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--text); margin: 8px 0 10px; }
.jp-bio__channels > p { color: var(--muted); margin-bottom: 24px; max-width: 42ch; }
.jp-bio__channels .channel { margin-bottom: 12px; }
.jp-bio__form { max-width: none; margin: 0; }
@media (max-width: 900px) { .jp-bio__contact { grid-template-columns: 1fr; gap: 36px; } }
