/* =========================================================================
   SOPRINCO — landing
   Blanco / off-white + azul plano. Poppins. Fotografía real que se vuelve plano.
   ========================================================================= */

@property --cut { syntax: "<percentage>"; inherits: true; initial-value: 54%; }

:root {
  --bp: #1B3570;          /* azul plano */
  --bp-deep: #13285A;
  --ink: #0F1D3D;
  --ink-2: #4A5673;
  --paper: #F6F5F1;       /* off-white */
  --white: #FFFFFF;
  --line: #E2E1DB;
  --f: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: 20px;
  --r: 22px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--f); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--bp); color: #fff; }
:focus-visible { outline: 2px solid var(--bp); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--bp); color: #fff; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font: 500 1rem/1 var(--f); white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--white { background: #fff; color: var(--bp); }
.btn--start {
  position: relative; height: 70px; padding: 0 8px 0 28px; gap: 22px;
  background: #fff; color: var(--bp); box-shadow: 0 14px 40px -14px rgba(8,18,45,.55);
}
.btn__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1; }
.btn__text strong { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.btn__text small { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.btn__arrow { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bp); color: #fff; transition: transform .25s var(--ease), background-color .2s; }
.btn__arrow svg { width: 20px; height: 20px; }
.btn__arrow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); animation: ring 2.8s 1.6s var(--ease) 3; opacity: 0; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55); } }
.btn--start:hover { background: #fff; }
.btn--start:hover .btn__arrow { transform: translateX(4px); background: var(--bp-deep); }
.btn--start:hover svg { transform: none; }
@media (max-width: 479px) { .hero__actions .btn--start { flex: 1 1 100%; } .hero__actions .btn--ghost { display: none; } }
.btn--white:hover { background: var(--paper); }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--blue { background: var(--bp); color: #fff; }
.btn--blue:hover { background: var(--bp-deep); }
.btn--line { color: var(--bp); border: 1px solid var(--bp); }
.btn--line:hover { background: var(--bp); color: #fff; }

/* ---------- encabezado de vidrio ---------- */
.header { position: fixed; z-index: 50; top: 18px; left: 0; right: 0; padding: 0 22px; pointer-events: none; }
@media (min-width: 768px) { .header { top: 26px; padding: 0 46px; } }
.header__bar {
  pointer-events: auto;
  max-width: 1160px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 9px 0 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.52);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 1px 0 rgba(15,29,61,.04), 0 8px 30px -12px rgba(15,29,61,.18);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled .header__bar { background: rgba(246,245,241,.72); border-color: rgba(15,29,61,.07); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; letter-spacing: .16em; color: var(--ink); min-height: 44px; }
.logo__mark { width: 22px; height: 22px; fill: none; stroke: var(--bp); stroke-width: 1.6; }

.nav { display: none; gap: 30px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.nav a { padding: 8px 0; transition: color .2s; }
.nav a:hover { color: var(--bp); }
@media (min-width: 860px) { .nav { display: flex; } }
@media (max-width: 420px) { .header .btn--sm { padding: 0 14px; font-size: .875rem; } }

/* ---------- HERO ---------- */
.hero { padding: 10px; }
@media (min-width: 768px) { .hero { padding: 14px; } }

.hero__frame {
  --cut: 54%;
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(100svh - 20px); min-height: 620px; max-height: 980px;
  border-radius: var(--r);
  background: var(--bp);
  animation: cut-in 1.4s .2s var(--ease) both;
}
@media (min-width: 768px) { .hero__frame { --cut: 50%; height: calc(100svh - 28px); min-height: 640px; } }
@keyframes cut-in { from { --cut: 100%; } }

.hero__photo, .hero__plan-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero__photo { filter: grayscale(.35) contrast(1.04) brightness(1.03); }

.hero__plan { position: absolute; inset: 0; background: var(--bp); clip-path: inset(var(--cut) 0 0 0); }
.hero__plan-img { filter: url(#blueprint); mix-blend-mode: screen; opacity: .78; }
.hero__plan::before { /* legibilidad del titular */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(19,40,90,0) 45%, rgba(19,40,90,.72) 100%);
}
.hero__plan::after { /* retícula técnica + grano */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image:
    var(--grain),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 160px 160px, 56px 56px, 56px 56px;
  opacity: .9; mix-blend-mode: soft-light;
}

/* Línea de corte con tiradores, como una selección en un plano */
.hero__cut { position: absolute; z-index: 3; left: 0; right: 0; top: var(--cut); height: 1px; background: rgba(255,255,255,.85); }
.hero__cut i { position: absolute; top: -4px; width: 9px; height: 9px; background: #fff; }
.hero__cut i:first-child { left: 24px; }
.hero__cut i:last-child { right: 24px; }
.hero__guide { position: absolute; z-index: 3; top: 0; bottom: 0; left: 64%; width: 1px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.4) 30%, rgba(255,255,255,.4)); }
@media (max-width: 767px) { .hero__guide { left: 78%; } }

.hero__content {
  position: absolute; z-index: 4;
  left: clamp(20px, 4.5vw, 64px); right: clamp(20px, 4.5vw, 64px); bottom: clamp(26px, 5vw, 60px);
  color: #fff;
}
.hero__title { display: flex; flex-direction: column; align-items: flex-start; font-weight: 600; }
.hero__kicker { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.hero__box { position: relative; display: inline-block; padding: .06em .2em .1em; margin-left: -.2em; border: 1px solid rgba(255,255,255,.6); }
.hero__big { display: block; font-size: clamp(3.1rem, 10.5vw, 9rem); line-height: .95; letter-spacing: -.05em; white-space: nowrap; }
.h { position: absolute; width: 8px; height: 8px; background: #fff; }
.h--tl { left: -4px; top: -4px; } .h--tr { right: -4px; top: -4px; }
.h--bl { left: -4px; bottom: -4px; } .h--br { right: -4px; bottom: -4px; }
.hero__rest { margin-top: 10px; font-weight: 300; font-size: clamp(1.9rem, 5.2vw, 4.5rem); line-height: 1; letter-spacing: -.035em; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3.5vw, 40px); }


.hero__content > * { animation: rise .9s var(--ease) both; }
.hero__actions { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Móvil: la cifra domina la pantalla, todo centrado, CTA a lo ancho */
.hero__unit-sm { display: none; }
@media (max-width: 767px) {
  .hero__frame { --cut: 44%; }
  .hero__guide { display: none; }
  .hero__content {
    top: var(--cut); bottom: 0; left: 20px; right: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 0 22px; text-align: center;
  }
  .hero__title { align-items: center; }
  .hero__kicker { font-size: .8125rem; margin-bottom: 16px; }
  .hero__box { margin-left: 0; padding: .02em .14em .06em; }
  /* "+250.000" ocupa el ancho disponible: ancho útil / ancho del texto en em */
  .hero__big { font-size: min(calc((100vw - 64px) / 4.5), 7rem); letter-spacing: -.055em; line-height: .92; }
  .hero__unit { display: none; }
  .hero__unit-sm { display: inline; font-weight: 500; }
  .hero__rest { margin-top: 12px; font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  .hero__actions { width: 100%; margin-top: 26px; }
  .hero__actions .btn--start { width: 100%; height: 76px; padding: 0 10px 0 26px; justify-content: space-between; }
  .btn--start .btn__text strong { font-size: 1.25rem; }
  .btn--start .btn__text small { font-size: .8125rem; }
  .btn--start .btn__arrow { width: 58px; height: 58px; }
}

/* ---------- secciones ---------- */
.section { padding: clamp(88px, 12vw, 150px) 0; }
.head { display: grid; gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bp); }
.title { font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.04em; max-width: 14ch; }

/* ---------- 01 · servicios ---------- */
.services__layout { display: grid; gap: 36px; }
@media (min-width: 960px) { .services__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 96px); align-items: start; } }

.sheets {
  position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden;
  background: var(--bp);
}
@media (max-width: 959px) { .sheets { aspect-ratio: 5 / 4; } }
@media (min-width: 960px) { .sheets { position: sticky; top: 110px; } }
.sheets::after { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 160px; opacity: .22; mix-blend-mode: soft-light; pointer-events: none; }
.sheets svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet { fill: none; stroke: rgba(255,255,255,.92); stroke-width: 1.3; opacity: 0; transform: translate(-14px, 14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.sheet .grid { stroke-width: 1; stroke: rgba(255,255,255,.75); }
.sheets.is-drawn .sheet { opacity: 1; transform: none; }
.sheets.is-drawn svg.has-active .sheet:not(.is-active) { opacity: .22; }
.sheet.is-active { stroke: #fff; }

.needs { counter-reset: n; }
.need {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  padding: 26px 4px; border-top: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
.needs li:last-child .need { border-bottom: 1px solid var(--line); }
.need__num { font-size: .875rem; font-weight: 500; color: var(--bp); padding-top: .35em; }
.need__q { font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.25; letter-spacing: -.02em; transition: color .2s; }
.need__a { margin-top: 6px; color: var(--ink-2); max-width: 44ch; }
.need__foot { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bp); color: var(--bp); font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
.tag--solid { background: var(--bp); color: #fff; }
.need__go { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--bp); opacity: 0; transform: translateX(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.need__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.need:hover .need__q, .need:focus-visible .need__q, .need.is-active .need__q { color: var(--bp); }
.need:hover .need__go, .need:focus-visible .need__go, .need.is-active .need__go { opacity: 1; transform: none; }
@media (hover: none) { .need__go { opacity: 1; transform: none; } }

/* ---------- 02 · experiencia ---------- */
.experience { background: var(--white); }
.profile { display: grid; gap: 40px; }
@media (min-width: 860px) { .profile { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 104px); align-items: end; } }

.portrait { position: relative; }
@media (max-width: 859px) { .portrait { max-width: 420px; } }
.portrait__frame { --split: 80%; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #8E8D8F; }
.portrait__frame > img, .portrait__plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
/* Misma firma de marca: la parte baja de la foto se vuelve plano */
.portrait__plan { position: absolute; inset: 0; background: var(--bp); clip-path: inset(var(--split) 0 0 0); transition: clip-path .7s var(--ease); }
.portrait__plan img { filter: url(#blueprint); mix-blend-mode: screen; opacity: .8; }
.portrait__plan::after { content: ""; position: absolute; left: 0; right: 0; top: var(--split); height: 1px; background: #fff; }
.portrait:hover .portrait__frame { --split: 88%; }

.profile__name { font-weight: 600; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.2; }
.profile__role { color: var(--ink-2); margin-top: 2px; }

.metric { margin-top: clamp(28px, 4vw, 48px); container-type: inline-size; }
.metric__n { display: flex; align-items: baseline; font-weight: 600; color: var(--bp); line-height: .9; letter-spacing: -.055em; font-size: clamp(3.4rem, 17cqi, 8rem); }
.metric__n small { font-size: .34em; font-weight: 400; letter-spacing: -.01em; margin-left: .18em; }
.metric__dim { display: block; position: relative; height: 12px; margin-top: 16px; }
.metric__dim::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--bp); }
.metric__dim::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--bp); border-right: 1px solid var(--bp); }
.metric__l { margin-top: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.kpis li { display: flex; flex-direction: column; gap: 4px; }
.kpis strong { font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 1.875rem); letter-spacing: -.03em; line-height: 1; color: var(--bp); white-space: nowrap; }
.kpis span { font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 479px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis li:last-child { grid-column: span 2; } }
.profile__bio { margin-top: 28px; font-size: 1.0625rem; color: var(--ink-2); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--ink-2); }

.projects__head { margin-top: clamp(80px, 11vw, 128px); margin-bottom: 28px; display: grid; gap: 6px; }
.projects__title { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -.03em; line-height: 1.15; }
.projects__lead { color: var(--ink-2); }

/* Mosaico: Chelsea (vertical) a la izquierda, Lauret y Tívoli apilados a la derecha */
.projects { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .projects { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: 1fr 1fr; gap: 20px; height: min(86vh, 860px); }
  .project--tall { grid-row: span 2; }
  .project, .project .project__img { height: 100%; }
}
@media (max-width: 859px) {
  .projects { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .projects::-webkit-scrollbar { display: none; }
  .project { scroll-snap-align: start; }
  .project__img { aspect-ratio: 4 / 5; }
}
.project__img { --split: 64%; position: relative; border-radius: 20px; overflow: hidden; background: var(--bp); }
.project--wide .project__img { --split: 50%; }
.project--wide .project__img img { object-position: 50% 45%; }
.project__img > img, .project__plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project--tall .project__img img { object-position: 50% 30%; }
.project__img > img { transition: transform 1.2s var(--ease); }
.project__plan { position: absolute; inset: 0; background: var(--bp); clip-path: inset(var(--split) 0 0 0); transition: clip-path .7s var(--ease); }
.project__plan img { filter: url(#blueprint); mix-blend-mode: screen; opacity: .8; }
.project__plan::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,40,90,.1), rgba(19,40,90,.6)); z-index: 1; }
.project__plan::after { content: ""; position: absolute; left: 0; right: 0; top: var(--split); height: 1px; background: #fff; z-index: 2; }
/* Al pasar el cursor, el plano baja y se ve más la obra terminada (acabados) */
.project:hover .project__img { --split: 80%; }
.project--wide:hover .project__img { --split: 62%; }
.project:hover .project__img > img { transform: scale(1.03); }

.project__cap { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.project__name { font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.875rem); letter-spacing: -.03em; line-height: 1.1; }
.project__meta { margin-top: 2px; font-size: .9375rem; opacity: .85; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project__tags li { padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); font-size: .75rem; font-weight: 500; }
@media (min-width: 860px) and (max-width: 1100px) { .project--wide .project__tags { display: none; } }

/* Trayectoria */
.career { margin-top: clamp(72px, 9vw, 112px); }
.career__list { margin-top: 24px; border-top: 1px solid var(--ink); }
.career__row { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .career__row { grid-template-columns: 150px minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; padding: 24px 0; } }
.career__years { font-size: .875rem; font-weight: 500; color: var(--bp); font-variant-numeric: tabular-nums; }
.career__who { display: flex; flex-direction: column; color: var(--ink-2); }
.career__who strong { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.015em; color: var(--ink); }
.career__what { color: var(--ink-2); font-size: .9375rem; }

/* Contenido por confirmar (solo en modo revisión) */
.pending { display: none; }
.review-mode .pending { display: inline-block; }
.review-mode .project__meta .pending { padding: 3px 10px; border: 1px dashed #B9BCC6; border-radius: 999px; font-size: .75rem; color: var(--ink-2); }
.ref { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .6875rem; font-weight: 500; color: var(--ink); }

/* ---------- 03 · contacto ---------- */
.cta { position: relative; overflow: hidden; background: var(--bp); color: #fff; padding: clamp(96px, 14vw, 180px) 0; }
.cta__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(120% 90% at 85% 20%, #000 20%, transparent 70%);
}
.cta::after { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 160px; opacity: .2; mix-blend-mode: soft-light; pointer-events: none; }
.cta__inner { position: relative; z-index: 1; }
.cta__title { font-weight: 600; font-size: clamp(2.3rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -.045em; max-width: 15ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 4vw, 48px); }
.cta__note { margin-top: 22px; font-size: .9375rem; color: rgba(255,255,255,.72); }

/* ---------- pie ---------- */
.footer { background: var(--paper); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer__sign { font-weight: 300; font-style: italic; color: var(--ink-2); }
.footer__meta { font-size: .8125rem; color: var(--ink-2); }
.footer__meta a:hover { color: var(--bp); }
@media (max-width: 859px) { .footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); } }

/* ---------- barra fija móvil ---------- */
.dock {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; padding: 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 12px 34px -14px rgba(15,29,61,.35);
  transform: translateY(calc(100% + 24px)); transition: transform .45s var(--ease);
}
.dock .btn { height: 50px; padding: 0 16px; }
.dock.is-visible { transform: none; }
@media (min-width: 860px) { .dock { display: none; } }
/* En móvil el CTA vive en el hero y luego en la barra fija: el header queda solo con la marca */
@media (max-width: 859px) { .header .btn--sm { display: none; } }

/* ---------- aparición ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- política de datos ---------- */
.legal-head { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal { max-width: 760px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: 80px; }
.legal .title { margin-top: 10px; max-width: 18ch; }
.legal h2 { margin: 36px 0 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-bottom: 12px; }
.legal a:not(.btn) { color: var(--bp); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { margin-top: 44px; }

/* =========================================================================
   Blog
   ========================================================================= */
.page { padding-top: 104px; }
@media (min-width: 768px) { .page { padding-top: 124px; } }
.page .dock { transform: none; }
@media (max-width: 859px) { .page main { padding-bottom: 24px; } }

.blog-head { display: grid; gap: 12px; margin-bottom: clamp(36px, 6vw, 64px); }
.blog-lead { max-width: 56ch; color: var(--ink-2); font-size: 1.0625rem; }
.blog-section { margin: clamp(36px, 5vw, 56px) 0 20px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.blog > section:first-of-type .blog-section { margin-top: 0; }

.post-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { border-radius: 20px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
.post-card:hover { border-color: #C9CFDC; transform: translateY(-2px); }
.post-card__link { display: flex; flex-direction: column; height: 100%; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bp); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.post-card__title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.post-card__desc { font-size: .9375rem; color: var(--ink-2); }
.post-card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 500; color: var(--bp); }
.post-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (min-width: 1040px) {
  .post-card--featured { grid-column: span 2; grid-row: span 2; }
  .post-card--featured .post-card__img { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .post-card--featured .post-card__body { flex: none; padding: 26px 28px 28px; }
  .post-card--featured .post-card__title { font-size: 1.625rem; }
}

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8125rem; color: var(--ink-2); }
.post-tag { padding: 3px 10px; border-radius: 999px; background: var(--bp); color: #fff; font-size: .75rem; font-weight: 500; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--ink-2); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--bp); }
.post { max-width: 820px; }
.post-head { display: grid; gap: 14px; }
.post-title { font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.post-lead { font-size: 1.1875rem; color: var(--ink-2); line-height: 1.55; }
.post-cover { margin: 28px 0 8px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bp); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
.prose h2 { margin: 36px 0 10px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--bp); text-decoration: underline; text-underline-offset: 3px; }

.post-sources { margin-top: 32px; padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.post-sources__title { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bp); margin-bottom: 8px; }
.post-sources ul { display: grid; gap: 6px; font-size: .9375rem; }
.post-sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.post-sources a:hover { color: var(--bp); }

.post-cta {
  display: grid; gap: 18px; align-items: center; margin: 48px 0;
  padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--bp); color: #fff;
}
@media (min-width: 640px) { .post-cta { grid-template-columns: auto 1fr; gap: 24px; } }
.post-cta__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.post-cta__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.post-cta__text { margin-top: 6px; color: rgba(255,255,255,.82); }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.post-related { margin-bottom: 40px; }
.post-related .post-grid { margin-top: 20px; }
@media (min-width: 1040px) { .post-related .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ (landing) */
.faq { background: var(--paper); }
.faq__list { max-width: 860px; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 2px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--bp); font-weight: 400; font-size: 1.25rem; transition: transform .25s var(--ease), background-color .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--bp); color: #fff; border-color: var(--bp); }
.faq__item p { padding: 0 2px 22px; max-width: 70ch; color: var(--ink-2); }
.faq__item a { color: var(--bp); text-decoration: underline; text-underline-offset: 3px; }

/* Del blog (landing) */
.from-blog { padding-top: 0; }
.from-blog__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.from-blog__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--bp); white-space: nowrap; }
.from-blog__all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 16px; padding-bottom: 60px; }
