/* =========================================================
   Marcos García — Perito Contador
   ========================================================= */

:root {
  /* Paleta: --brand = fondos de marca (portada, secciones de color);
     --accent = resaltados sobre fondo oscuro; --scan = rayos X */
  --brand: #1d3557;
  --brand-light: #33598c;
  --brand-deep: #13243d;
  --on-brand: #f4f1e6;
  --on-brand-strong: #a9d1ff;
  --on-brand-line: rgba(244, 241, 230, .3);
  --brand-shadow: rgba(5, 10, 25, .45);
  --accent: #a9d1ff;
  --accent-rgb: 169, 209, 255;
  --accent-on-light: #1f4e8c;
  --hot: #f4f1e6;
  --hot-fill: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #161616;
  --ink-3: #242424;
  --paper: #f1ece5;
  --white: #ffffff;
  --muted: #8f8f8f;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(13, 13, 13, .16);
  --scan: #a9d1ff;
  --scan-rgb: 169, 209, 255;
  --scan-bg-1: #0e2440;
  --scan-bg-2: #081426;
  --scan-bg-3: #040a14;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.section--light :focus-visible, .section--brand :focus-visible, .hero :focus-visible { outline-color: var(--on-brand); }

/* ---------- utilidades ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.label--dot { display: inline-flex; align-items: center; gap: 10px; opacity: 1; font-weight: 600; }
.label--dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22);
}
.section--brand .label--dot::before, .hero .label--dot::before { background: var(--on-brand-strong); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }

.title-xl {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 9.5rem);
  line-height: .9;
  letter-spacing: -.005em;
  padding-top: .12em;
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.accent { color: var(--accent); }

.section--dark { background: var(--ink); color: var(--white); }
.section--light { background: var(--paper); color: var(--ink); }
.section--brand { background: var(--brand); color: var(--on-brand); }

section { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 18px 16px 24px;
  font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; border-radius: 4px;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 3px;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700;
  transition: transform .4s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn[download]:hover .btn__icon { transform: translateY(3px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark .btn__icon { background: var(--accent); color: var(--ink); }
.btn--line { border: 2px solid var(--on-brand); color: var(--on-brand); }
.btn--line .btn__icon { background: var(--on-brand); color: var(--brand); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .85;
}
.tags--lg li { font-size: 13px; padding: 9px 16px; }

/* revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  display: grid; place-content: center; justify-items: center; gap: 14px;
  transition: transform 1s var(--ease) .1s;
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__name { display: flex; font-family: var(--f-display); font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1; overflow: hidden; padding-top: .1em; }
.preloader__name span { display: inline-block; transform: translateY(110%); animation: rise .8s var(--ease) forwards; }
.preloader__name .sp { width: .3em; }
.preloader__name span:nth-child(n) { animation-delay: calc(var(--i, 0) * 45ms); }
.preloader__role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: 0; animation: fade .6s .5s forwards; }
.preloader__count { position: absolute; right: var(--gutter); bottom: var(--gutter); font-family: var(--f-display); font-size: clamp(3rem, 10vw, 8rem); color: var(--accent); line-height: 1; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: .7; } }

/* =========================================================
   TOP BAR + MENÚ
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(20px, 5vw, 80px);
  padding: 18px var(--gutter);
  color: var(--on-brand);
  transition: color .3s, background .3s, transform .5s var(--ease);
}
.topbar.is-scrolled { background: rgba(13, 13, 13, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--white); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__meta { display: grid; line-height: 1.2; }
.topbar__meta .label { font-size: 10.5px; opacity: .7; }
.topbar__meta strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.menu-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px; border: 1.5px solid currentColor; border-radius: 4px;
  font-weight: 600; font-size: 15px;
  transition: background .3s, color .3s;
}
.menu-btn:hover { background: var(--ink); color: var(--white); }
.topbar.is-scrolled .menu-btn:hover { background: var(--white); color: var(--ink); }
.menu-btn__lines { display: grid; gap: 5px; width: 22px; }
.menu-btn__lines i { display: block; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.menu-open .topbar { color: var(--white); background: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu ul { display: grid; gap: 4px; }
.menu a { text-decoration: none; }
.menu li a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2.2rem, min(8.5vh, 12vw), 6.5rem); line-height: 1.02;
  transition: color .3s, transform .4s var(--ease);
}
.menu li a small { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.menu li a:hover { color: var(--accent); transform: translateX(14px); }
.menu__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.menu__foot a:hover { color: var(--white); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 0;
  background:
    radial-gradient(120% 90% at 70% 40%, var(--brand-light) 0%, var(--brand) 45%, var(--brand-deep) 100%);
  color: var(--on-brand);
  overflow: hidden;
  isolation: isolate;
}

.hero__name {
  position: absolute; z-index: 1;
  left: var(--gutter); top: clamp(96px, 15vh, 150px);
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(5.2rem, 15.5vw, 17rem);
  line-height: .84; letter-spacing: -.01em;
  color: var(--on-brand);
}
.hero__name .line { display: block; overflow: hidden; padding-top: .08em; }
.hero__name .word { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__name .line:nth-child(2) .word { transition-delay: .12s; }
body.is-ready .hero__name .word { transform: none; }

.hero__figure {
  position: absolute; z-index: 2;
  right: -2vw; bottom: 0;
  height: 96%;
  aspect-ratio: 2040 / 1536;
  margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%);
          mask-image: linear-gradient(to right, transparent 0%, #000 16%);
  opacity: 0; transform: translateX(40px);
  transition: opacity 1.4s var(--ease) .2s, transform 1.4s var(--ease) .2s;
  cursor: crosshair;
  touch-action: pan-y;
}
body.is-ready .hero__figure { opacity: 1; transform: none; }
.hero__photo { width: 100%; height: 100%; object-fit: contain; filter: saturate(1.04) contrast(1.03); user-select: none; -webkit-user-drag: none; }

/* --- Rayos X --- */
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.xray {
  position: absolute; inset: 0;
  --x: 50%; --y: 30%;
  clip-path: circle(var(--r) at var(--x) var(--y));
  background:
    radial-gradient(circle at var(--x) var(--y), var(--scan-bg-1) 0%, var(--scan-bg-2) 60%, var(--scan-bg-3) 100%);
  pointer-events: none;
}
.xray__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1) invert(1) brightness(.75) contrast(1.4);
  mix-blend-mode: screen; opacity: .38;
}
.xray__skeleton { position: absolute; inset: 0; width: 100%; height: 100%; }
.xray__skeleton .bone { fill: none; stroke: #e9fbff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.xray__skeleton .bone .thin { stroke-width: 4; stroke: var(--scan); }
.xray__skeleton .teeth rect { stroke-width: 3.5; }
.xray__skeleton pattern path { stroke: var(--scan); }
.xray__skeleton .spine rect { fill: rgba(var(--scan-rgb), .14); }
.xray__skeleton .hot { fill: none; stroke: var(--hot); stroke-width: 6; stroke-linecap: round; }
.xray__skeleton .hot circle { fill: var(--hot-fill); stroke: var(--hot); }
.xray__skeleton .gear { fill: none; stroke: var(--hot); stroke-width: 6; stroke-linecap: round; }
.xray__skeleton .data text { font-family: var(--f-mono); font-size: 34px; font-weight: 600; fill: var(--scan); letter-spacing: .04em; }
.xray__skeleton .data .dim { fill: rgba(233, 251, 255, .55); font-weight: 400; }

.xray-ring {
  position: absolute; left: 0; top: 0;
  width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2);
  transform: translate(calc(var(--px, 0px) - var(--r, 0px)), calc(var(--py, 0px) - var(--r, 0px)));
  border-radius: 50%;
  border: 1.5px solid rgba(var(--scan-rgb), .85);
  box-shadow: 0 0 0 6px rgba(var(--scan-rgb), .12), 0 0 40px rgba(var(--scan-rgb), .35), inset 0 0 30px rgba(var(--scan-rgb), .25);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.xray-ring::before, .xray-ring::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgba(var(--scan-rgb), .6);
}
.xray-ring::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.xray-ring::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.xray-ring span {
  position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .25em; color: var(--white);
  background: var(--ink); padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.hero__figure.is-scanning .xray-ring { opacity: 1; }

.hero__hint {
  position: absolute; z-index: 3; right: var(--gutter); top: 92px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-brand);
  opacity: 0; transition: opacity .6s 1.6s;
}
body.is-ready .hero__hint { opacity: .85; }
.hero__hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--scan); box-shadow: 0 0 0 0 rgba(var(--scan-rgb), .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(var(--scan-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--scan-rgb), 0); } }

.hero__services {
  position: absolute; z-index: 3;
  right: var(--gutter); top: 40%;
  text-align: right; color: var(--on-brand-strong);
  text-shadow: 0 1px 18px var(--brand-shadow);
  pointer-events: none;
}
.hero__services .label { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .06em; margin-bottom: 10px; }
.hero__services li {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.6;
  opacity: 0; transform: translateX(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
body.is-ready .hero__services li { opacity: 1; transform: none; }
.hero__services li:nth-child(2) { transition-delay: .08s; }
.hero__services li:nth-child(3) { transition-delay: .16s; }
.hero__services li:nth-child(4) { transition-delay: .24s; }
.hero__services li:nth-child(5) { transition-delay: .32s; }

.hero__bottom {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  max-width: 400px;
  display: grid; gap: 28px;
}
.hero__tagline { font-size: clamp(1.02rem, 1.3vw, 1.2rem); font-weight: 500; line-height: 1.45; }
.hero__tagline strong { font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 4px; background: var(--ink); color: var(--white);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--white); color: var(--ink); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* =========================================================
   SOBRE MÍ
   ========================================================= */
.about__grid {
  display: grid; gap: clamp(40px, 6vw, 100px);
  grid-template-columns: minmax(260px, 5fr) 7fr;
  align-items: start;
}
.about__media { display: grid; gap: 28px; position: sticky; top: 100px; }
.about__photo { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.about__media.is-in .about__photo img { transform: scale(1); }

.about__text {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 4.3vw, 4.4rem); line-height: 1.06; letter-spacing: .005em;
}
.about__text .w { color: #3a3a3a; transition: color .5s; }
.about__text .w.is-lit { color: var(--white); }
.about__text em { font-style: normal; }
.about__text em .w.is-lit { color: var(--accent); }

.about__facts {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.about__facts div { padding: 22px 20px 0 0; }
.about__facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.about__facts dd { font-weight: 600; font-size: 1.05rem; }

/* =========================================================
   COMPETENCIAS
   ========================================================= */
.services { padding-top: 0; }
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: clamp(30px, 4vw, 60px); border-bottom: 1px solid var(--line-dark); }
.services__count { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.services__count small { font-size: .45em; color: var(--muted); }

.svc { border-bottom: 1px solid var(--line-dark); transition: background .4s; }
.svc__row {
  width: 100%; display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 30px) 0; text-align: left;
}
.svc__num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.svc__title {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.9rem, 5.6vw, 5.4rem); line-height: 1;
  transition: color .35s, transform .5s var(--ease);
}
.svc__plus { position: relative; width: 40px; height: 40px; border: 1.5px solid var(--line-dark); border-radius: 50%; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.svc__badge {
  display: inline-block; vertical-align: middle; margin-left: .3em; transform: translateY(-.15em);
  font-family: var(--f-mono); font-size: max(11px, .2em); font-weight: 600; letter-spacing: .14em;
  padding: .45em 1em; border: 1.5px solid currentColor; border-radius: 999px; line-height: 1;
}
.svc__row:hover .svc__title { color: var(--accent); transform: translateX(10px); }
.svc.is-open .svc__title { color: var(--accent); }
.svc.is-open .svc__plus { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.svc.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.svc__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__detail > div { overflow: hidden; padding-left: 86px; display: grid; gap: 18px; max-width: 900px; }
.svc.is-open .svc__detail { grid-template-rows: 1fr; }
.svc.is-open .svc__detail > div { padding-bottom: 30px; }
.svc__detail p { color: #cfcfcf; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.svc__detail .tags li { color: var(--accent); }

/* =========================================================
   PROCESO
   ========================================================= */
.process__head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(48px, 6vw, 90px); }
.process__intro { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 560px; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.step {
  padding: 30px 26px 40px 0; display: grid; gap: 14px; align-content: start;
  border-right: 1px solid var(--line-light);
  transition: background .4s;
}
.step + .step { padding-left: 26px; }
.step:last-child { border-right: 0; }
.step:nth-child(2) { transition-delay: .08s; }
.step:nth-child(3) { transition-delay: .16s; }
.step:nth-child(4) { transition-delay: .24s; }
.step__num { font-family: var(--f-display); font-size: clamp(3.5rem, 6vw, 6rem); line-height: 1; color: var(--accent-on-light); }
.step h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; }
.step p { color: #3d3d3d; }

/* =========================================================
   CERTIFICACIONES
   ========================================================= */
.certs__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 70px); }
.certs__table { border-top: 1px solid var(--line-dark); }
.certs__row {
  width: 100%;
  display: grid; grid-template-columns: 1.1fr 2.4fr 1.2fr 80px; gap: 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-dark);
  text-align: left; position: relative;
  transition: padding .45s var(--ease), color .3s;
}
.certs__row::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.certs { isolation: isolate; }
.certs__row:not(.certs__row--head):hover { color: var(--ink); padding-left: 20px; padding-right: 20px; }
.certs__row:not(.certs__row--head):hover::before { transform: scaleY(1); }
.certs__row--head { padding: 14px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.certs__row .org { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 2rem); text-transform: uppercase; line-height: 1; }
.certs__row:not(.certs__row--head) span:nth-child(2) { font-weight: 500; font-size: 1.05rem; }
.certs__row .date { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.certs__row .view { font-family: var(--f-mono); font-size: 13px; text-align: right; }

.certs__gallery { margin-top: clamp(50px, 6vw, 90px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert-card { display: grid; gap: 14px; text-align: left; }
.cert-card__img { overflow: hidden; border-radius: 4px; background: var(--white); aspect-ratio: 1.414; }
.cert-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.4) brightness(.85); }
.cert-card:hover img { transform: scale(1.04); filter: none; }
.cert-card__cap { display: grid; font-size: 14px; color: #bdbdbd; border-top: 1px solid var(--line-dark); padding-top: 12px; transition: color .3s; }
.cert-card:hover .cert-card__cap b { color: var(--accent); }
.cert-card__cap b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; color: var(--white); transition: color .3s; }
.cert-card:nth-child(2) { transition-delay: .08s; }
.cert-card:nth-child(3) { transition-delay: .16s; }
.cert-card:nth-child(4) { transition-delay: .24s; }

.cert-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: 320px; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg);
  transition: opacity .3s, transform .4s var(--ease);
  border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.cert-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.cert-float img { width: 100%; }

/* =========================================================
   POR QUÉ ELEGIRME
   ========================================================= */
.why__head { display: grid; gap: 26px; max-width: 1100px; margin-bottom: clamp(50px, 7vw, 110px); }
.why__text { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 4.8rem); line-height: 1.02; }
.why__text strong { font-weight: 400; color: var(--on-brand-strong); }
.why__tag { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--on-brand); }
.stat { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--on-brand-line); }
.stat p { font-size: .98rem; max-width: 260px; min-height: 4.7em; }
.stat strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(4rem, 8vw, 8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.stat:nth-child(2) { transition-delay: .08s; }
.stat:nth-child(3) { transition-delay: .16s; }
.stat:nth-child(4) { transition-delay: .24s; }

/* =========================================================
   EXPERIENCIA
   ========================================================= */
.exp__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 70px); }
.timeline { border-top: 1px solid var(--line-dark); }
.tl {
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 30px;
  padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-dark);
}
.tl__when { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: .5em; }
.tl__what { display: grid; gap: 10px; }
.tl h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1.02; }
.tl p { color: #bdbdbd; max-width: 700px; }
.tools { margin-top: clamp(40px, 5vw, 70px); display: grid; gap: 18px; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--ink); color: var(--accent); overflow: hidden; border-top: 1px solid var(--line-dark); padding: clamp(14px, 2vw, 26px) 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3rem, 9vw, 9rem); line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--white); padding: 0 .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.contact__media { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.contact__body { display: grid; gap: 26px; align-content: start; }
.contact .title-xl { font-size: clamp(2.8rem, 6vw, 6.6rem); line-height: .95; }
.contact__intro { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 560px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; border-top: 2px solid var(--on-brand); margin-top: 10px; }
.contact__list div { padding: 18px 0; border-bottom: 1px solid var(--on-brand-line); }
.contact__list dt { font-family: var(--f-mono); font-size: 12px; opacity: .8; margin-bottom: 4px; }
.contact__list dd { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; word-break: break-word; }
.contact__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.contact__list a:hover { background-size: 100% 2px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); padding: clamp(50px, 8vw, 110px) var(--gutter) 30px; overflow: hidden; }
.footer__big {
  font-family: var(--f-display); text-transform: uppercase; white-space: nowrap;
  font-size: 15.6vw; line-height: .85; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  margin-left: -.03em;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer a { text-decoration: none; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #bdbdbd; transition: color .3s; }
.footer a:hover { color: var(--accent); }
.footer__copy { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 8, 8, .94);
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  padding: 60px 10px;
  opacity: 0; transition: opacity .35s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 170px); max-width: 100%; width: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #ddd; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-dark); font-size: 18px; }
.lightbox__nav { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-dark); font-size: 20px; justify-self: center; transition: background .3s, color .3s; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-light); }
  .step:nth-child(4) { border-top: 1px solid var(--line-light); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 30px; }
  .certs__gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topbar__meta--time { display: none; }

  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero__name { position: relative; top: auto; left: auto; padding: 92px var(--gutter) 0; font-size: 25vw; }
  .hero__figure {
    position: relative; right: auto; bottom: auto;
    width: 124%; height: auto; margin: -7vw 0 0 -12%;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%);
            mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .xray-ring span { display: none; }
  .hero__hint { position: relative; top: auto; right: auto; order: 3; padding: 0 var(--gutter); margin: -6px 0 18px; }
  .hero__services { position: relative; top: auto; right: auto; order: 4; text-align: left; color: var(--on-brand); text-shadow: none; padding: 0 var(--gutter) 26px; }
  .hero__services ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero__services li { font-size: .95rem; line-height: 1.2; padding: 8px 14px; border: 1.5px solid var(--on-brand); border-radius: 999px; }
  .hero__bottom { position: relative; left: auto; bottom: auto; order: 5; padding: 0 var(--gutter) 48px; max-width: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: static; }
  .about__photo { aspect-ratio: 4 / 3; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }

  .services__count { display: none; }
  .svc__row { grid-template-columns: 34px 1fr 40px; gap: 10px; }
  .svc__plus { width: 34px; height: 34px; }
  .svc__detail > div { padding-left: 44px; }

  .certs__row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; }
  .certs__row--head { display: none; }
  .certs__row .org { grid-column: 1; }
  .certs__row .date { grid-column: 1; grid-row: 3; color: var(--muted); }
  .certs__row span:nth-child(2) { grid-column: 1; }
  .certs__row .view { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .certs__row:not(.certs__row--head):hover .date { color: inherit; }

  .tl { grid-template-columns: 1fr; gap: 8px; }
  .contact { grid-template-columns: 1fr; }
  .contact__media { aspect-ratio: 4 / 3; }
  .contact__list { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 70px 16px 24px; gap: 16px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; grid-column: 1; }
  .lightbox__nav--next { grid-row: 2; grid-column: 2; }
}

@media (max-width: 560px) {
  .process__steps, .stats { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-right: 0; border-top: 1px solid var(--line-light); }
  .step:first-child { border-top: 0; }
  .stat, .stat + .stat { padding: 24px 0 0; border-left: 0; margin-top: 0; }
  .stat p { min-height: 0; }
  .certs__gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cert-card__cap { font-size: 12px; }
  .cert-card__cap b { font-size: 1rem; }
  .btn { padding: 14px 14px 14px 20px; font-size: 1.05rem; }
}

@media (hover: none) {
  .cert-float { display: none; }
}

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