/* Estilo oficial de Varela Solutions desde el 16 nov 2026: «oro y negro», lujo minimalista tipo Sotheby's.
   Oro #C5A572, negro #1A1A1A, blanco roto #FAFAF8. Italiana (titulares), Instrument Serif (texto destacado),
   Instrument Sans (texto, datos y botones). Es la misma marca que piden las instrucciones del proyecto.
   Va enlazado DESPUÉS del <style> de cada página: redefine sus variables y corrige los colores fijos.
   Respaldo del estilo anterior (papel y verde): /estilo-papel.css. */

:root {
  color-scheme: dark;
  --gold: #C5A572; --gold-2: #E2CFA4; --gold-ink: #1A1A1A;
  --black: #1A1A1A; --black-2: #141414; --black-3: #232220; --black-4: #2C2A27;
  --white: #FAFAF8; --white-2: #E8E4DC; --muted: #B9B3A8; --muted-2: #A39D92;
  --rule: #3A3631; --rule-2: #5A554D;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-read: "Instrument Serif", Georgia, serif;
  --font-ui: "Instrument Sans", system-ui, sans-serif;

  /* variables propias de cada página, apuntadas al tema */
  --stone: var(--black);
  --stone-2: var(--black-2);
  --paper: var(--black-3);
  --ink: var(--white);
  --soft: var(--muted);
  --line: var(--rule);
  --dark: var(--gold);
  --dark-ink: var(--gold-ink);
  --acc: var(--gold);
  --serif: var(--font-display);
  --sans: var(--font-ui);
}

html, body { overflow-x: clip; }
body { background: var(--black); color: var(--white); font-family: var(--font-ui); }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline-color: var(--gold); }

/* Titulares: Italiana (un solo peso) */
:root :is(h1, h2, .serif, .stats dd, .calc output, .nophoto .t, .ph .t, .ystats dd, .night .v) {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}
/* Subtítulos y texto destacado: Instrument Serif */
:root :is(h3, .hero-cols .tag, .statement p, .split .txt p.first, .letter p, .insight, .result,
.qa summary, .sign .n, .lede, .body h2) {
  font-family: var(--font-read);
  font-weight: 400;
  letter-spacing: 0;
}
:root .ft h3, :root .stage-col h3 + .when { font-family: var(--font-ui); }

/* Rótulo dorado sobre cada titular de sección */
.sec-head h2::before, .eyebrow::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin: 0 auto 28px; }
.eyebrow::before { margin: 0 0 22px; }
.eyebrow { font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: .28em; text-shadow: 0 1px 12px rgba(0,0,0,.5); text-transform: uppercase; color: var(--gold); }
.sec-head h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1.06; }

/* Logo: V y ola, nombre en Italiana con SOLUTIONS en oro */
.logo { font-family: var(--font-display); font-weight: 400; color: var(--white); }
.logo .mk path { stroke: var(--gold); }
.logo small { color: var(--gold); font-family: var(--font-ui); }

/* Cabecera */
header.top { background: rgba(26, 26, 26, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
header.top.scrolled { box-shadow: 0 1px 0 var(--rule); }
.bar nav { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; gap: 24px; }
@media (max-width: 1180px) and (min-width: 821px) { .bar nav { gap: 16px; letter-spacing: .06em; } .logo small { display: none; } }
.lang button { font-size: 13px; letter-spacing: .12em; }
.lang button[aria-pressed="true"] { color: var(--gold); }

/* Botones y enlaces */
.btn { background: var(--gold); color: var(--gold-ink); border-radius: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; min-height: 50px; padding: 0 30px; }
.btn:hover { background: var(--gold-2); }
.btn-wa { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-wa:hover { background: rgba(197, 165, 114, .12); }
.link { color: var(--white); border-bottom-color: var(--gold); }
.wa-float { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.wa-float:hover { background: var(--gold-2); }

/* Portada: foto a sangre con el texto encima */
.hero { position: relative; padding: 0; min-height: min(94svh, 940px); display: flex; align-items: flex-end; overflow: hidden; }
.hero .hero-img { position: absolute; inset: 0; height: auto; margin: 0; }
.hero .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.6) 0%, rgba(26,26,26,.35) 30%, rgba(26,26,26,.45) 55%, rgba(26,26,26,.9) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 1.4rem + 6vw, 6.6rem); line-height: 1.02; max-width: 15ch; margin-top: 26px; }
.hero-in .hero-cols { grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; align-items: end; margin-top: clamp(28px, 3vw, 44px); }
.hero-in .hero-cols p.body { color: var(--white-2); font-family: var(--font-read); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; }
@media (max-width: 820px) { .hero-in .hero-cols { grid-template-columns: 1fr; } .hero-in .btn { justify-self: start; } }

/* Cifras de la semana: banda bajo la portada */
.kpis { border-bottom: 1px solid var(--rule); }
.kpis .market { margin: 0; }
:root .kpis h2 { font-family: var(--font-ui); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); padding-top: 40px; }
.stats { margin: 0; gap: 0; }
.stats div { border-top: 0; border-right: 1px solid var(--rule); padding: 22px 24px 44px; }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border-right: 0; }
.stats dd { color: var(--gold); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); }
.stats dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .stats div { border-right: 0; border-top: 1px solid var(--rule); padding: 18px 0 24px; } }

/* Método y gráfico */
.pillar { border-top: 1px solid var(--gold); }
.chart { background: var(--black-3); }
.track { background: var(--black-4); height: 10px; }
.fill { background: var(--gold); }
.car .fill { background: var(--rule-2); }
.mid { background: var(--black); }
.insight { color: var(--white-2); }

/* Rentabilidad */
.renta { background: var(--white); color: var(--black); --ink: var(--black); --soft: #5E584F; --line: #D9D2C3; }
.renta .sec-head p { color: #5E584F; }
.nights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid #D9D2C3; }
.night { padding: 34px 28px 34px 0; border-right: 1px solid #D9D2C3; }
.night + .night { padding-left: 28px; }
.night:last-child { border-right: 0; }
.night .z { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #5E584F; }
.night .v { font-size: clamp(3rem, 2rem + 2.4vw, 4.2rem); line-height: 1; margin-top: 14px; }
.night .s { margin-top: 8px; font-family: var(--font-read); font-size: 18px; color: #5E584F; }
.r-src { margin-top: 10px; font-size: 13px; color: #5E584F; }
.yield { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--black); color: var(--white); }
.yield .ph { margin: 0; min-height: 100%; }
.yield .ph img { width: 100%; height: 100%; object-fit: cover; }
.ycalc { padding: clamp(28px, 4vw, 64px); --ink: var(--white); --soft: var(--muted); --line: var(--rule); }
.ycalc h3 { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); line-height: 1.1; margin: 0; }
.ycalc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.ycalc label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ycalc select, .ycalc input { font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; padding: 10px 0; min-height: 46px; }
.ycalc select option { background: var(--black-3); color: var(--white); }
.ycalc select:focus, .ycalc input:focus { outline: none; border-bottom-color: var(--gold); }
.occ { border: 0; margin: 26px 0 0; padding: 0; }
.occ legend { padding: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pills button { min-height: 44px; min-width: 76px; padding: 0 18px; font: inherit; font-size: 15px; cursor: pointer; background: transparent; color: var(--white); border: 1px solid var(--rule-2); }
.pills button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.ycalc .occ-own { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 0 16px; border: 1px solid var(--rule-2); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--white); }
.ycalc .occ-own input { width: 74px; min-height: 42px; margin: 0; background: transparent; border: 0; border-left: 1px solid var(--rule-2); border-radius: 0; color: var(--white); font: inherit; font-size: 15px; padding: 0 10px; }
.occ-own:focus-within { border-color: var(--gold); }
.ystats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; margin: 34px 0 0; }
.ystats dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ystats dd { margin: 8px 0 0; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
:root .ystats dd { font-family: var(--font-ui); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ystats .hl dt, .ystats .hl dd { color: var(--gold); }
.ynote { margin-top: 26px; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 820px) { .yield { grid-template-columns: 1fr; } .yield .ph { aspect-ratio: 4 / 3; } .ycalc .row2 { grid-template-columns: 1fr; } .night, .night + .night { padding: 26px 0; border-right: 0; border-bottom: 1px solid #D9D2C3; } }

/* Oportunidades y fichas */
.opps { background: var(--black-2); }
.opp .cmp, .badge, .pill { background: var(--gold); color: var(--gold-ink); }
.badge.sold, .opp .st { background: var(--white); color: var(--black); }
.opp .ex { background: var(--black); color: var(--white); }
.nophoto { background: var(--black-3); border-color: var(--rule); }
.nophoto svg path { stroke: var(--gold); }

/* Verificación, servicios, preguntas */
.stage-col h3 { border-bottom: 1px solid var(--gold); }
.services { background: var(--black-2); }
.svc li { border-bottom-color: var(--rule); }
.faq { background: var(--black-3); }
.qa summary::after { color: var(--gold); }
.sign .n { color: var(--gold); }

/* Formularios */
.calc { background: var(--black-3); }
.calc select option, .lead-form select option { background: var(--black-3); color: var(--white); }
.calc input[type=range], .lead-form .chk input, .chk input { accent-color: var(--gold); }
.calc select, .calc input[type=number] { border-bottom-color: var(--rule-2); }
.lead-form { background: var(--black-3); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus, .calc select:focus, .calc input:focus { border-bottom-color: var(--gold); }
.lf-status.err { color: #F0A58A; }

/* Catálogo (/inmuebles) y páginas legales */
.card { background: var(--black-3); border: 1px solid var(--rule); }
.ph { background: var(--black-2); }
.price { font-family: var(--font-ui); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; font-size: 1.4rem; color: var(--gold); }
.filters { background: var(--black); border-bottom: 1px solid var(--gold); }
.lede, .desc { color: var(--white-2); }
.lede { font-size: 1.25rem; line-height: 1.5; }
.foot a { border-bottom-color: var(--gold); }
.legal-page a, .wrap > p a { color: var(--gold); }
p, li { color: inherit; }

/* Pie */
footer { background: #111110; color: var(--white); }
.ft p.about, .ft a, .legal { color: var(--muted); }
.ft a:hover { color: var(--gold); }

/* Mapa */
.mapbox { border-radius: 0; border: 1px solid var(--rule-2); }
.map-fuente { color: var(--muted); }
.mp-ctl, .mp-leg, .mp-b, .leaflet-popup-content-wrapper { border-radius: 0; }
.mp-b.on { background: var(--black); color: var(--gold); }
@media (max-width: 820px) { .eyebrow { letter-spacing: .16em; font-size: 12px; } }

.occ-ref { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 60ch; }

/* ---- Vista clara (botón sol/luna; se recuerda en localStorage «vs-theme») ---- */
.theme{background:none;border:0;color:var(--muted);cursor:pointer;padding:8px;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}
.theme:hover{color:var(--gold)}
.theme svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
html[data-theme=light] .theme .sun,html:not([data-theme=light]) .theme .moon{display:none}
html[data-theme=light]{color-scheme:light;--gold:#A8864F;--gold-2:#8A6A35;--gold-ink:#1A1A1A;--black:#FAF8F4;--black-2:#F3EFE8;--black-3:#EFEAE1;--black-4:#E6E0D5;--white:#1A1A1A;--white-2:#2C2A27;--muted:#5F594F;--muted-2:#6E685E;--rule:#DED7CB;--rule-2:#C8BFB0}

html[data-theme=light] header.top{background:rgba(250,248,244,.94);border-bottom:1px solid var(--rule)}
html[data-theme=light] .eyebrow{text-shadow:none}
html[data-theme=light] .hero{--gold:#C5A572;--gold-2:#E2CFA4;--black:#1A1A1A;--black-2:#141414;--black-3:#232220;--white:#FAFAF8;--white-2:#E8E4DC;--muted:#B9B3A8;--rule:#3A3631;--rule-2:#5A554D;color:#FAFAF8}
html[data-theme=light] .hero .eyebrow{text-shadow:0 1px 12px rgba(0,0,0,.5)}
html[data-theme=light] .renta{background:#EFEAE1;color:#1A1A1A;--ink:#1A1A1A}
html[data-theme=light] footer{--gold:#C5A572;--gold-2:#E2CFA4;--black:#1A1A1A;--black-2:#141414;--black-3:#232220;--white:#FAFAF8;--white-2:#E8E4DC;--muted:#B9B3A8;--rule:#3A3631;--rule-2:#5A554D;--ink:#FAFAF8;--soft:#B9B3A8;--line:#3A3631;color:#FAFAF8}
html[data-theme=light] .btn{color:#1A1A1A}
html[data-theme=light] .btn:hover{background:var(--gold-2);color:#FAFAF8}
html[data-theme=light] .wa-float{box-shadow:0 8px 24px rgba(60,45,20,.25)}
html[data-theme=light] .calc select option,html[data-theme=light] .lead-form select option{background:#FFFFFF;color:#1A1A1A}

/* Cifras en letra de texto (se leen mejor que en Italiana) y títulos con más cuerpo en la vista clara */
:root :is(.stats dd, .calc output, .night .v) { font-family: var(--font-ui); font-weight: 500; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
html[data-theme=light] :is(h1, h2, .serif, .nophoto .t, .ph .t) { font-weight: 600; letter-spacing: -.005em; }
:root :is(h1, h2, h3, .serif) { font-variant-numeric: lining-nums; }
:root :is(h1, h2, .serif, .nophoto .t, .ph .t) { font-weight: 500; letter-spacing: -.005em; }

/* Logo: letras algo más gruesas para que se lea la barra de la «A» */
.vemk path{stroke:currentColor!important;stroke-width:1.8px;stroke-linejoin:round}
