/* V4 · Mix: paleta de la guía de marca (V1) con la estructura y personalidad de V3, sin barra lateral.
   Títulos en Archivo ancha, texto en Inter. Radios: tarjetas 20px, botones y campos 10px, etiquetas pill. */
:root {
  --bg: #F4EFEB; --surface: #FFFDFB; --card: #EAE3DD; --ink: #1C1917; --muted: #57534E;
  --primary: #606C38; --secondary: #283618; --tertiary: #DDA15E; --accent: #606C38;
  --line: #DDD4CC; --focus: #606C38; --error: #B42318; --ok: #606C38; --field-line: #CFC5BC; --field-bg: #FFFDFB;
  --r-card: 20px; --r-field: 10px; --font-body: "Inter", system-ui, sans-serif; --font-display: "Archivo", "Inter", sans-serif;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.label { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border: 1.5px solid currentColor; border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1.25rem; }
section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.btn { padding: .95rem 1.5rem; border-radius: 999px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--secondary); box-shadow: 3px 3px 0 var(--secondary); }
.btn-primary:hover { color: #fff; box-shadow: 5px 5px 0 var(--secondary); transform: translate(-2px, -2px); }
.btn-primary:active { box-shadow: 1px 1px 0 var(--secondary); transform: translate(2px, 2px); }
.btn-tan { background: var(--tertiary); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-tan:hover { color: var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.btn-dark { background: var(--secondary); color: #F4EFEB; }
.btn-dark:hover { background: var(--ink); color: #F4EFEB; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Header (V1) */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.hdr-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { text-decoration: none; display: grid; line-height: 1; gap: .3rem; }
.logo b { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: clamp(1.45rem, 2.2vw, 1.75rem); letter-spacing: -.03em; color: var(--secondary); }
.logo b span { color: var(--primary); }
.logo small { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.hdr-end { display: flex; align-items: center; gap: .75rem; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; font-size: .8rem; font-weight: 700; padding: .35rem .65rem; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--secondary); color: #F4EFEB; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .9rem; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--card); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 1.3rem; }
@media (max-width: 960px) {
  .menu-btn { display: grid; place-items: center; }
  .hdr .btn { display: none; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1.25rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s cubic-bezier(.16,1,.3,1); }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; background: var(--surface); border-radius: 10px; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
}

/* Hero (V3, con paleta V1) */
.hero-sec { padding-block: 8px 16px; }
.hero { padding: 0; display: grid; grid-template-columns: 1fr; border-radius: var(--r-card); overflow: hidden; background: var(--secondary); color: #F4EFEB; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr .95fr; min-height: min(80dvh, 720px); } }
.hero-in { padding: clamp(1.75rem, 5vw, 4rem); align-self: center; }
.hero .label { color: var(--tertiary); }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); }
.hero h1 mark { background: var(--tertiary); color: var(--ink); padding: 0 .12em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-in > p:not(.label) { margin-top: 1.25rem; font-size: 1.15rem; max-width: 46ch; color: #DCD6CC; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .btn-ghost { border-color: #F4EFEB; color: #F4EFEB; }
.hero .btn-ghost:hover { background: #F4EFEB; color: var(--ink); }
.hero .btn-tan { border-color: var(--tertiary); box-shadow: none; }
.hero .btn-tan:hover { box-shadow: 4px 4px 0 #F4EFEB; }
.hero-photo { position: relative; min-height: 360px; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 959px) { .hero-photo { order: -1; aspect-ratio: 4 / 3; min-height: 0; } }
.js .hero-photo img { transform: scale(1.08); animation: settle 1.8s cubic-bezier(.16,1,.3,1) forwards; }
.js .hero-in > * { opacity: 0; transform: translateY(20px); animation: up .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--d) * 110ms + 150ms); }
@keyframes settle { to { transform: scale(1); } }
@keyframes up { to { opacity: 1; transform: none; } }

/* Confianza (tarjetas de la barra lateral V3, ahora en fila) */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { background: var(--surface); border-radius: var(--r-card); padding: 1.25rem; }
.trust b { display: block; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; margin-bottom: .4rem; color: var(--secondary); }
.trust span { font-size: .9rem; color: var(--muted); font-weight: 500; }
.trust a { color: var(--primary); font-weight: 700; }

/* Perfiles: pestañas (V3) */
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2rem 0 1.5rem; }
.ptabs [role=tab] { border: 1.5px solid var(--ink); background: none; color: var(--ink); padding: .75rem 1.2rem; border-radius: 999px; font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; transition: background .2s; }
.ptabs [role=tab]:not([aria-selected=true]):hover { background: var(--card); }
.ptabs [aria-selected=true] { background: var(--secondary); border-color: var(--secondary); color: #F4EFEB; }
.pbox { background: var(--surface); border-radius: var(--r-card); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.ppanel { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; animation: up .5s cubic-bezier(.16,1,.3,1); }
@media (min-width: 900px) { .ppanel { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.ppanel h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.ppanel p { color: var(--muted); }
.checks { display: grid; gap: .6rem; margin: 1.25rem 0 1.75rem; }
.checks li { display: flex; gap: .6rem; align-items: start; font-weight: 500; }
.checks .ph { background: var(--tertiary); border-radius: 50%; padding: 3px; font-size: .95rem; margin-top: 3px; }
.ppanel .img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.ppanel .img img { width: 100%; height: 100%; object-fit: cover; }

/* Proyectos */
.projects { background: var(--card); }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 2rem; }
@media (min-width: 900px) { .proj-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.proj { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.proj:hover { transform: translateY(-4px); }
.proj .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.proj .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.proj:hover .img img { transform: scale(1.05); }
.proj .body { padding: 1.5rem; display: grid; gap: 1rem; flex: 1; align-content: start; }
.tag { justify-self: start; font-size: .8rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--secondary); }
.proj h3 { font-size: 1.7rem; }
.proj .loc { color: var(--muted); display: flex; gap: .35rem; align-items: center; font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv div { background: var(--bg); border-radius: 10px; padding: .75rem; }
.kv b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--secondary); }
.kv span { font-size: .8rem; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .kv b { font-size: 1rem; } }
.proj .row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.proj .btn { padding: .75rem 1.1rem; font-size: .95rem; }
.ready { margin-top: 16px; background: var(--tertiary); border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 1rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; }
@media (min-width: 800px) { .ready { grid-template-columns: 280px 1fr auto; gap: 2rem; padding-right: 1.75rem; } }
.ready p { max-width: 58ch; font-weight: 500; } .ready > p > b { font-family: var(--font-display); font-weight: 800; }
.ready .btn { justify-self: start; }
/* Fotos de propiedades listas: fundido automático, pausa al pasar el cursor o con el botón */
.rotator { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--ink); background: var(--card); }
.rotator a { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; color: #fff; text-decoration: none; }
.rotator a.on { opacity: 1; }
.rotator img { width: 100%; height: 100%; object-fit: cover; }
.rotator span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem .75rem .6rem; background: linear-gradient(transparent, rgb(20 20 18 / .82)); font-size: .8rem; line-height: 1.35; }
.rotator span b { display: block; font-size: .9rem; }
.rotator [data-pause] { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(255 253 251 / .92); color: var(--ink); display: grid; place-items: center; }

/* Proceso: línea de tiempo (V3) */
.timeline { margin-top: 2.5rem; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 1.25rem 1.5rem 1.25rem 1.25rem; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.timeline li:hover { transform: translateX(6px); }
@media (min-width: 900px) { .timeline li { grid-template-columns: auto 1fr 1.2fr; gap: 2.5rem; } }
.timeline .n { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--tertiary); -webkit-text-stroke: 1.5px var(--secondary); min-width: 2.2ch; }
.timeline h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.timeline p { color: var(--muted); grid-column: 2; }
@media (min-width: 900px) { .timeline p { grid-column: auto; } }

/* Servicios: bento 3 + 2 (V3) */
.svc { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 2.5rem; }
@media (min-width: 700px) { .svc { grid-template-columns: repeat(6, 1fr); } .svc a { grid-column: span 2; } .svc a:nth-child(n+4) { grid-column: span 3; } }
.svc a { text-decoration: none; background: var(--surface); border-radius: var(--r-card); padding: 1.5rem; min-height: 200px; display: flex; flex-direction: column; gap: .6rem; border: 1.5px solid transparent; transition: background .25s, border-color .25s, transform .4s cubic-bezier(.16,1,.3,1); }
.svc a:hover { border-color: var(--primary); transform: translateY(-3px); }
.svc .ph { font-size: 2rem; margin-bottom: auto; color: var(--primary); }
.svc h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc a:nth-child(4) { background: var(--primary); color: #fff; }
.svc a:nth-child(4) .ph { color: var(--tertiary); }
.svc a:nth-child(4) p { color: #E8EBDD; }
.svc a:nth-child(4):hover { border-color: var(--secondary); }

/* Testimonios: columnas (V3) */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.rating b { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; background: var(--tertiary); border: 1.5px solid var(--ink); border-radius: 8px; padding: .1rem .5rem; }
.rating a { color: var(--primary); font-weight: 600; }
.masonry { columns: 1; column-gap: 12px; margin-top: 2.5rem; }
@media (min-width: 700px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin: 0 0 12px; background: var(--surface); border-radius: var(--r-card); padding: 1.5rem; }
.masonry blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.5; }
.masonry figcaption { display: flex; gap: .75rem; align-items: center; font-size: .88rem; color: var(--muted); }
.masonry figcaption b { display: block; color: var(--ink); }
.ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); color: var(--tertiary); font-family: var(--font-display); font-weight: 800; flex: none; }

/* Sobre mí (V1) */
.about { background: var(--secondary); color: #EFE9E3; }
.about-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }
.about-photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about .label { color: var(--tertiary); }
.about h2 { margin-bottom: 1.5rem; color: #fff; }
.about p:not(.label) { color: #D9D3C9; max-width: 56ch; }
.about p + p { margin-top: 1rem; }
.about .btn { margin-top: 2rem; }

/* Guías (V1) */
.posts { display: grid; gap: 12px; margin-top: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .posts { grid-template-columns: 1.4fr 1fr; } .posts a:first-child { grid-row: span 2; justify-content: flex-end; background: var(--card); } .posts a:first-child h3 { font-size: 1.9rem; } }
.posts a { text-decoration: none; border-radius: var(--r-card); padding: 1.75rem; background: var(--surface); display: flex; flex-direction: column; gap: .75rem; min-height: 200px; border: 1.5px solid transparent; transition: border-color .3s, transform .4s cubic-bezier(.16,1,.3,1); }
.posts a:hover { border-color: var(--primary); transform: translateY(-3px); }
.posts small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--primary); }
.posts h3 { font-size: 1.3rem; }
.posts p { color: var(--muted); }
.posts a:first-child small, .posts a:first-child .go { color: var(--secondary); }
.posts .go { margin-top: auto; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; color: var(--primary); }

/* Contacto (V1) */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.contact-aside ul { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-aside a { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font-weight: 500; }
.contact-aside .ph { font-size: 1.4rem; color: var(--primary); }
.form-card { background: var(--surface); border-radius: var(--r-card); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.tabs { display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 1.75rem; }
.tabs [role=tab] { border: 0; background: none; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; }
.tabs [aria-selected=true] { background: var(--secondary); color: #F4EFEB; }

/* Footer */
footer { background: var(--ink); color: #D6D3D1; padding: 4.5rem 0 2rem; font-size: .95rem; }
.ft-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h2 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #A8A29E; margin-bottom: 1rem; font-weight: 700; }
footer li { margin-bottom: .6rem; }
footer a { text-decoration: none; } footer a:hover { color: var(--tertiary); }
.ft-brand p { max-width: 38ch; color: #A8A29E; }
.social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid #44403C; font-size: 1.25rem; transition: background .25s, border-color .25s, color .25s; }
.social a:hover { background: var(--tertiary); border-color: var(--tertiary); color: var(--ink); }
.ft-word { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 8.5vw, 7rem); color: var(--tertiary); line-height: .9; margin-top: 3.5rem; letter-spacing: -.03em; }
.legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #292524; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; color: #A8A29E; font-size: .85rem; }
.mbar { --mbar-bg: var(--surface); }
.mbar .btn-ghost { width: 52px; padding-inline: 0; }

/* ===== Componentes del sitio completo ===== */
dialog.wide { width: min(680px, 100% - 32px); }
.nav a[aria-current] { background: var(--card); }
.crumbs { font-size: .88rem; color: var(--muted); padding: .25rem 0 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--primary); }
.hero.compact h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
@media (min-width: 960px) { .hero.compact { min-height: min(64dvh, 600px); } }
.intro { max-width: 760px; }
.intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.25rem; }
.intro .lead { font-size: 1.2rem; }
.sec-h { margin-bottom: 2rem; } .sec-h p { margin-top: 1rem; }

/* Resumen / puntos clave */
.keys { background: var(--surface); border-radius: var(--r-card); padding: clamp(1.25rem, 3.5vw, 2.25rem); border-left: 6px solid var(--tertiary); }
.keys h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.keys ul { display: grid; gap: .7rem; }
@media (min-width: 900px) { .keys.two ul { grid-template-columns: 1fr 1fr; gap: .8rem 2rem; } }
.keys li, .ticks li { display: flex; gap: .6rem; align-items: start; }
.keys .ph, .ticks .ph { background: var(--tertiary); border-radius: 50%; padding: 3px; font-size: .95rem; margin-top: 3px; flex: none; }
.ticks { display: grid; gap: .6rem; margin: 1.25rem 0; }

/* Tarjetas de beneficios */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 2rem; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.cards > li, .cards > a { background: var(--surface); border-radius: var(--r-card); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; text-decoration: none; border: 1.5px solid transparent; transition: border-color .3s, transform .4s cubic-bezier(.16,1,.3,1); }
.cards > a:hover { border-color: var(--primary); transform: translateY(-3px); }
.cards > :first-child { background: var(--secondary); color: #F4EFEB; }
.cards > :first-child p { color: #D9D3C9; }
.cards > :first-child .ph { color: var(--tertiary); }
.cards .ph { font-size: 2rem; color: var(--primary); }
.cards h3 { font-size: 1.25rem; margin-top: .75rem; }
.cards p { color: var(--muted); }
.cards .go { color: var(--primary); font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; margin-top: .25rem; font-size: .95rem; }
.cards > :first-child .go { color: var(--tertiary); }

/* Preguntas frecuentes */
.faq { margin-top: 2rem; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: var(--r-card); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { transition: transform .3s cubic-bezier(.16,1,.3,1); flex: none; }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details > div { padding: 0 1.5rem 1.4rem; color: var(--muted); max-width: 70ch; }
.faq details > div p + p { margin-top: .75rem; }

/* CTA final */
.final { background: var(--secondary); color: #F4EFEB; border-radius: var(--r-card); padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; justify-items: start; }
.final h2 { color: #fff; max-width: 20ch; }
.final p { color: #D9D3C9; max-width: 56ch; font-size: 1.1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; }
.final .btn-ghost { border-color: #F4EFEB; color: #F4EFEB; }
.final .btn-ghost:hover { background: #F4EFEB; color: var(--ink); }
.final .btn-tan { box-shadow: none; border-color: var(--tertiary); }

/* Relacionados */
.related { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 2rem; }
@media (min-width: 900px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { text-decoration: none; background: var(--surface); border-radius: var(--r-card); padding: 1.5rem; display: grid; gap: .5rem; border: 1.5px solid transparent; transition: border-color .3s, transform .4s cubic-bezier(.16,1,.3,1); }
.related a:hover { border-color: var(--primary); transform: translateY(-3px); }
.related small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--secondary); }
.related h3 { font-size: 1.2rem; }

/* Compartir */
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share > b { font-size: .9rem; margin-right: .25rem; }
.share a, .share button { display: inline-flex; gap: .4rem; align-items: center; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .5rem .9rem; font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.share a:hover, .share button:hover { border-color: var(--ink); }

/* Proyecto: datos, tipologías, galería, plan */
.facts-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .facts-bar { grid-template-columns: repeat(4, 1fr); } }
.facts-bar li { background: var(--surface); border-radius: var(--r-card); padding: 1.1rem 1.25rem; }
.facts-bar b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--secondary); }
.facts-bar span { font-size: .88rem; color: var(--muted); font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 2rem; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery a:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.gallery a:hover img { transform: scale(1.05); }
.types { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 2rem; }
@media (min-width: 800px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type { background: var(--surface); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.type .plan { display: block; background: #fff; aspect-ratio: 1; padding: .75rem; }
.type .plan img { width: 100%; height: 100%; object-fit: contain; }
.type .body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .75rem; flex: 1; align-content: start; }
.type h3 { font-size: 1.35rem; }
.type ul { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .95rem; }
.type ul li { display: inline-flex; gap: .35rem; align-items: center; }
.type .price { font-size: .95rem; color: var(--muted); } .type .price b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--secondary); }
.type .btn { margin-top: auto; justify-self: start; }
.pay { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 2rem; }
@media (min-width: 900px) { .pay { grid-template-columns: repeat(4, 1fr); } }
.pay li { background: var(--surface); border-radius: var(--r-card); padding: 1.25rem; }
.pay li:last-child { background: var(--secondary); color: #F4EFEB; } .pay li:last-child span { color: #D9D3C9; }
.pay b { display: block; font-family: var(--font-display); font-weight: 900; font-stretch: 120%; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.pay span { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li { display: inline-flex; gap: .45rem; align-items: center; background: var(--surface); border-radius: 999px; padding: .55rem 1rem; font-weight: 500; font-size: .95rem; }
.chips .ph { color: var(--primary); font-size: 1.15rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split .img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }

/* Visor de galería */
dialog.lightbox { width: min(1200px, 100% - 24px); max-height: calc(100dvh - 24px); background: #111; color: #eee; padding: 0; overflow: hidden; }
.lightbox figure { margin: 0; display: grid; }
.lightbox img { width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; background: #111; }
.lightbox figcaption { padding: .75rem 1rem; font-size: .9rem; }
.lightbox .x { position: absolute; top: 8px; right: 8px; z-index: 2; color: #fff; background: rgb(0 0 0 / .5); border-radius: 50%; width: 44px; height: 44px; }
.lb-nav { position: absolute; top: 45%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); color: #111; font-size: 1.3rem; display: grid; place-items: center; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* Artículos */
.post-head { max-width: 820px; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: .75rem 0 1.25rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; color: var(--muted); font-size: .92rem; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.byline b { color: var(--ink); }
.post-cover { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 8; margin-top: 2rem; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; margin-top: 3rem; }
@media (min-width: 1100px) { .post-grid { grid-template-columns: minmax(0, 1fr) 280px; } .toc { position: sticky; top: 96px; align-self: start; order: 2; } }
.toc { background: var(--surface); border-radius: var(--r-card); padding: 1.25rem 1.5rem; font-size: .92rem; }
.toc h2 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .75rem; }
.toc ol { display: grid; gap: .5rem; padding-left: 1.1rem; list-style: decimal; }
.toc a { text-decoration: none; } .toc a:hover { color: var(--primary); }
.prose { max-width: 72ch; font-size: 1.075rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 3rem; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; list-style: revert; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--secondary); font-weight: 600; text-decoration-color: var(--tertiary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--tertiary); background: var(--surface); border-radius: 0 14px 14px 0; font-size: 1.1rem; }
.prose blockquote cite { display: block; font-size: .9rem; color: var(--muted); font-style: normal; margin-top: .5rem; }
.tbl { overflow-x: auto; border-radius: 14px; background: var(--surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--card); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tldr { background: var(--surface); border-radius: var(--r-card); padding: 1.5rem; border-left: 6px solid var(--tertiary); }
.prose .tldr h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.inline-cta { background: var(--card); border-radius: var(--r-card); padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.inline-cta p { margin: 0; font-weight: 600; max-width: 46ch; line-height: 1.5; }
.sources { font-size: .92rem; color: var(--muted); }
.sources li { word-break: break-word; }
.author-box { display: flex; gap: 1.25rem; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 1.5rem; margin-top: 3rem; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.author-box p { color: var(--muted); font-size: .95rem; }
.author-box b { color: var(--ink); display: block; font-size: 1.05rem; }

/* Blog: listado */
.post-list { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 2rem; }
@media (min-width: 900px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.post-card:hover { transform: translateY(-4px); }
.post-card .img { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.5rem; display: grid; gap: .6rem; }
.post-card small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--secondary); }
.post-card h2 { font-size: 1.3rem; }
.post-card p { color: var(--muted); font-size: .95rem; }

/* Legales */
.legal-doc { max-width: 76ch; }
.legal-doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.legal-doc h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal-doc > * + * { margin-top: 1rem; }
.legal-doc ul { padding-left: 1.25rem; list-style: revert; }
.legal-doc p, .legal-doc li { color: #3d3a36; line-height: 1.7; }

/* ===== Landing de anuncios ===== */
.lp-hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.lp-hdr-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 640px) { .lp-hdr .btn { display: none; } }
.lp-ft { padding: 2rem 0 3rem; font-size: .82rem; color: var(--muted); }
.lp-ft a { color: var(--muted); }
.lp-mbar .btn { grid-column: 1 / -1; }
.lp-hero { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) { .lp-hero { grid-template-columns: 1.1fr .9fr; align-items: stretch; } }
.lp-photo { border-radius: var(--r-card); overflow: hidden; min-height: 280px; position: relative; }
.lp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-panel { background: var(--secondary); color: #F4EFEB; border-radius: var(--r-card); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.1rem; align-content: center; }
.lp-panel .label { color: var(--tertiary); margin: 0; justify-self: start; }
.lp-panel h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lp-panel h1 mark { background: var(--tertiary); color: var(--ink); padding: 0 .12em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-panel > p:not(.label) { color: #DCD6CC; font-size: 1.1rem; }
.lp-panel .btn-tan { box-shadow: none; border-color: var(--tertiary); justify-self: start; font-size: 1.1rem; padding: 1.1rem 1.75rem; }
.lp-points { display: grid; gap: .5rem; }
.lp-points li { display: flex; gap: .55rem; align-items: start; color: #EAE5DC; }
.lp-points .ph { color: var(--tertiary); margin-top: 4px; }
.lp-form { background: var(--surface); border-radius: var(--r-card); padding: clamp(1.25rem, 4vw, 2.5rem); border: 2px solid var(--secondary); scroll-margin-top: 84px; }
.lp-form h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.progress { margin: 1rem 0 1.5rem; }
.progress span { font-size: .85rem; font-weight: 700; color: var(--secondary); }
.progress i { display: block; height: 8px; border-radius: 999px; background: var(--card); margin-top: .4rem; overflow: hidden; }
.progress i::after { content: ""; display: block; height: 100%; width: calc(var(--p, .5) * 100%); background: var(--primary); border-radius: inherit; transition: width .5s cubic-bezier(.16,1,.3,1); }
.choice { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-weight: 700; margin-bottom: .6rem; }
.choice label { display: flex; gap: .75rem; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.choice label:hover { border-color: var(--primary); }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); flex: none; }
.choice label:has(input:checked) { border-color: var(--secondary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.choice small { color: var(--muted); display: block; font-size: .85rem; }
.choice.inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.step-nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.lp-form [data-next], .lp-form [type=submit] { font-size: 1.05rem; padding: 1.05rem 1.75rem; }
.proj-grid.three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .proj-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proj a.img { display: block; }
.proj h3 a { text-decoration: none; } .proj h3 a:hover { color: var(--primary); }
.proj-grid.three .kv b { font-size: 1rem; }
.lp-ft { background: none; color: var(--muted); }
