/* PAQU · Arquitectura — estilos del sitio público */
:root {
  --paper: #f3f0ea;
  --paper-2: #e9e4da;
  --card: #fbfaf7;
  --white: #ffffff;
  --ink: #1c1b19;
  --ink-2: #3a3833;
  --muted: #6c675d;
  --line: #d9d2c5;
  --line-2: #c4bba9;
  --olive: #46553e;
  --olive-2: #5c6e50;
  --olive-50: #e6eadf;
  --clay: #a95f3a;
  --ok: #3f7a4a;
  --warn: #8a5a12;
  --warn-bg: #f6ecd6;
  --danger: #a23b2a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 27, 25, .06), 0 2px 8px rgba(28, 27, 25, .05);
  --shadow: 0 10px 30px rgba(28, 27, 25, .08);
  --shadow-lg: 0 24px 60px rgba(28, 27, 25, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
::selection { background: var(--olive); color: var(--paper); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; background: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--olive); }
.btn-olive { background: var(--olive); color: var(--white); }
.btn-olive:hover { background: var(--ink); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { border-color: rgba(243, 240, 234, .4); color: var(--paper); }
.btn-outline-light:hover { border-color: var(--paper); background: rgba(243, 240, 234, .08); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 240, 234, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 1.3; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a.active { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; place-items: center; }
.mobile-nav { display: none; }
@media (max-width: 1020px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 28px 24px; display: grid; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; box-shadow: var(--shadow); }
  .mobile-nav a:not(.btn) { text-decoration: none; padding: 14px 4px; font-family: var(--display); font-size: 22px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 16px; }
}
@media (max-width: 560px) { .brand-sub { display: none; } .brand img { height: 26px; } }

/* ---------- utilidades de sección ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 520px; }
.section-head .head-link { justify-self: start; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(28, 27, 25, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 27, 25, .055) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); margin: 0 0 28px; letter-spacing: -.035em; font-weight: 600; }
.hero h1 .serif { font-weight: 400; color: var(--olive); letter-spacing: -.02em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; margin: 0 0 36px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-tags span { font-size: 13px; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: rgba(251, 250, 247, .6); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art polygon, .hero-art line, .hero-art ellipse, .hero-art circle { stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.hero-art .vol.top { fill: var(--card); }
.hero-art .vol.side-x { fill: var(--paper-2); }
.hero-art .vol.side-y { fill: var(--paper); }
.hero-art .glass { fill: rgba(70, 85, 62, .16); stroke-width: 1; }
.hero-art .thin, .hero-art .louver { stroke-width: .8; }
.hero-art .planter.top { fill: var(--olive-50); }
.hero-art .planter.side-x { fill: var(--paper-2); }
.hero-art .planter.side-y { fill: var(--card); }
.hero-art .plant { stroke: var(--olive); fill: rgba(70, 85, 62, .12); }
.hero-art .trunk { stroke: var(--olive); stroke-width: 1.6; }
.hero-art .site { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 4 5; }
.hero-art .dim { stroke: var(--muted); stroke-width: .8; }
.hero-art .dim-t { font: 500 10px var(--font); fill: var(--muted); letter-spacing: .08em; }
.hero-art .north { fill: var(--ink); stroke: none; }
.hero-art .draw { --d: 0s; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: draw 2s cubic-bezier(.65, 0, .35, 1) forwards var(--d), fillin 1s ease forwards calc(var(--d) + 1.5s); }
.hero-art .d2 { --d: .35s; } .hero-art .d3 { --d: .7s; } .hero-art .d4 { --d: 1.05s; }
.hero-art .fade { opacity: 0; animation: fade 1s ease forwards 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
.hero-note { position: absolute; left: -8px; bottom: 6%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: 14px; max-width: 280px; }
.hero-note b { display: block; font-family: var(--display); font-size: 15px; }
.hero-note small { color: var(--muted); }
.hero-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(63, 122, 74, .15); flex: none; }
@media (prefers-reduced-motion: reduce) { .hero-art .draw { animation: none; stroke-dashoffset: 0; fill-opacity: 1; } .hero-art .fade { animation: none; opacity: 1; } }
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: center; max-width: 440px; }
}

/* ---------- servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.service { padding: 36px 32px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; position: relative; transition: background .3s; }
.service:last-child { border-right: 0; }
.service:hover { background: var(--card); }
.service .num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.service .s-ic { width: 64px; height: 64px; color: var(--olive); }
.service h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 0; }
.service > p { margin: 0; color: var(--ink-2); }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.service li::before { content: ""; width: 12px; height: 1px; background: var(--olive); margin-top: 12px; }
.service li b { color: var(--ink); font-weight: 600; }
.service .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 4px; }
}

/* ---------- tarjetas de proyecto ---------- */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 28px; }
.pcard { grid-column: span 4; text-decoration: none; display: block; }
.projects.featured .pcard:nth-child(1) { grid-column: span 7; }
.projects.featured .pcard:nth-child(2) { grid-column: span 5; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); }
.projects.featured .pcard:nth-child(-n+2) .pcard-media { aspect-ratio: 5 / 4; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.pcard-media .badge { position: absolute; left: 14px; top: 14px; background: rgba(251, 250, 247, .94); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.pcard-body { padding-top: 16px; display: grid; gap: 6px; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.pcard h3 { font-size: clamp(20px, 2vw, 26px); margin: 0; transition: color .2s; }
.pcard:hover h3 { color: var(--olive); }
@media (max-width: 980px) { .pcard, .projects.featured .pcard:nth-child(n) { grid-column: span 6; } }
@media (max-width: 620px) { .projects { grid-template-columns: minmax(0, 1fr); gap: 32px; } .pcard, .projects.featured .pcard:nth-child(n) { grid-column: auto; } .projects.featured .pcard:only-child .pcard-media { aspect-ratio: 4 / 3; } }

/* ---------- proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px 0 0; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--display); font-size: 56px; font-weight: 300; color: var(--olive); letter-spacing: -.04em; line-height: 1; margin-bottom: 24px; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 1px; background: var(--line-2); }
.step .tick { position: absolute; left: 0; top: 68px; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); z-index: 1; }
.step h3 { font-size: 21px; margin: 40px 0 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; gap: 48px 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- tarjetas de artículo ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.post-media { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); position: relative; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.post:hover .post-media img { transform: scale(1.04); }
.post-media .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--olive); text-align: center; line-height: 1.15; background: var(--olive-50); }
.post-cat { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.post h3 { font-size: 22px; margin: 0; transition: color .2s; }
.post:hover h3 { color: var(--olive); }
.post p { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.post.big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; grid-column: 1 / -1; }
.post.big .post-media { aspect-ratio: 16 / 11; }
.post.big h3 { font-size: clamp(28px, 3.4vw, 44px); }
.post.big p { font-size: 17px; -webkit-line-clamp: 4; }
.post.big .post-body { display: grid; gap: 16px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } .post.big { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* ---------- estudio / sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .mark { position: absolute; inset: 0; display: grid; place-items: center; background: var(--olive); }
.about-photo .mark img { width: 62%; height: auto; object-fit: contain; }
.about h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 0 0 24px; }
.about .text { font-size: 18px; color: var(--ink-2); white-space: pre-line; }
.about .text p { margin: 0 0 16px; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line-2); }
.about-facts div { padding: 18px 16px 0 0; }
.about-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.about-facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 18px; font-weight: 500; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }
@media (max-width: 520px) { .about-facts { grid-template-columns: 1fr; } }

/* ---------- contacto ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: #b8c4a8; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(36px, 5vw, 64px); margin: 0 0 20px; }
.contact h2 .serif { color: #c9d3bb; }
.contact .lead { color: rgba(243, 240, 234, .78); font-size: 18px; margin: 0 0 36px; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; border-top: 1px solid rgba(243, 240, 234, .16); }
.contact-list li { border-bottom: 1px solid rgba(243, 240, 234, .16); }
.contact-list a, .contact-list span.row { display: flex; align-items: center; gap: 14px; padding: 18px 0; text-decoration: none; font-size: 17px; }
.contact-list a:hover { color: #c9d3bb; }
.contact-list small { display: block; color: rgba(243, 240, 234, .6); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 240, 234, .3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: 24px; margin: 0 0 6px; }
.form-card > p { margin: 0 0 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.input { display: grid; gap: 6px; }
.input label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input input, .input select, .input textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white); font-size: 15px; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.input textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input input:focus, .input select:focus, .input textarea:focus { outline: 0; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(70, 85, 62, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 500; }
.form-msg.ok { background: var(--olive-50); color: var(--olive); }
.form-msg.err { background: #f7e3de; color: var(--danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; }

/* ---------- pie ---------- */
.site-footer { background: var(--ink); color: rgba(243, 240, 234, .78); padding: 72px 0 32px; border-top: 1px solid rgba(243, 240, 234, .12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer p { margin: 0; max-width: 340px; font-size: 15px; }
.site-footer h4 { font-family: var(--font); color: var(--paper); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 6px 0 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.site-footer a:hover { color: var(--paper); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(243, 240, 234, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: rgba(243, 240, 234, .55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float[hidden] { display: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- páginas de listado ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); margin: 0 0 18px; letter-spacing: -.035em; }
.page-hero h1 .serif { color: var(--olive); }
.page-hero p { margin: 0; color: var(--ink-2); font-size: 19px; max-width: 640px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 28px 0 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; background: var(--card); min-width: 260px; }
.search input { border: 0; background: none; padding: 10px 0; outline: 0; width: 100%; font-size: 15px; }
.search .icon { color: var(--muted); width: 18px; }
.empty { padding: 72px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty b { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.more { display: flex; justify-content: center; margin-top: 56px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- artículo ---------- */
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--clay); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 10px 16px; }
.preview-bar + .site-header { top: 41px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.art-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.art-head .inner { max-width: 860px; }
.art-cat { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: 18px; }
.art-head h1 { font-size: clamp(36px, 5.4vw, 68px); margin: 0 0 22px; letter-spacing: -.03em; }
.art-head .resumen { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); margin: 0 0 28px; line-height: 1.5; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.art-meta span::before { content: "·"; margin-right: 18px; }
.art-cover { margin: 0 auto clamp(40px, 6vw, 72px); max-width: 1240px; padding: 0 28px; }
.art-cover img { width: 100%; border-radius: var(--radius); max-height: 78vh; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 0 40px; }
.art-layout > * { grid-column: 2; }
.art-aside { grid-column: 3; grid-row: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; max-width: 260px; }
.toc { border-left: 1px solid var(--line-2); padding-left: 18px; }
.toc-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--olive); }
@media (max-width: 1180px) { .art-layout { grid-template-columns: minmax(0, 1fr); padding: 0 28px; } .art-layout > *, .art-aside { grid-column: 1; } .art-aside { position: static; grid-row: auto; max-width: none; margin-bottom: 32px; } .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; } }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); color: var(--ink); margin: 1.8em 0 .6em; }
.prose h3 { font-size: clamp(21px, 2.2vw, 26px); color: var(--ink); margin: 1.6em 0 .5em; }
.prose a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--olive); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--olive); }
.prose blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--ink); margin: 0; }
.prose blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); }
.prose blockquote cite::before { content: "— "; }
.prose .callout { background: var(--olive-50); border-radius: var(--radius-sm); padding: 20px 24px; border-left: 3px solid var(--olive); }
.prose .callout p { margin: 0; color: var(--ink); font-size: 17px; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 3em 0; }
.prose figure { margin: 2.2em 0; }
.prose figure img, .prose figure video { width: 100%; border-radius: var(--radius-sm); background: var(--paper-2); }
.prose figure.wide { margin-left: min(-160px, calc((720px - 100vw) / 2 + 28px)); margin-right: min(-160px, calc((720px - 100vw) / 2 + 28px)); }
@media (max-width: 1180px) { .prose figure.wide { margin-left: 0; margin-right: 0; } }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.prose img[data-zoom] { cursor: zoom-in; }
.gallery { display: grid; gap: 10px; }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery.g4 { grid-template-columns: repeat(4, 1fr); }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; height: 100%; }
.gallery.g1 img { aspect-ratio: auto; }
@media (max-width: 620px) { .gallery.g3, .gallery.g4 { grid-template-columns: 1fr 1fr; } }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-dl { display: inline-flex !important; align-items: center; gap: 16px; text-decoration: none !important; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 20px 14px 14px; background: var(--card); transition: border-color .2s; }
.doc-dl:hover { border-color: var(--olive); }
.doc-dl .doc-ic { width: 48px; height: 56px; border-radius: 6px; background: var(--clay); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.doc-dl b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.doc-dl small { color: var(--muted); font-size: 13px; }

.art-foot { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tags a:hover { background: var(--ink); color: var(--paper); }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: none; display: grid; place-items: center; color: var(--ink); transition: all .2s; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share .icon { width: 18px; height: 18px; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; margin-top: 40px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box .av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--olive); display: grid; place-items: center; }
.author-box .av img { width: 100%; height: 100%; object-fit: cover; }
.author-box .av img.mk { width: 70%; height: auto; object-fit: contain; }
.author-box b { font-family: var(--display); font-size: 18px; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.cta-band { background: var(--olive); color: var(--white); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 17px; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- proyecto ---------- */
.proj-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 40px); }
.proj-head .grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px 64px; align-items: end; }
.proj-head h1 { font-size: clamp(40px, 6vw, 84px); margin: 0 0 18px; letter-spacing: -.035em; }
.proj-head .resumen { font-size: 20px; color: var(--ink-2); margin: 0; max-width: 640px; }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; border-top: 1px solid var(--ink); }
.ficha div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ficha dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ficha dd { margin: 4px 0 0; font-family: var(--display); font-size: 18px; font-weight: 500; }
@media (max-width: 860px) { .proj-head .grid { grid-template-columns: 1fr; } }
.proj-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 clamp(48px, 7vw, 96px); }
.pg-item { margin: 0; position: relative; }
.pg-item.big { grid-column: 1 / -1; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--paper-2); }
.pg-item.big img { aspect-ratio: 16 / 9; }
.pg-item video { width: 100%; border-radius: var(--radius-sm); background: var(--ink); }
.pg-item.video { grid-column: 1 / -1; }
.pg-item figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 620px) { .proj-gallery { grid-template-columns: 1fr; } }

/* ---------- visor de fotos ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(20, 19, 17, .96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1800px); max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .16); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }
@media (max-width: 620px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-size: clamp(64px, 12vw, 160px); margin: 0; font-weight: 300; letter-spacing: -.05em; color: var(--olive); }
.nf p { color: var(--ink-2); font-size: 19px; margin: 8px 0 32px; }
.proj-foot { margin-top: clamp(40px, 6vw, 72px); }
.proj-foot .art-foot { margin-top: 0; border-top: 0; padding-top: 0; }
.projects.featured .pcard:only-child { grid-column: 1 / -1; }
@media (min-width: 621px) { .projects.featured .pcard:only-child .pcard-media { aspect-ratio: 21 / 9; } }
