/* ===== Fuentes (autoalojadas) ===== */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/intertight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/intertight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrumentserif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrumentserif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --ink: #060709;
    --ink-2: #0e1014;
    --line: rgba(255, 255, 255, .1);
    --paper: #f3f1ec;
    --muted: #8f95a0;
    --cyan: #4ebcd4;
    --alert: #ff4d3d;
    --acid: #e8ff59;
    --display: 'Inter Tight', system-ui, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --body: 'Inter Tight', system-ui, -apple-system, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --pad: clamp(20px, 4vw, 56px);
    --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .9; letter-spacing: -.055em; margin: 0; }
/* Palabra destacada en cursiva serif */
h1 em, h2 em, h3 em, .cta em, .manifesto em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--cyan); padding-right: .04em; }
.wrap { padding-inline: var(--pad); max-width: 1500px; margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.tag { color: var(--alert); margin: 0 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--cyan); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--alert); color: #fff; }

/* ===== Telón de entrada ===== */
.curtain { display: none; }
.js .curtain { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--alert); pointer-events: none; }
.js .curtain img { width: 160px; height: auto; filter: brightness(0) invert(1); }

/* ===== Cursor ===== */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); mix-blend-mode: difference; pointer-events: none; display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; opacity: 0; }
.cursor__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--alert); }
.cursor.is-label .cursor__label { opacity: 1; color: #fff; }
@media (hover: none) { .cursor { display: none; } }

.progress { position: fixed; left: 0; top: 0; z-index: 120; height: 2px; width: 100%; background: var(--alert); transform-origin: left; transform: scaleX(0); }

/* ===== Cabecera ===== */
.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 36px; padding: 18px var(--pad); transition: transform .5s var(--ease); mix-blend-mode: normal; }
.nav.is-hidden { transform: translateY(-110%); }
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6, 7, 9, .75), transparent); pointer-events: none; z-index: -1; }
.nav__logo img { height: 36px; width: auto; }
.nav > nav { margin-left: auto; }
.nav__links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: .95rem; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

/* ===== Botones ===== */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; overflow: hidden; isolation: isolate; white-space: nowrap; border: 1px solid transparent; }
.pill span { position: relative; z-index: 1; display: inline-block; transition: transform .5s var(--ease); }
.pill::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.pill:hover::before { transform: translateY(0); }
.pill--alert { background: #d92d20; color: #fff; }
.pill--alert::before { background: var(--paper); }
.pill--alert:hover { color: var(--ink); }
.pill--light { background: var(--paper); color: var(--ink); }
.pill--light::before { background: var(--alert); }
.pill--light:hover { color: #fff; }
.pill--ghost { border-color: rgba(255, 255, 255, .3); color: var(--paper); }
.pill--ghost::before { background: var(--paper); }
.pill--ghost:hover { color: var(--ink); }
.pill--dark { background: var(--ink); color: var(--paper); }
.pill--dark::before { background: var(--alert); }

/* ===== Hero ===== */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; background: radial-gradient(80% 70% at 70% 30%, #0f3540, var(--ink) 70%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 7, 9, .85)); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(40px, 7vh, 80px); }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(16px, 3vh, 30px); color: #d5d9df; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 0 rgba(255, 77, 61, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 77, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0); } }
.hero__title { font-size: clamp(3rem, 10.6vw, 12.5rem); letter-spacing: -.065em; line-height: .86; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero__title .line--indent { padding-left: 12vw; }
.hero__title em { letter-spacing: -.03em; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: clamp(24px, 4vh, 44px); }
.hero__lead { max-width: 440px; margin: 0; color: #c9ced6; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { position: absolute; z-index: 2; right: var(--pad); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 70px; background: linear-gradient(var(--paper), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Palabras que aparecen */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; }

/* ===== Manifiesto ===== */
.manifesto { padding: clamp(110px, 18vw, 240px) var(--pad); max-width: 1500px; margin: 0 auto; }
.manifesto__text { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0; }
.js .manifesto__text .w > span { opacity: .14; }
.hl { color: var(--cyan); }
.hl--alert { color: var(--alert); }

/* ===== Trabajos ===== */
.works { position: relative; background: var(--paper); color: var(--ink); }
.works__pin { display: flex; align-items: center; min-height: 100svh; padding: 110px 0 60px var(--pad); overflow-x: auto; }
.js .works__pin { overflow: hidden; }
.works__head { flex: none; width: clamp(260px, 30vw, 480px); align-self: center; margin-right: clamp(10px, 3vw, 50px); }
.works__title { font-size: clamp(2.2rem, 3.7vw, 4.2rem); }
.works__hint { margin-top: 30px; color: #6a6f78; }
.works__track { display: flex; gap: clamp(18px, 2.4vw, 36px); padding-right: var(--pad); will-change: transform; }
.work { flex: none; width: clamp(300px, 46vw, 760px); text-decoration: none; color: inherit; }
.work__media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; border-radius: 18px; background: #ddd9cf; }
.work__media img { width: 118%; max-width: none; height: 100%; object-fit: cover; object-position: left top; transition: transform 1.2s var(--ease), filter .8s; will-change: transform; }
.work:hover .work__media img { transform: scale(1.04); }
.work__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.work__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 4px 0; }
.work__n { color: var(--alert); }
.work h3 { font-size: clamp(1.4rem, 2.2vw, 2.2rem); letter-spacing: -.03em; }
.work p { margin: 0; color: #5d626b; font-size: .92rem; flex-basis: 100%; }

/* ===== Más proyectos ===== */
.more { background: var(--paper); color: var(--ink); padding: 30px 0 110px; overflow: hidden; }
.marquee { display: flex; overflow: hidden; border-top: 1px solid rgba(0, 0, 0, .12); }
.marquee:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.marquee__track { display: flex; flex: none; will-change: transform; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5.5vw, 5.4rem); letter-spacing: -.04em; line-height: 1.25; white-space: nowrap; padding-right: .5em; }
.marquee span::after { content: "✺"; font-size: .45em; vertical-align: middle; color: var(--alert); margin-left: .5em; }
.marquee--rev span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.marquee--rev span::after { color: var(--cyan); font-style: normal; }

/* ===== Servicios ===== */
.services { padding: clamp(110px, 14vw, 190px) 0 clamp(60px, 8vw, 120px); }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.sec-title { font-size: clamp(2.5rem, 6vw, 6rem); max-width: 14ch; }
.sec-lead { max-width: 380px; color: #b5bac3; margin: 0; }
.stack { display: grid; gap: 22px; }
.stack__card { position: sticky; top: calc(90px + var(--i, 0) * 26px); min-height: min(68vh, 560px); padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--c); color: var(--ink); display: flex; flex-direction: column; transform-origin: center top; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6); }
.stack__card:nth-child(1) { --i: 0; }
.stack__card:nth-child(2) { --i: 1; color: #fff; }
.stack__card:nth-child(3) { --i: 2; }
.stack__card:nth-child(4) { --i: 3; }
.stack__top { display: flex; justify-content: space-between; opacity: .7; }
.stack__card h3 { font-size: clamp(3.4rem, 10vw, 10rem); letter-spacing: -.06em; margin: auto 0 22px; }
.stack__card p { max-width: 560px; font-size: clamp(1rem, 1.4vw, 1.2rem); margin: 0 0 30px; }
.stack__card .pill { align-self: flex-start; }
.stack__card:nth-child(2) .pill--dark { background: #fff; color: var(--ink); }
.stack__card:nth-child(2) .pill--dark::before { background: var(--ink); }
.stack__card:nth-child(2) .pill--dark:hover { color: #fff; }

/* ===== Método ===== */
.method { padding: clamp(80px, 10vw, 150px) 0; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: minmax(90px, 22vw) 1fr; gap: 30px; padding: clamp(26px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(78, 188, 212, .1), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); z-index: -1; }
.step:hover::before { transform: scaleX(1); }
.step__n { font-family: var(--serif); font-style: italic; font-size: clamp(3.4rem, 7.5vw, 7.5rem); font-weight: 400; line-height: .8; letter-spacing: -.03em; color: var(--cyan); }
.step h3 { font-size: clamp(1.7rem, 3vw, 2.8rem); margin-bottom: 12px; }
.step p { margin: 0; color: #b5bac3; max-width: 560px; }

/* ===== Zonas ===== */
.zones { padding: 0 0 clamp(80px, 10vw, 150px); }
.zones__list { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.zones__list a { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.8rem); letter-spacing: -.03em; text-decoration: none; color: #59606b; transition: color .3s; }
.zones__list a:hover { color: var(--paper); }
.zones__list a:first-child { color: var(--paper); }

/* ===== FAQ ===== */
.faq { padding: 0 0 clamp(80px, 10vw, 150px); }
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.faq .sec-head { position: sticky; top: 110px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 28px 56px 28px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--paper), var(--paper)) center / 12px 1.5px no-repeat, linear-gradient(var(--paper), var(--paper)) center / 1.5px 12px no-repeat; transition: transform .5s var(--ease), background-color .3s; }
details[open] summary::after { transform: rotate(135deg); background-color: var(--alert); border-color: var(--alert); }
details p { margin: -8px 0 28px; color: #b5bac3; max-width: 62ch; }

/* ===== CTA ===== */
.cta { padding: clamp(90px, 12vw, 170px) var(--pad); text-align: center; overflow: hidden; }
.cta__big { display: inline-block; text-decoration: none; }
.cta__row { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 10.2vw, 11rem); white-space: nowrap; line-height: .86; letter-spacing: -.065em; }
.cta__row--alt { color: var(--paper); display: flex; justify-content: center; align-items: center; gap: .1em; }
.cta__arrow { display: inline-block; width: .55em; height: .55em; color: var(--alert); transition: transform .6s var(--ease); }
.cta__big:hover .cta__arrow { transform: translate(.08em, -.08em) rotate(45deg); }
.cta__sub { color: var(--muted); margin-top: 34px; }

/* ===== Pie ===== */
.footer { border-top: 1px solid var(--line); padding-top: 70px; color: #9aa0ab; font-size: .92rem; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__grid img { margin-bottom: 16px; height: auto; }
.footer h2 { font-family: var(--body); font-size: .95rem; letter-spacing: 0; line-height: 1.4; color: var(--paper); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer__giant { font-family: var(--display); font-weight: 800; font-size: 23vw; line-height: .75; letter-spacing: -.07em; margin: 40px 0 -2vw; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14); white-space: nowrap; }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.1); }
.wa svg { width: 28px; height: 28px; color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav { gap: 16px; }
    .nav__links { display: none; }
    .nav .pill { margin-left: auto; padding: 11px 18px; }
    .hero__foot { flex-direction: column; align-items: flex-start; }
    .hero__title .line--indent { padding-left: 0; }
    .hero__scroll { display: none; }
    .works__pin { flex-direction: column; align-items: stretch; padding: 90px var(--pad) 40px; overflow: visible; }
    .js .works__pin { overflow: visible; }
    .works__head { width: auto; }
    .works__hint { display: none; }
    .works__track { flex-direction: column; padding: 0; gap: 40px; }
    .works__head { margin: 0; }
    .work { width: 100%; }
    .work__media img { width: 100%; }
    .stack__card { min-height: 420px; top: calc(80px + var(--i, 0) * 16px); }
    .faq__grid { grid-template-columns: 1fr; gap: 10px; }
    .faq .sec-head { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .hero__cta { width: 100%; }
    .hero__cta .pill { flex: 1; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 12.4vw; }
}
/* Rojo más oscuro sobre fondo claro (contraste AA) */
.works .tag, .work__n { color: #c23224; }
.works h2 em { color: #1d8aa3; }
.stack__card h3 em { color: inherit; }
.cta em { color: var(--alert); }
.manifesto em.hl--alert { color: var(--alert); }

/* Controles del carril de trabajos */
.works__pin { position: relative; }
.works__ui { display: none; }
.js .works__ui { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(24px, 5vh, 50px); display: flex; align-items: center; gap: 14px; }
.works__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.works__btn:hover { background: var(--ink); color: var(--paper); }
.works__btn:active { transform: scale(.92); }
.works__btn svg { width: 20px; height: 20px; }
.works__count { color: #4a4f58; min-width: 70px; text-align: center; }
.works__count b { color: var(--ink); font-weight: 600; }
.works__bar { position: relative; width: clamp(120px, 16vw, 240px); height: 2px; background: rgba(0, 0, 0, .12); margin-left: 10px; overflow: hidden; }
.works__bar i { position: absolute; inset: 0; background: #c23224; transform-origin: left; transform: scaleX(0); }
.works__track.is-drag { cursor: grabbing; }
.works__track.is-drag a { pointer-events: none; }
@media (max-width: 900px) { .js .works__ui { display: none; } }

/* =====================================================================
   Páginas interiores (servicios, municipios, proyectos, blog, legales)
   ===================================================================== */
.hero--page { height: auto; min-height: 82svh; padding-top: 120px; }
.hero--page .hero__title { font-size: clamp(2.8rem, 8.2vw, 9rem); }
.hero--page .hero__title .line { white-space: normal; }
.hero--short { min-height: 56svh; }
.hero--short .hero__title { font-size: clamp(2.4rem, 6vw, 6.4rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; color: #9aa0ab; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__chips span { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .88rem; color: #d5d9df; background: rgba(6, 7, 9, .35); backdrop-filter: blur(6px); }

.block { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.block--light { background: var(--paper); color: var(--ink); border-top: 0; }
.block--light .tag { color: #c23224; }
.block--light h2 em { color: #1d8aa3; }
.block__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.block__head { position: sticky; top: 110px; }
.block__head h2 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); }
.block__head p { color: var(--muted); margin: 22px 0 0; max-width: 380px; }
.block--light .block__head p { color: #5d626b; }

.prose { font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: #c9ced6; max-width: 68ch; }
.block--light .prose { color: #3c4048; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--paper); margin: 1.6em 0 .5em; }
.prose h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); color: var(--paper); margin: 1.5em 0 .5em; letter-spacing: -.03em; line-height: 1.1; }
.block--light .prose h2, .block--light .prose h3 { color: var(--ink); }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.block--light .prose a { color: #1d8aa3; }
.prose strong { color: var(--paper); font-weight: 600; }
.block--light .prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--alert); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.block--light .prose th, .block--light .prose td { border-color: rgba(0, 0, 0, .1); }
.prose th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 2px solid var(--alert); background: rgba(255, 255, 255, .03); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.gcard { position: relative; padding: 30px 28px 28px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.gcard:hover { border-color: rgba(78, 188, 212, .45); transform: translateY(-4px); }
.gcard__n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--cyan); }
.gcard h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); letter-spacing: -.035em; line-height: 1.05; margin: 22px 0 10px; }
.gcard p { margin: 0; color: #aab0ba; font-size: .97rem; }
.block--light .gcard { background: #fff; border-color: #e3e0d8; }
.block--light .gcard p { color: #4a4f58; }
a.gcard { text-decoration: none; color: inherit; display: block; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.price { container-type: inline-size; padding: 30px 26px; border-radius: 22px; border: 1px solid #e3e0d8; background: #fff; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.block:not(.block--light) .price--hot { border-color: rgba(255, 255, 255, .16); background: var(--ink-2); }
.block:not(.block--light) .prices__note { color: var(--muted); }
.price--hot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price__name { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #6a6f78; }
.price--hot .price__name { color: var(--cyan); }
.price__amount { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 12.5cqi, 2.6rem); letter-spacing: -.05em; line-height: 1; margin: 18px 0 6px; }
.price__amount small { font-family: var(--body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: #6a6f78; margin-right: 6px; }
.price--hot .price__amount small { color: #9aa0ab; }
.price p { margin: 8px 0 0; color: #4a4f58; font-size: .95rem; }
.price--hot p { color: #b5bac3; }
.prices__note { margin-top: 18px; font-size: .88rem; color: #6a6f78; }

.nearby { display: flex; flex-wrap: wrap; gap: 8px; }
.nearby a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .93rem; color: #d4d8de; transition: background .3s, color .3s, border-color .3s; }
.nearby a:hover { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.block--light .nearby a { border-color: rgba(0, 0, 0, .14); color: var(--ink); }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 20px; }
.proj-grid .work { width: auto; }
.proj-grid .work__media img { width: 100%; }

.cta--compact { padding: clamp(70px, 9vw, 130px) var(--pad); }
.cta--compact .cta__row { font-size: clamp(2.4rem, 8vw, 8rem); }

@media (max-width: 900px) {
    .block__grid { grid-template-columns: 1fr; }
    .block__head { position: static; }
    .hero--page { min-height: 72svh; }
}

/* Quinta tarjeta de servicios (chatbots) en la portada */
.stack__card:nth-child(5) { --i: 4; color: var(--paper); border: 1px solid rgba(255, 255, 255, .14); }
.stack__card:nth-child(5) .pill--dark { background: var(--paper); color: var(--ink); }
.stack__card:nth-child(5) .pill--dark::before { background: var(--alert); }
.stack__card:nth-child(5) .pill--dark:hover { color: #fff; }

/* =====================================================================
   Panel de configuración de cookies (lo inyecta /cookie-manager.js)
   ===================================================================== */
.cookie-modal-overlay { display: none; position: fixed; inset: 0; z-index: 10000; padding: 20px; background: rgba(3, 4, 6, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.cookie-modal-overlay.visible { display: flex; opacity: 1; }
.cookie-modal-content { width: min(560px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); font-family: var(--body); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.modal-header h3 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.1; margin: 0; }
.close-modal { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--paper); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .3s, border-color .3s; }
.close-modal:hover { background: var(--alert); border-color: var(--alert); }
.modal-body { padding: 14px 26px 6px; }
.modal-desc { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.option-info { display: grid; gap: 4px; }
.option-title { font-weight: 600; font-size: 1rem; }
.option-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.option-toggle { position: relative; flex: none; width: 48px; height: 28px; display: inline-block; cursor: pointer; }
.option-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .3s; }
.toggle-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 4px; top: 4px; border-radius: 50%; background: var(--paper); transition: transform .3s var(--ease); }
.option-toggle input:checked + .toggle-slider { background: var(--cyan); }
.option-toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--ink); }
.option-toggle input:disabled + .toggle-slider { opacity: .55; cursor: not-allowed; }
.option-toggle input:focus-visible + .toggle-slider { outline: 2px solid var(--cyan); outline-offset: 3px; }
.modal-footer { display: flex; justify-content: flex-end; padding: 16px 26px 24px; border-top: 1px solid var(--line); }
.modal-footer .btn-solid { padding: 13px 24px; border-radius: 999px; border: 0; background: #d92d20; color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .3s, color .3s; }
.modal-footer .btn-solid:hover { background: var(--paper); color: var(--ink); }

/* Aviso de cookies con el estilo de la web nueva (pisa a /cookies.css solo en estas páginas) */
body #simple-cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(14, 16, 20, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: var(--body); }
body #simple-cookie-banner .cookie-text { color: #c9ced6; }
body #simple-cookie-banner .cookie-text a { color: var(--cyan); }
body #simple-cookie-banner .cookie-btn { border-radius: 999px; padding: 11px 20px; font-family: var(--body); font-weight: 600; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--paper); transition: background .3s, color .3s, border-color .3s; }
body #simple-cookie-banner .cookie-btn:hover { background: var(--paper); color: var(--ink); }
body #simple-cookie-banner #btn-accept-all { background: #d92d20; border-color: #d92d20; color: #fff; }
body #simple-cookie-banner #btn-accept-all:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (max-width: 768px) {
    body #simple-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    body #simple-cookie-banner .cookie-text { flex: 0 0 auto; }
    body #simple-cookie-banner .cookie-buttons { grid-template-columns: 1fr 1fr; }
    body #simple-cookie-banner #btn-accept-all { grid-column: 1 / -1; }
}
