/* ==========================================================================
   Nati Contino · sitio público
   Paleta: acento #D3295E (solo detalles) · fondo #F7F7F7 · blanco · grises
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-300.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --accent: #D3295E;
  --accent-dark: #b81f4e;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --ink: #262626;
  --muted: #666666;
  --line: #E8E8E8;
  --radius: 4px;
  --wrap: 1180px;
  --gutter: 20px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.07; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.55rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
.h-xl { font-size: clamp(2rem, 5vw, 3rem); }
.h-md { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid transparent; }
.link-arrow:hover { border-bottom-color: currentColor; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  display: inline-grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(247,247,247,.97);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg);
  border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: none;
}
.nav.is-open { display: block; }
.nav ul { display: flex; flex-direction: column; }
.nav li a { display: block; padding: 14px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav li a:hover, .nav li a.is-current { color: var(--accent); }
.nav-cta { margin-top: 18px; width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; align-items: center; gap: 28px; border: 0; padding: 0; background: none; }
  .nav ul { flex-direction: row; gap: 26px; }
  .nav li a { padding: 8px 0; border: 0; font-size: .92rem; position: relative; }
  .nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav li a:hover::after, .nav li a.is-current::after { transform: scaleX(1); }
  .nav li a:hover { color: var(--ink); }
  .nav li a.is-current { color: var(--ink); }
  .nav-cta { margin: 0; width: auto; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-note { margin-top: 40px; color: var(--muted); max-width: 70ch; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(84svh, 800px); padding: clamp(64px, 9vw, 120px) 0; }
.hero-center { display: grid; justify-items: center; text-align: center; gap: 24px; position: relative; z-index: 2; }
.hero-center .lead { max-width: 56ch; }
.hero-center h1 { max-width: 20ch; }
.plus-line { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.plus-mark { color: var(--accent); display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--accent); border-radius: 50%; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.center-actions { justify-content: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #1a1a1a; }
.hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,var(--hero-ov, .55)); }
.hero--media h1, .hero--media .plus-line { color: #fff; }
.hero--media .lead { color: rgba(255,255,255,.88); }
.hero--media .eyebrow { color: rgba(255,255,255,.82); }
.hero--media .btn-ghost { border-color: #fff; color: #fff; }
.hero--media .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero--media :focus-visible { outline-color: #fff; }
.hero-toggle { position: absolute; left: var(--gutter); bottom: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(20,20,20,.35); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.hero-toggle:hover { background: rgba(20,20,20,.6); }
@media (max-width: 640px) { .hero-toggle span { display: none; } .hero-toggle { padding: 0 10px; } }

/* ---------- Timeline (PLUS) ---------- */
.timeline { display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl-num { grid-row: 1 / span 3; font-size: .85rem; font-weight: 700; color: var(--accent); padding-top: 3px; letter-spacing: .06em; }
.tl-ico { display: none; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: .96rem; }
.callout {
  margin-top: 44px; padding: 22px 0 22px 24px; border-left: 3px solid var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; max-width: 62ch; line-height: 1.45;
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(6, 1fr); border-top: 0; column-gap: 0; position: relative; }
  .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--line); }
  .timeline li { display: block; border: 0; padding: 0 20px 0 0; }
  .tl-num { display: inline-block; position: relative; background: var(--white); padding: 0 12px 0 0; margin-bottom: 18px; font-size: .8rem; }
  .tl-ico { display: block; color: var(--ink); margin-bottom: 14px; }
  .timeline h3 { font-size: 1.05rem; }
  .timeline p { font-size: .9rem; }
}

/* ---------- Servicios ---------- */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.services li { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.svc-ico { color: var(--accent); }
.services h3 { font-size: 1.2rem; }
.services p { color: var(--muted); }
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}
@media (min-width: 1020px) {
  .services { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
}

/* ---------- Sectores ---------- */
.sectors { display: grid; gap: 28px; }
.sectors li { display: grid; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); align-content: start; }
.sec-ico { color: var(--ink); }
.sectors h3 { font-size: 1.15rem; }
.sectors p { color: var(--muted); font-size: .96rem; }
@media (min-width: 860px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.pull-quote { margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; }
.pull-quote p { font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 24em; position: relative; padding-top: 28px; }
.pull-quote p::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--accent); }

/* ---------- Experiencia ---------- */
.exp-grid { display: grid; gap: 48px; }
.exp-main { display: grid; gap: 20px; align-content: start; }
.exp-main p { color: var(--muted); max-width: 58ch; }
.big-number { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 6px 0; }
.big-number .bn { font-size: clamp(3.6rem, 10vw, 6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.big-number .bn::first-letter { color: var(--accent); }
.big-number .bl { font-weight: 600; color: var(--muted); max-width: 12em; line-height: 1.3; }
.exp-points { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.exp-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ep-ico { color: var(--accent); padding-top: 2px; }
.exp-points p { color: var(--muted); font-size: .94rem; margin-top: 2px; }
@media (min-width: 960px) { .exp-grid { grid-template-columns: 1fr 1fr; gap: 88px; } }

/* ---------- Clientes (carrusel continuo) ---------- */
.clients-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.mq-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.mq-toggle:hover { border-color: var(--accent); color: var(--accent); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); }
.mq-track { display: flex; width: max-content; animation: mq-scroll var(--mq-dur, 40s) linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track, .marquee.is-paused .mq-track { animation-play-state: paused; }
.mq-group { display: flex; flex: none; gap: 16px; padding-right: 16px; }
.mq-item { flex: none; width: 200px; height: 112px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 18px 22px; }
.mq-item a { display: grid; place-items: center; width: 100%; height: 100%; }
.mq-item img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.wordmark { font-weight: 800; letter-spacing: .04em; text-align: center; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
@keyframes mq-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: thin; }
  .mq-track { animation: none; }
  .mq-group[aria-hidden="true"], .mq-toggle { display: none; }
}

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj-grid { display: grid; gap: 32px 28px; }
@media (min-width: 640px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj[hidden] { display: none; }
.proj a { display: grid; gap: 16px; text-decoration: none; }
.proj-cover { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: var(--line); position: relative; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj a:hover .proj-cover img { transform: scale(1.03); }
.proj-cover.is-placeholder { display: grid; place-items: center; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.proj-cover.is-placeholder::before { content: ""; position: absolute; left: 20px; top: 20px; width: 28px; height: 3px; background: var(--accent); }
.ph-name { font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; text-align: center; line-height: 1.2; color: var(--ink); }
.tags { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.proj-meta h3 { font-size: 1.2rem; transition: color .2s; }
.proj a:hover h3 { color: var(--accent); }
.client { color: var(--muted); font-size: .94rem; margin-top: 4px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .92rem; color: var(--accent); }
.empty-state, .empty-filter { color: var(--muted); padding: 24px 0; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; gap: 44px; align-items: start; }
.contact-copy { display: grid; gap: 20px; }
.contact-ways { display: grid; gap: 12px; margin-top: 8px; }
.contact-ways li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-ways .ico { color: var(--accent); flex: none; }
.contact-ways a { color: var(--ink); font-weight: 600; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .92rem; }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--bg); border: 1px solid #cfcfcf; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23262626' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: #9a9a9a; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,41,94,.18); background: #fff; }
[aria-invalid="true"] { border-color: #b3123f !important; background: #fff7f9; }
.field-error { color: #b3123f; font-size: .88rem; font-weight: 600; }
.field-check { margin-bottom: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--ink); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 16px; color: var(--muted); font-size: .9rem; text-align: center; }
.form-status { padding: 14px 16px; border-radius: var(--radius); background: #fff0f4; border: 1px solid #f2b8c8; color: #8f0f33; font-weight: 600; margin-bottom: 20px; }
.btn .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spin { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 28px 8px; display: grid; gap: 14px; justify-items: center; }
.form-success:focus { outline: none; }
.ok-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.form-success p { color: var(--muted); max-width: 40ch; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 22px; color: var(--muted); font-size: .88rem; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.legal { display: flex; gap: 20px; flex-wrap: wrap; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--accent); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Detalle de proyecto / páginas ---------- */
.page-doc .narrow { display: grid; gap: 18px; }
.pd-grid { display: grid; gap: 40px; margin-top: 24px; align-items: start; }
.pd-text { display: grid; gap: 18px; align-content: start; min-width: 0; }
.pd-media { display: grid; gap: 20px; min-width: 0; }
.pd-img, .pd-video { width: 100%; border-radius: 28px; overflow: hidden; background: var(--line); }
.pd-img { display: block; height: auto; }
.pd-video { aspect-ratio: 16 / 9; }
.pd-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 960px) { .pd-grid:not(.pd-single) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .pd-single { max-width: 760px; } }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.client-line { color: var(--muted); }
.detail-cover { margin: 48px 0 8px; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.detail-cover img { width: 100%; height: auto; }
.case-steps { display: grid; gap: 36px; margin-top: 28px; counter-reset: c; }
.case-steps li { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-label { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.cs-n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; }
.prose { color: #3b3b3b; font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; } .prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent); font-weight: 600; }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--muted); font-style: italic; }
.gallery { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { width: 100%; border-radius: var(--radius); }
.cta-band { margin-top: 64px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band p { font-weight: 700; font-size: 1.15rem; }
.more-h { margin: 72px 0 28px; }

/* ---------- Animaciones sutiles ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: #1FA855; color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s, background .15s; }
.wa-float:hover { background: #178a45; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 640px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media print { .wa-float, .hero-toggle { display: none; } }
@media (max-width: 640px) { .hero-center .plus-line { flex-direction: column; gap: 8px; } }

/* ==========================================================================
   Estética v2 · editorial, aireada, bordes redondeados y botones tipo píldora
   (referencia de estilo: estudios de diseño contemporáneos; el acento sigue
   siendo #D3295E y solo se usa en detalles)
   ========================================================================== */
:root { --radius: 14px; --radius-lg: clamp(24px, 3.4vw, 44px); --wrap: 1240px; --gutter: clamp(20px, 4vw, 40px); --header-h: 80px; }
body { font-weight: 400; }

/* Titulares livianos y grandes, con tracking cerrado */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.08; }
h3 { font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.h-xl, .h-md { font-weight: 500; }

/* Sobretítulo: etiqueta en píldora con punto de acento */
.eyebrow { gap: 10px; padding: 7px 16px 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .72rem; letter-spacing: .16em; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section-white .eyebrow { background: var(--bg); }
.hero--media .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }

/* Botones: píldora, con flecha que se desplaza */
.btn { border-radius: 999px; min-height: 54px; padding: 0 30px; font-weight: 600; letter-spacing: -0.005em; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-ghost { border-width: 1px; }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary:hover { transform: translateY(-1px); }
.link-arrow { font-weight: 600; }

/* Header: más limpio, navegación liviana */
.nav li a { font-weight: 500; }
.brand img { height: 50px; }
@media (min-width: 960px) { .nav ul { gap: 34px; } .nav li a { font-size: .95rem; } }

/* Secciones: bloques blancos como paneles redondeados sobre el fondo gris claro */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-white { background: var(--white); border: 0; border-radius: var(--radius-lg); margin-inline: clamp(8px, 1.6vw, 20px); }
.section-head { gap: 22px; max-width: 860px; }
.callout { border-left-width: 2px; font-weight: 500; }

/* Hero */
.hero { min-height: min(88svh, 860px); }
.hero-center h1 { max-width: 17ch; }
.plus-line { font-weight: 600; }

/* ---------- Bloque PLUS: foto a la izquierda ---------- */
.plus-intro { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; margin-bottom: clamp(56px, 8vw, 104px); }
.plus-photo { margin: 0; position: relative; max-width: 460px; width: 100%; justify-self: center; }
.plus-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--line); }
.plus-photo figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.plus-photo figcaption strong { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.plus-photo figcaption span { font-size: .8rem; color: var(--muted); }
.plus-copy { display: grid; gap: 24px; align-content: center; justify-items: start; }
.plus-copy .callout { margin: 4px 0 0; padding: 4px 0 4px 20px; font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
@media (min-width: 900px) {
  .plus-intro { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(48px, 7vw, 112px); }
  .plus-photo { justify-self: start; }
}

/* Línea de proceso */
.timeline { border-top-color: var(--line); }
@media (min-width: 900px) {
  .timeline li { padding-right: 24px; }
  .tl-num { font-size: .78rem; letter-spacing: .12em; }
  .tl-ico { color: var(--accent); }
}

/* Sectores y tarjetas */
.sectors li { border-radius: 28px; padding: 34px; background: var(--white); transition: border-color .25s, transform .25s; }
.section-white .sectors li { background: var(--bg); }
.sectors li:hover { border-color: var(--ink); transform: translateY(-2px); }
.pull-quote p { font-weight: 500; letter-spacing: -0.035em; }

/* Experiencia */
.big-number .bn { font-weight: 500; letter-spacing: -0.06em; }
.exp-points li { padding: 24px 0; }

/* Clientes y proyectos */
.mq-item { border-radius: 24px; }
.chip { font-weight: 500; min-height: 42px; padding: 0 20px; }
.proj-cover { border-radius: 32px; }
.proj-meta h3 { font-weight: 600; }
.pd-img, .pd-video { border-radius: 32px; }
.detail-cover, .gallery img, .prose img { border-radius: 28px; }

/* Formulario y contacto */
.form-card { border-radius: 32px; box-shadow: none; padding: clamp(24px, 4.5vw, 48px); }
input[type=text], input[type=email], select, textarea { border-radius: 14px; border-color: var(--line); background: var(--bg); }
input:hover, select:hover, textarea:hover { border-color: #b5b5b5; }
.cta-band { border-radius: 28px; }

/* Footer */
.site-footer { border-top: 0; padding-top: 72px; }
.footer-h { letter-spacing: .16em; }

/* Entrada suave al hacer scroll */
.reveal { transform: translateY(18px); transition-duration: .8s; }


/* ==========================================================================
   Ajustes v3
   ========================================================================== */

/* ---------- Foto del PLUS: más chica, circular, con caja ---------- */
.plus-photo { max-width: 330px; justify-self: start; display: grid; justify-items: center; }
.plus-photo img { width: min(100%, 270px); aspect-ratio: 1 / 1; height: auto; border-radius: 50%; background: #fff; object-fit: cover; }
.plus-photo figcaption { position: static; margin-top: -18px; width: 100%; padding: 16px 20px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; text-align: center; position: relative; }
.plus-photo figcaption span { font-size: .84rem; line-height: 1.45; }
@media (min-width: 900px) { .plus-intro { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); } }

/* ---------- Servicios: boxes redondeados con rollover sutil ---------- */
.services { border-top: 0; gap: 20px; }
.services li { padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); align-content: start; gap: 12px; transition: border-color .25s, transform .25s, background-color .25s; }
.services li:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--white); }
@media (min-width: 720px) { .services { column-gap: 20px; } }
@media (min-width: 1020px) { .services { column-gap: 20px; } }

/* ---------- Experiencia: "+20" con + chico al medio y leyenda centrada ---------- */
.big-number { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); flex-wrap: nowrap; padding: 4px 0; }
.big-number .bn { display: inline-flex; align-items: center; gap: .06em; line-height: .8; }
.big-number .bn::first-letter { color: inherit; }
.big-number .bn-plus { font-size: .4em; font-weight: 500; color: var(--accent); line-height: 1; letter-spacing: 0; }
.big-number .bn-num { display: block; line-height: .8; padding-top: .04em; }
.big-number .bl { align-self: center; max-width: 11em; }

/* ---------- Proyectos: imagen a la izquierda (sin bordes redondeados) ---------- */
.showcase { position: relative; display: grid; gap: 0; }
.stage { display: none; }
.proj-list { display: grid; border-top: 1px solid var(--line); }
.proj-list .proj { border-bottom: 1px solid var(--line); }
.proj-list .proj a { display: grid; grid-template-columns: 96px 1fr 28px; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; }
.proj-list .proj-thumb { grid-row: 1; width: 96px; aspect-ratio: 1; overflow: hidden; background: var(--line); display: grid; place-items: center; }
.proj-list .proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-list .proj-thumb .ph-name { font-size: .78rem; padding: 6px; }
.proj-list .proj-num { display: none; }
.proj-list .proj-meta { display: grid; gap: 2px; min-width: 0; }
.proj-list .proj-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; transition: color .2s, transform .3s; }
.proj-list .proj-meta .tags { margin: 0 0 4px; }
.proj-list .proj-go { color: var(--muted); transition: color .2s, transform .3s; justify-self: end; }
.proj-list .proj a:hover .proj-title { color: var(--accent); }
.proj-list .proj-meta .client { margin-top: 2px; }

@media (min-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .stage { display: block; position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 56px); width: 100%; overflow: hidden; background: var(--line); border-radius: 0; }
  .stage-item { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; display: grid; place-items: center; background: var(--white); }
  .stage-item.is-on { opacity: 1; }
  .stage-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s ease; }
  .stage-item.is-on img { transform: scale(1); }
  .stage-item .ph-name { font-size: clamp(1.6rem, 3vw, 2.4rem); padding: 32px; }
  .stage-item:not(:has(img))::before { content: ""; position: absolute; left: 28px; top: 28px; width: 44px; height: 3px; background: var(--accent); }
  .proj-list .proj a { grid-template-columns: 44px 1fr 28px; padding: 28px 0; }
  .proj-list .proj-thumb { display: none; }
  .proj-list .proj-num { display: block; grid-row: 1; font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); transition: color .2s; }
  .proj-list .proj-title { font-size: clamp(1.3rem, 2.2vw, 1.8rem); transition: color .25s, transform .35s ease; }
  .stage-cursor { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
}
.stage-cursor { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .stage-cursor { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; position: absolute; }
  .showcase.has-cursor .stage-cursor { opacity: 1; }
}
.proj-list .proj-thumb, .stage, .stage-item, .stage-item img, .pd-img, .pd-video, .detail-cover, .gallery img, .prose img { border-radius: 0; }

/* ---------- "Hablamos el mismo idioma" + ilustración fina ---------- */
.idiom { display: grid; gap: 32px; align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.idiom .pull-quote { margin: 0; }
.idiom-art { width: min(100%, 260px); height: auto; justify-self: center; opacity: .95; }
@media (min-width: 860px) { .idiom { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } .idiom-art { width: 300px; justify-self: end; } }

/* ---------- Footer compacto en gris oscuro de la paleta ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin: clamp(40px, 6vw, 72px) clamp(8px, 1.6vw, 20px) 0; padding-top: clamp(36px, 4vw, 52px); font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer li a:hover, .legal a:hover { color: #fff; text-decoration: underline; }
.footer-grid { gap: 28px; padding-bottom: 28px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; line-height: 0; margin-bottom: 14px; }
.footer-brand img { height: 36px; margin: 0; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .88rem; max-width: 32ch; }
.footer-h { color: rgba(255,255,255,.5); font-size: .7rem; margin-bottom: 10px; }
.site-footer li { margin-bottom: 4px; }
.footer-bottom { color: rgba(255,255,255,.5); font-size: .8rem; padding-block: 16px; background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-bottom .legal a { color: rgba(255,255,255,.62); }
.site-footer :focus-visible { outline-color: #fff; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* correcciones v3.1 */
.section-head .eyebrow, .plus-copy .eyebrow, .contact-copy .eyebrow { justify-self: start; width: fit-content; }
.plus-photo img { border-radius: 0; }
.plus-photo figcaption { margin-top: 6px; }
.site-footer nav ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 28px; }
.plus-photo figcaption { margin-top: 14px; }

/* ==========================================================================
   Ajustes v4
   ========================================================================== */
/* Ficha de proyecto: imágenes a la izquierda, texto a la derecha (acompaña el scroll vía JS) */
.pd-text { order: -1; will-change: transform; }
@media (min-width: 960px) {
  .pd-grid:not(.pd-single) { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .pd-grid:not(.pd-single) .pd-text { order: 0; }
  .pd-media { order: -1; gap: 16px; }
}
.pd-img, .pd-video, .detail-cover, .gallery img { border-radius: 0; }
.more-h { margin-bottom: 20px; }
.proj-list--thumbs { max-width: 820px; }
.proj-list--thumbs .proj-thumb { display: grid !important; width: 112px; }
.proj-list--thumbs .proj a { grid-template-columns: 112px 1fr 28px; padding: 18px 0; }
.proj-list--thumbs .proj-num { display: none; }
.proj-list--thumbs .proj-title { font-size: 1.2rem; }

/* Bloque «Hablamos el mismo idioma» sin ilustración */
@media (min-width: 860px) { .idiom--solo { grid-template-columns: minmax(0, 1fr); } }

/* Footer: tipografía más chica y líneas finas */
.site-footer { font-size: .82rem; line-height: 1.55; border-top: 2px solid var(--accent); }
.footer-brand p { font-size: .8rem; }
.footer-h { font-size: .64rem; letter-spacing: .18em; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.16); }
.site-footer li { margin-bottom: 3px; }
.footer-bottom { font-size: .74rem; }
.footer-bottom .legal a { font-size: .74rem; }
@media (max-width: 799px) { .site-footer nav ul { grid-template-columns: repeat(2, auto); } }
.pd-text .eyebrow { justify-self: start; width: fit-content; }

/* categorías de las tarjetas: tipografía más chica */
.tags { font-size: .66rem; letter-spacing: .1em; }

/* inicio: 4 proyectos por fila en pantallas grandes */
@media (min-width: 1100px) { .proj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; } .proj-grid .proj-meta h3 { font-size: 1.05rem; } .proj-grid .proj-cover { border-radius: 24px; } }


/* ==========================================================================
   Tipografía: Inter (misma familia que usa pranaestudio.com.ar)
   Ajuste de tamaños y espaciado para que los titulares mantengan su ritmo
   ========================================================================== */
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -0.003em; }
h1, h2, h3 { letter-spacing: -0.03em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
h3 { font-weight: 600; letter-spacing: -0.018em; }
.h-xl { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.lead { letter-spacing: -0.008em; }
.hero-center h1 { max-width: 18ch; }
.big-number .bn { letter-spacing: -0.05em; }
.eyebrow, .tags, .footer-h { font-weight: 600; }
.btn { font-weight: 500; letter-spacing: -0.01em; }
.nav li a { font-weight: 450; }
.pull-quote p { letter-spacing: -0.03em; }
.hero-center h1 { max-width: 13.6em; }
.hero-center .lead { max-width: 60ch; }
.plus-photo figcaption { margin-top: 34px; }

/* Rollover de proyectos (inicio) - estilo Prana: el box de la imagen sube unos píxeles y se sombrea */
.proj-grid .proj-cover { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; will-change: transform; }
.proj-grid .proj a:hover .proj-cover, .proj-grid .proj a:focus-visible .proj-cover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(38,38,38,.16), 0 2px 6px rgba(38,38,38,.06); }
.proj-grid .proj a:hover .proj-cover img { transform: none; }
@media (prefers-reduced-motion: reduce) { .proj-grid .proj-cover { transition: none; } }
.proj-grid .proj a:hover h3, .proj-grid .proj a:focus-visible h3 { color: inherit; }

/* Ficha de proyecto: escala tipográfica tomada de pranaestudio.com.ar/trabajos */
.crumbs { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pd-title { font-size: clamp(2.4rem, 4.2vw, 3.5rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink, #262626); }
.pd-lead { font-size: 1.125rem; line-height: 1.6; color: #3b3b3b; max-width: 40em; letter-spacing: -0.005em; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.pd-meta dd { margin: 0; font-size: 1rem; color: var(--ink, #262626); }
.cs-label { font-weight: 500; font-size: 1.5rem; letter-spacing: -0.025em; }
.prose { font-size: 1rem; line-height: 1.7; }

/* ---------- Bloque de pauta (Google Ads + Meta Ads) ---------- */
.ads-card { display: grid; gap: 36px; align-items: center; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 32px; background: var(--bg); }
.ads-copy { display: grid; gap: 18px; justify-items: start; }
.ads-copy .lead { max-width: 52ch; }
.ads-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ads-logos li { display: grid; justify-items: center; gap: 14px; padding: 28px 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); font-weight: 600; letter-spacing: -0.01em; transition: transform .25s ease, box-shadow .25s ease; }
.ads-logos li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(38,38,38,.10); }
.ads-logos img { width: 56px; height: 56px; object-fit: contain; }
@media (min-width: 900px) { .ads-card { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; } }

/* ---------- Página «Qué hacemos» ---------- */
.svc-hero { padding-bottom: 0; }
.svc-hero .crumbs { margin-bottom: 28px; }
.svc-block { padding-block: clamp(44px, 6vw, 80px); border-top: 1px solid var(--line); }
.svc-block-grid { display: grid; gap: 24px; align-items: start; }
.svc-block-n { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .12em; }
.svc-block-n .svc-ico { color: var(--accent); }
.svc-block-copy { display: grid; gap: 16px; max-width: 62ch; }
.svc-block-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
@media (min-width: 860px) { .svc-block-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.svc-end { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- Carrusel infinito de servicios ---------- */
.svc-carousel { padding-top: 24px; overflow: hidden; }
.svc-mq { display: grid; gap: 20px; }
.svc-card { flex: none; width: 340px; display: grid; gap: 12px; align-content: start; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); transition: border-color .3s ease, transform .3s ease, opacity .3s ease, box-shadow .3s ease; }
.svc-card h3 { font-size: 1.2rem; } .svc-card p { color: var(--muted); }
.svc-card .svc-ico { color: var(--accent); }
.svc-mq .mq-group { gap: 20px; padding-right: 20px; }
.svc-mq .mq-track.is-reverse { animation-direction: reverse; }
.svc-mq .marquee { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); padding-block: 16px; }
.svc-mq--foco .marquee:hover .svc-card { opacity: .45; }
.svc-mq--foco .marquee:hover .svc-card:hover { opacity: 1; transform: translateY(-6px) scale(1.03); border-color: var(--ink); box-shadow: 0 18px 36px rgba(38,38,38,.14); }
.svc-mq--cinta .svc-card:hover, .svc-mq--doble .svc-card:hover { transform: translateY(-4px); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .svc-mq .marquee { -webkit-mask-image: none; mask-image: none; } }


/* ---------- Menú desplegable «Qué hacemos» ---------- */
.nav li.has-sub { position: relative; }
.sub-toggle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 14px 4px; font: inherit; font-weight: 450; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.sub-toggle svg { transition: transform .25s ease; }
.has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }
.sub-toggle:hover, .sub-toggle.is-current { color: var(--accent); }
.sub { display: none; padding: 4px 0 8px 14px; }
.has-sub.is-open > .sub { display: block; }
.sub li a { padding: 12px 4px; font-weight: 450; }
@media (min-width: 960px) {
  .sub-toggle { width: auto; padding: 8px 0; border: 0; font-size: .95rem; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .sub-toggle:hover::after, .sub-toggle.is-current::after, .has-sub.is-open > .sub-toggle::after { transform: scaleX(1); }
  .sub-toggle:hover, .sub-toggle.is-current { color: var(--ink); }
  .sub { position: absolute; top: 100%; left: -18px; min-width: 270px; padding: 10px; margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(38,38,38,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; display: block; }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
  .sub li a { padding: 12px 16px; border-radius: 12px; font-size: .93rem; }
  .sub li a::after { display: none; }
  .sub li a:hover, .sub li a.is-current { background: var(--bg); color: var(--ink); }
  .sub li a.is-current { color: var(--accent); }
}


/* =====================================================================
   RITMO VERTICAL — sistema de espaciado
   Escala base (fluida): s1 pequeño · s2 interno · s3 entre bloques · s4 de entrada
   Cada sección usa un valor distinto según su jerarquía, no uno único.
   ===================================================================== */
:root {
  --s1: clamp(12px, 1.4vw, 18px);   /* entre título y texto */
  --s2: clamp(24px, 3.2vw, 40px);   /* título de sección → contenido */
  --s3: clamp(36px, 4.6vw, 64px);   /* respiro entre bloques hermanos (se suma arriba+abajo) */
  --s4: clamp(48px, 6.4vw, 88px);   /* entrada a un bloque destacado / pie de página */
  --grid-gap: clamp(16px, 2vw, 28px);
}
.section { padding: var(--s3) 0; }
.section-head { gap: var(--s1); margin-bottom: var(--s2); }

/* Hero: protagonista, con más aire arriba que abajo */
.hero { min-height: 0; padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 80px); }
.hero--media { min-height: min(72svh, 680px); }

/* Tarjeta blanca «El plus»: aire interno propio, pegada al hero */
#plus.section-white { padding: var(--s4) 0; }
.plus-intro { margin-bottom: 0; gap: clamp(28px, 4.5vw, 56px); }

/* Proyectos: viene después de una tarjeta, necesita más aire arriba */
#proyectos.section { padding: var(--s4) 0 var(--s3); }
.proj-grid { gap: var(--grid-gap); }

/* Contacto: cierre de la página, aire generoso abajo */
#contacto.section { padding: var(--s3) 0 var(--s4); }
.site-footer { margin-top: clamp(16px, 2.4vw, 32px); }

/* Páginas internas (proyecto, privacidad) */
article.section { padding: var(--s3) 0 var(--s4); }
