/* Brand book v7: Papel, Tinta, Bugambilia (diseño), Cempasúchil (tecnología). Newsreader + Archivo. */
:root {
  --papel: #F6F0DE;
  --tinta: #111111;
  --bugambilia: #FCB9EF;
  --cempasuchil: #EE5B20;
  --muted: #5E5A4D;
  --line: rgba(17, 17, 17, 0.16);
  --pad: clamp(20px, 4.5vw, 56px);
  --max: 940px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: var(--papel); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.display, h1.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(40px, 7.2vw, 104px);
}
.display em { font-style: italic; }
.h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; font-size: clamp(28px, 4vw, 52px); }
.h2 em { font-style: italic; }
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; max-width: 40em; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.brand em { font-style: normal; }
.brand:hover, .brand:focus-visible { font-style: italic; }
.brand:hover em, .brand:focus-visible em { font-style: italic; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: var(--tinta); }
.nav a[aria-current="page"] { border-bottom-color: var(--tinta); }
.nav .lang { font-size: 12px; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--tinta); border-radius: 999px; padding: 3px 11px; }
.nav .lang:hover { background: var(--tinta); color: var(--papel); }

/* Sections */
main { display: block; }
.section { padding: clamp(48px, 8vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.hero { padding: clamp(56px, 10vw, 150px) 0 clamp(40px, 6vw, 88px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero .lede { margin-top: 28px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--tinta); transition: background .15s, color .15s; }
.btn.solid { background: var(--tinta); color: var(--papel); }
.btn.solid:hover { background: var(--bugambilia); border-color: var(--bugambilia); color: var(--tinta); }
.btn.ghost:hover { background: var(--tinta); color: var(--papel); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; font-size: 15px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: block; text-decoration: none; }
.card .art {
  aspect-ratio: 4 / 5; border-radius: 6px; padding: clamp(18px, 2vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
  transition: transform .25s ease;
}
.card:hover .art { transform: translateY(-4px); }
.card .art .tags { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card .art .name { font-family: var(--serif); font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -0.02em; }
.card .art .name em { font-style: italic; }
.card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .art.has-img > *:not(img) { position: relative; z-index: 1; }
.card .info { padding-top: 14px; display: grid; gap: 4px; }
.card .info .t { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.card .info .s { color: var(--muted); font-size: 15px; line-height: 1.45; }
.card .info .y { font-size: 13px; color: var(--muted); }
.on-dark { color: var(--papel); }

/* Bands */
.band { border-radius: 8px; padding: clamp(28px, 5vw, 64px); }
.band.lab { background: var(--cempasuchil); color: var(--tinta); }
.band .h2 { max-width: 18em; }
.band p.lede { margin-top: 18px; max-width: 34em; }
.band .actions { margin-top: 28px; }

.brand-strip { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs a { display: block; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.thumbs a:hover img { transform: scale(1.04); }

/* Page headers */
.page-head { padding: clamp(48px, 8vw, 120px) 0 clamp(32px, 5vw, 64px); }
.page-head .eyebrow { margin-bottom: 20px; }
.page-head .lede { margin-top: 24px; color: var(--muted); }

/* Case study */
.case-hero { border-radius: 8px; overflow: hidden; margin-top: 8px; }
.case-hero.block { aspect-ratio: 16 / 7; display: flex; align-items: flex-end; padding: clamp(20px, 3vw, 40px); }
.case-hero.block .name { font-family: var(--serif); font-size: clamp(48px, 10vw, 140px); line-height: .9; letter-spacing: -0.03em; }
.case-hero img { width: 100%; height: auto; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 32px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 36px 0 0; }
.meta dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta dd { font-size: 16px; line-height: 1.45; }
.case-intro { padding: clamp(36px, 6vw, 80px) 0 0; max-width: 46em; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; }
.case-sec { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 5vw, 80px); padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.case-sec:first-of-type { margin-top: clamp(32px, 5vw, 64px); }
.case-sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
.case-sec .body > * + * { margin-top: 1em; }
.case-sec ul.list { display: grid; gap: 10px; }
.case-sec ul.list li { padding-left: 22px; position: relative; }
.case-sec ul.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--bugambilia); }
.case-sec figure { margin: 0; }
.case-sec figure img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 36px 0 64px; }
.case-next a.big { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; text-decoration: none; }
.case-next a.big:hover { font-style: italic; }

/* Brand page collages */
.brand-proj { padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.brand-proj:first-of-type { border-top: 0; }
.brand-proj header { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 5vw, 80px); margin-bottom: 28px; }
.brand-proj h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.brand-proj .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.collage { display: grid; gap: 8px; grid-template-columns: var(--cols); grid-template-rows: var(--rows); grid-template-areas: var(--areas); }
.collage .cell { grid-area: var(--a); overflow: hidden; border-radius: 4px; background: var(--line); }
.collage .cell img { width: 100%; height: 100%; object-fit: cover; }
.foot2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.foot2 .l { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Lab */
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.lab-card { border: 1.5px solid var(--tinta); border-radius: 8px; display: flex; flex-direction: column; background: var(--papel); }
.lab-card .top { padding: 22px 24px; border-bottom: 1.5px solid var(--tinta); display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.lab-card .top h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.02em; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--tinta); white-space: nowrap; }
.lab-card .sum { padding: 20px 24px 8px; }
.lab-card dl { padding: 8px 24px 8px; display: grid; gap: 14px; }
.lab-card dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lab-card dd { font-size: 15.5px; line-height: 1.5; }
.lab-card .go { margin-top: auto; padding: 18px 24px 22px; }
.lab-card .go a { font-weight: 600; }
.lab-card .note { font-size: 13px; color: var(--muted); padding: 0 24px; }
.lab-soon { margin-top: 28px; padding: 22px 24px; border: 1.5px dashed var(--muted); border-radius: 8px; color: var(--muted); }

/* About / Contact */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.about-photo { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-body > * + * { margin-top: 1.1em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .l { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin-top: 4px; }
.facts .s { font-size: 14px; color: var(--muted); }
.toolkit { margin-top: 40px; }
.toolkit ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.toolkit li { border: 1.5px solid var(--tinta); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.toolkit li span { color: var(--muted); margin-left: 6px; font-size: 12px; }
.mail { display: inline-flex; gap: 14px; align-items: baseline; font-family: var(--serif); font-size: clamp(26px, 5.2vw, 64px); letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--tinta); padding-bottom: 4px; word-break: break-word; }
.mail:hover { border-bottom-color: var(--bugambilia); background: var(--bugambilia); }
.social { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.social a { font-weight: 600; }

/* About (mezcla: tono humano de Framer) */
.section.nb { border-top: 0; padding: clamp(28px, 5vw, 64px) 0; }
.about-wrap { max-width: var(--max); }
.hl { background: linear-gradient(transparent 58%, var(--bugambilia) 58%, var(--bugambilia) 93%, transparent 93%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.display.statement { font-size: clamp(34px, 5.8vw, 78px); line-height: 1.06; margin-top: 20px; }
.statement2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.12; letter-spacing: -0.015em; max-width: 20em; }
.js-reveal .w { color: #BDB6A2; transition: color .3s ease; }
.js-reveal .w.on { color: var(--tinta); }
.about-intro { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.about-photo.small { aspect-ratio: 1; border-radius: 50%; }
.about-body > * + * { margin-top: 1em; }
.line { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.line-link { margin-top: 18px; font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pgrid li { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--line); }
.pgrid li.ph { background: color-mix(in srgb, var(--tinta) 7%, var(--papel)); border: 1px dashed var(--line); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pgrid li:hover img { transform: scale(1.05); }
.about-p3 { margin: 28px 0 14px; max-width: 40em; color: var(--muted); }
.tk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.tk li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tk .logo { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; flex-shrink: 0; }
.tk b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.tk small { color: var(--muted); font-size: 13px; }
.case-sec.wide { grid-template-columns: 1fr; }
.proto { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.proto iframe { display: block; width: 100%; height: min(78vh, 760px); min-height: 460px; border: 0; }
@media (max-width: 700px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-photo.small { max-width: 180px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .tk { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card .art { aspect-ratio: 16 / 11; }
  .brand-strip, .about-grid, .case-sec, .brand-proj header { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .about-photo { max-width: 420px; }
  .case-hero.block { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-template-areas: none; gap: 6px; }
  .collage .cell { grid-area: auto; aspect-ratio: 1; }
  .collage .cell:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .foot2 { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Case studies: white page, narrow column, images first (Framer-like) */
body.case { --papel: #FFFFFF; background: #fff; }
body.case .site-header { border-bottom-color: #ececec; }
.wrap.narrow { max-width: var(--max); }
.case .case-hero img, .case .figs img { width: 100%; height: auto; display: block; }
.case .case-sec { display: block; border-top: 0; padding: clamp(28px, 4vw, 52px) 0; }
.case .case-sec:first-of-type { margin-top: 0; }
.case .case-sec .figs { display: grid; gap: clamp(12px, 2vw, 20px); margin-top: clamp(22px, 3vw, 34px); }
.case .case-sec .carousel { margin-top: clamp(22px, 3vw, 34px); }
.case .case-sec figure img { border: 0; border-radius: 10px; }
.case .case-sec .txt { max-width: 38em; }
.case .case-sec .txt > * + * { margin-top: 1em; }
.case .case-sec h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: .2em; }
.case .case-sec .txt p { font-size: 17px; line-height: 1.6; }
.case .meta { border-color: #ececec; }
.case .case-next { border-top-color: #ececec; }
.case .proto { border-color: #e4e4e4; }

.case .intro-fig { margin: clamp(28px, 4vw, 48px) 0 0; }
.case .intro-fig img { width: 100%; height: auto; display: block; border-radius: 10px; }
.case .carousel .track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 0; border-radius: 10px; }
.case .carousel .track::-webkit-scrollbar { display: none; }
.case .carousel .track figure { flex: 0 0 100%; scroll-snap-align: start; }
.case .car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.case .car-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tinta); background: transparent; color: var(--tinta); font-size: 16px; cursor: pointer; }
.case .car-nav button:hover { background: var(--tinta); color: #fff; }

/* Ampliar imagen */
.case img[data-full] { cursor: zoom-in; }
.case img[data-full]:focus-visible { outline: 2px solid var(--tinta); outline-offset: 4px; }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.zoom::backdrop { background: rgba(17,17,17,.88); }
.zoom-box { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.zoom-box img { display: block; max-width: none; width: min(100%, 2400px); height: auto; border-radius: 8px; cursor: zoom-out; background: #fff; }
.zoom-x { position: fixed; top: 14px; right: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bugambilia); color: var(--tinta); font-size: 26px; line-height: 1; cursor: pointer; }

/* Branding: retícula tipo selected work */
.works { list-style: none; margin: 0; padding: 0 0 clamp(48px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 40px) clamp(12px, 1.6vw, 22px); }
.work { display: block; text-decoration: none; }
.work .im { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--line); }
.work .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .6s ease; }
.work .im img.h { opacity: 0; }
.work:hover .im img.h, .work:focus-visible .im img.h { opacity: 1; }
.work:hover .im img { transform: scale(1.03); }
.work .nm { display: block; margin-top: 12px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -0.01em; }
.work .ty { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.work:hover .nm { text-decoration: underline; text-decoration-color: var(--bugambilia); text-decoration-thickness: 2px; text-underline-offset: 4px; }
dialog.proj { border: 0; padding: 0; background: var(--papel); color: var(--tinta); width: min(1100px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0 auto; overflow-y: auto; }
dialog.proj::backdrop { background: rgba(17,17,17,.7); }
.proj-in { padding: clamp(56px, 7vw, 88px) var(--pad) clamp(40px, 6vw, 72px); }
.proj-x { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tinta); background: var(--papel); color: var(--tinta); font-size: 24px; line-height: 1; cursor: pointer; }
.proj-x:hover { background: var(--tinta); color: var(--papel); }
.proj header { max-width: 46em; margin-bottom: clamp(24px, 4vw, 44px); }
.proj h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 18px; }
.masonry { columns: 2; column-gap: 10px; }
.masonry img { display: block; width: 100%; height: auto; margin: 0 0 10px; border-radius: 4px; break-inside: avoid; background: var(--line); }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .works { grid-template-columns: repeat(2, 1fr); } .masonry { columns: 1; } }

/* About: jerarquía tipográfica (sin marcador rosa) */
.hl { background: none; }
.display.statement { font-size: clamp(38px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.025em; }
.about-body .lede { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--tinta); letter-spacing: -0.005em; }
.about-body p:not(.lede) { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.h-sec { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.015em; max-width: 22em; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.statement2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.2; max-width: 24em; }
.eb-mark::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; background: var(--bugambilia); border-radius: 50%; vertical-align: 1px; }
.about-p3 { font-size: 17px; line-height: 1.6; }
.line-link a { text-decoration: underline; text-decoration-color: var(--bugambilia); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.line-link a:hover, .about-wrap p > a:hover { background: var(--bugambilia); }
.zoom-x { background: var(--bugambilia); }
.card .art.has-img { padding: 0; }

/* Escala tipográfica contenida + ancho único */
.display, h1.display { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; }
.display.statement { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; }
.h1-sub { display: block; margin-top: .45em; font-size: .5em; line-height: 1.25; letter-spacing: -0.01em; color: var(--muted); }
.h2 { font-size: clamp(24px, 3vw, 38px); }
.statement2 { font-size: clamp(26px, 3.2vw, 40px); }
.statement2 .h1-sub { font-size: .55em; }
.h-sec { font-size: clamp(22px, 2.6vw, 32px); }
.case-intro { font-size: clamp(20px, 2.2vw, 26px); }
.brand-proj h2, .lab-card .top h2 { font-size: clamp(24px, 3vw, 36px); }
.card .art .name { font-size: clamp(30px, 3.6vw, 48px); }
.works { grid-template-columns: repeat(3, 1fr); }
.proj h2 { font-size: clamp(32px, 4.4vw, 52px); }
dialog.proj { width: min(960px, calc(100vw - 32px)); height: calc(100vh - 64px); max-height: calc(100vh - 64px); margin: 32px auto; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.proj-x { top: 12px; margin: 12px 12px 0 0; }
.proj-in { padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(32px, 5vw, 56px); }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .works { grid-template-columns: repeat(2, 1fr); } dialog.proj { width: calc(100vw - 16px); height: calc(100vh - 32px); max-height: calc(100vh - 32px); margin: 16px auto; } }

/* Círculos y enlaces: Bugambilia; Cempasúchil queda para navegación */
.tk .logo { background: var(--bugambilia) !important; color: var(--tinta); }
.actions .btn.ghost:hover { background: var(--bugambilia); border-color: var(--bugambilia); color: var(--tinta); }
.link-arrow { text-decoration: none; border-bottom: 1.5px solid var(--tinta); }
.link-arrow:hover { border-bottom-color: var(--bugambilia); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cempasuchil); border-bottom-width: 2px; }
.nav .lang:hover { background: var(--cempasuchil); border-color: var(--cempasuchil); color: var(--tinta); }

/* About: más aire y texto lateral tipo comentario */
.about-intro { gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-body .lede { font-family: var(--sans); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; letter-spacing: 0; max-width: 28em; }
.about-body p:not(.lede) { font-size: 15px; line-height: 1.55; max-width: 28em; }
.about-body > * + * { margin-top: .75em; }
.h-sec { margin-bottom: clamp(28px, 3.6vw, 44px); }
.pgrid { gap: 12px; }
.line-link { margin-top: clamp(28px, 3.4vw, 40px); }
.section.nb { padding: clamp(40px, 6vw, 80px) 0; }
.about-p3 { margin: 28px 0 22px; }
.statement2 .h1-sub { color: var(--muted); }

/* Contacto: correo con jerarquía menor que el H1 */
.mail { font-size: clamp(20px, 2.8vw, 32px); word-break: normal; overflow-wrap: anywhere; padding-bottom: 6px; }
.mail span, .mail svg { font-size: .8em; }

.section[id] { scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Branding modal: texto descriptivo más pequeño, cerrar en Bugambilia */
.proj .lede { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; max-width: 36em; }
.proj .foot2 p:not(.l) { font-size: 15px; line-height: 1.55; }
.proj-x { background: var(--bugambilia); border-color: var(--tinta); }
.proj-x:hover { background: var(--tinta); color: var(--bugambilia); }

/* Estado activo/foco de campos: Cempasúchil (nunca el azul del navegador) */
input:focus, textarea:focus, select:focus, .lib-search:focus { outline: none; border-color: var(--cempasuchil); box-shadow: none; }

/* Cerrar del modal: círculo rosa sin contorno */
.proj-x { border: 0; }
.proj-x:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cempasuchil); }

/* Subsecciones de casos (p. ej. Flujo de creación dentro de Presupuestos) */
.case .case-sec.sub { padding-top: 0; }
.case .case-sec.sub h2 { font-size: clamp(20px, 2.1vw, 26px); }
.case .case-sec .txt ul.list + p { margin-top: 1.2em; }

/* Menú fijo (sticky). --hdr = alto real del encabezado, medido por script */
:root { --hdr: 72px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--papel); }
.section[id] { scroll-margin-top: calc(var(--hdr) + 24px); }

/* Tarjetas con foto: por defecto el color con nombre y año; al pasar el cursor aparece la foto */
.card .art.swap img { opacity: 0; transition: opacity .35s ease; }
.card:hover .art.swap img, .card:focus-visible .art.swap img { opacity: 1; }
@media (hover: none) { .card .art.swap img { display: none; } }
@media (prefers-reduced-motion: reduce) { .card .art.swap img { transition: none; } }
