/* ==========================================================
   Thomas Mori Delponte — estilos
   Sistema: lienzo blanco, tinta azul noche, azul de marca
   Títulos: Montserrat · Texto: Roboto
   ========================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --fog: #eef2f6;
  --mist: #e4f1fb;
  --ink: #0a2540;
  --ink-2: #133a5e;
  --blue: #0f6fb8;
  --sky: #1ba1da;
  --volt: #8fd6ff;
  --text: #3f4650;
  --muted: #6b7480;
  --line: #d9e0e7;
  --it-green: #009246;
  --it-red: #ce2b37;

  --f-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-text: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --max: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --r-card: 12px;
  --r-lg: 28px;
  --pill: 9999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tipografía ---------- */
.display, h2.title {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}
h2.title { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-family: var(--f-text); color: var(--ink); letter-spacing: -0.015em; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--text); max-width: 34em; }
.small { font-size: 15px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; min-height: 52px;
  border-radius: var(--pill); border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), background-color .3s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light::after { background: var(--volt); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { --fg: #fff; }
.btn--ghost:hover span, .btn--ghost:hover svg { color: #fff; }
.link {
  font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1.5px; transition: text-underline-offset .25s, color .25s;
}
.link:hover { text-underline-offset: 8px; color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }

.tag {
  display: inline-block; padding: 6px 13px; border-radius: var(--pill);
  background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .3s, transform .45s var(--ease-out);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }

.nav { position: relative; display: flex; padding: 4px; border-radius: var(--pill); background: var(--fog); }
.nav a {
  position: relative; z-index: 1; padding: 8px 16px; border-radius: var(--pill);
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .3s;
}
.nav a.is-active { color: #fff; }
.nav__pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: var(--pill); background: var(--ink); opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.header .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--fog); cursor: pointer;
  position: relative;
}
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--paper);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gut) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 36px); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .7s var(--ease-out); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 10vw, 52px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding: 6px 0;
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu__foot { display: grid; gap: 12px; }
.mobile-menu__foot .btn { justify-content: center; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__hello { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 17px; font-weight: 500; color: var(--ink); }
.hero__hello i { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47,191,113,.18); }
.hero h1 {
  margin: 0; font-family: var(--f-display); font-weight: 800; color: var(--ink);
  font-size: clamp(28px, 2.9vw, 42px); line-height: 1.16; letter-spacing: -0.02em; max-width: 18em;
}
.hero h1 .name { color: var(--blue); }
.hero .lead { margin: 22px 0 0; }
.hero__proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero__proof li { font-size: 15px; color: var(--muted); line-height: 1.3; }
.hero__proof b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }

.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .8s var(--ease-out); }
.is-loaded .fade-in { opacity: 1; transform: none; }
.is-loaded .fade-in.d1 { transition-delay: .08s; }
.is-loaded .fade-in.d2 { transition-delay: .16s; }
.is-loaded .fade-in.d3 { transition-delay: .24s; }
.is-loaded .fade-in.d4 { transition-delay: .32s; }

.hero__media { position: relative; justify-self: end; width: min(100%, 430px); }
.portrait {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #1ab9ed, #1d549b);
  opacity: 0; transform: scale(.98); transition: opacity .9s ease .1s, transform 1.1s var(--ease-out) .1s;
}
.is-loaded .portrait { opacity: 1; transform: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; left: -28px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(10,37,64,.14); width: max-content; max-width: 290px;
  opacity: 0; transform: translateY(10px); transition: opacity .7s ease .5s, transform .8s var(--ease-out) .5s;
}
.is-loaded .hero__card { opacity: 1; transform: none; }
.hero__card b { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.hero__card span { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 2px; }

/* ---------- Clientes / marquee ---------- */
.clients { padding: 30px 0 clamp(64px, 8vw, 100px); }
.clients__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.clients h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0 8px; list-style: none; }
.logo {
  width: 200px; height: 112px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center; padding: 16px 22px; transition: box-shadow .3s;
}
.logo img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; transition: transform .45s var(--ease-out); }
.logo:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.logo:hover img { transform: scale(1.05); }
.logo__name { display: none; font-weight: 700; color: var(--ink); font-size: 15px; text-align: center; line-height: 1.2; }
.logo.is-text img { display: none; }
.logo.is-text .logo__name { display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head p { margin: 0; }

/* Revelados */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.mask-title { overflow: hidden; }
.mask-title > span { display: block; padding-bottom: .14em; margin-bottom: -.14em; transform: translateY(40%); opacity: 0; transition: transform .9s var(--ease-out), opacity .7s ease; }
.mask-title.in > span { transform: none; opacity: 1; }
.mask-title > span + span { transition-delay: .08s; }

/* ---------- Qué hago ---------- */
.services { border-top: 1.5px solid var(--ink); }
.service {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px 48px;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1.5px solid var(--ink); isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); z-index: -1; background: var(--mist);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.service:hover::before { transform: scaleY(1); }
.service h3 {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -0.02em; display: flex; align-items: center; gap: 18px;
}
.service__icon {
  flex: none; width: clamp(48px, 5vw, 64px); height: clamp(48px, 5vw, 64px); border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .6s var(--ease-out), background-color .3s;
}
.service:hover .service__icon { transform: rotate(-20deg); background: var(--blue); }
.service__icon svg { width: 46%; height: 46%; }
.service p { margin: 0 0 18px; font-size: 18px; max-width: 32em; }
.service .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service:hover .tag { background: #fff; }

/* ---------- Manifiesto (oscuro) ---------- */
.dark { background: var(--ink); color: #c9d6e3; border-radius: clamp(24px, 3vw, 40px); margin: 0 clamp(8px, 1.5vw, 20px); }
.dark h2.title { color: #fff; }
.manifesto { padding-top: clamp(64px, 11vw, 150px); padding-bottom: clamp(64px, 11vw, 150px); }
.manifesto__label { color: var(--volt); font-weight: 600; font-size: 17px; margin: 0 0 28px; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.25;
  letter-spacing: -0.015em; margin: 0; max-width: 20em;
}
.manifesto__text .w { color: rgba(255,255,255,.16); transition: color .25s; }
.manifesto__text .w.on { color: #fff; }
.manifesto__text .w.on.hi { color: var(--volt); }
.pilot {
  margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14); max-width: 760px;
}
.pilot__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--volt); color: var(--ink); display: grid; place-items: center; }
.pilot__icon svg { width: 30px; height: 30px; transform: rotate(45deg); }
.pilot.in .pilot__icon svg { animation: fly 1.6s var(--ease-out); }
@keyframes fly { from { transform: translate(-40px, 30px) rotate(45deg); opacity: 0; } to { transform: rotate(45deg); opacity: 1; } }
.pilot p { margin: 0; color: #c9d6e3; font-size: 18px; }
.pilot strong { color: #fff; }

/* ---------- Números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px 24px 26px; border-radius: var(--r-card); background: var(--fog); }
.stat__num { white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat p { margin: 12px 0 0; font-size: 16px; line-height: 1.4; color: var(--text); }
.stat--blue { background: var(--blue); }
.stat--blue .stat__num, .stat--blue p { color: #fff; }

/* ---------- Trayectoria ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; max-width: 880px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl { position: relative; padding: 0 0 clamp(36px, 5vw, 52px); }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ""; position: absolute; left: -44px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .4s, background-color .4s;
}
.tl.in::before { box-shadow: inset 0 0 0 7px var(--blue); }
.tl__when { display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.tl h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.tl h3 small { font-weight: 500; color: var(--muted); font-size: .72em; margin-left: 6px; }
.tl p { margin: 0; max-width: 36em; }

.career { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.creds { position: sticky; top: calc(var(--header-h) + 24px); background: var(--fog); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.creds__title { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 12px; }
.creds ul { list-style: none; margin: 0; padding: 0; }
.creds li { padding: 14px 0; border-top: 1px solid var(--line); transition: transform .4s var(--ease-out); }
.creds li:first-child { border-top: 0; }
.creds li:hover { transform: translateX(6px); }
.creds b { display: block; color: var(--ink); font-size: 17px; line-height: 1.3; }
.creds span { display: block; font-size: 15px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Cursos ---------- */
.courses { background: var(--fog); }
.courses__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.photo-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.photo-card.in img { transform: scale(1); }
.photo-card figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: var(--r-card); padding: 14px 18px; font-size: 15px; line-height: 1.4;
}
.course-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.course-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.course-list b { color: var(--ink); font-size: 19px; letter-spacing: -0.01em; display: block; line-height: 1.3; }
.course-list span { font-size: 15px; color: var(--muted); }
.course-list .tag { background: #fff; flex: none; }
.course-list .tag--free { background: var(--ink); color: #fff; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--pill); padding: 8px 14px 8px 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.checks svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Italia ---------- */
.italia { position: relative; overflow: hidden; }
.tricolore { display: flex; height: 10px; border-radius: var(--pill); overflow: hidden; width: 160px; margin-bottom: 30px; }
.tricolore i { flex: 1; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.tricolore i:nth-child(1) { background: var(--it-green); }
.tricolore i:nth-child(2) { background: #f1f2f1; box-shadow: inset 0 0 0 1px var(--line); transition-delay: .15s; }
.tricolore i:nth-child(3) { background: var(--it-red); transition-delay: .3s; }
.tricolore.in i { transform: none; }
.italia__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.swap { display: inline-grid; vertical-align: bottom; }
.swap > span { grid-area: 1 / 1; transition: opacity .5s, transform .6s var(--ease-out); }
.swap > span:nth-child(2) { opacity: 0; transform: translateY(40%); }
.swap.alt > span:nth-child(1) { opacity: 0; transform: translateY(-40%); }
.swap.alt > span:nth-child(2) { opacity: 1; transform: none; }
.italia__it { font-size: 17px; font-style: italic; color: var(--muted); margin: 20px 0 0; max-width: 32em; }
.italia__it::before { content: "IT"; font-style: normal; font-weight: 700; font-size: 12px; color: #fff; background: var(--it-green); border-radius: var(--pill); padding: 3px 8px; margin-right: 10px; vertical-align: 2px; }
.it-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.it-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: var(--r-card); background: var(--fog); transition: transform .45s var(--ease-out), background-color .3s;
}
.it-list li:hover { transform: translateX(6px); background: var(--mist); }
.it-list .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.it-list .dot svg { width: 20px; height: 20px; }
.it-list li:nth-child(3n+1) .dot { color: var(--it-green); }
.it-list li:nth-child(3n+2) .dot { color: var(--ink); }
.it-list li:nth-child(3n+3) .dot { color: var(--it-red); }
.it-list b { display: block; color: var(--ink); font-size: 18px; line-height: 1.3; }
.it-list span { font-size: 15.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 3px; }

.it-band { margin-top: clamp(56px, 8vw, 100px); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.it-band__track { display: flex; width: max-content; animation: marquee 36s linear infinite reverse; }
.it-band span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: 1;
  letter-spacing: -0.03em; padding: 0 .35em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .4s;
}
.it-band span:nth-child(5n+1):hover { color: var(--it-green); -webkit-text-stroke-color: var(--it-green); }
.it-band span:nth-child(5n+3):hover { color: var(--it-red); -webkit-text-stroke-color: var(--it-red); }
.it-band span:hover { color: var(--ink); }
.it-band span::after { content: ""; display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--it-green); margin-left: .7em; vertical-align: middle; }
.it-band span:nth-child(even)::after { background: var(--it-red); }
.italia { padding-bottom: clamp(60px, 8vw, 100px); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(19px, 2vw, 22px); font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fog); position: relative; transition: background-color .3s, transform .5s var(--ease-out);
}
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 12px; right: 12px; top: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), background-color .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--ink); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__body { overflow: hidden; }
.faq__body p { margin: 0 0 24px; max-width: 42em; }

/* ---------- Contacto ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 120px); }
.contact__box { background: var(--ink); color: #c9d6e3; border-radius: clamp(24px, 3vw, 40px); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); }
.contact h2.title { color: #fff; font-size: clamp(32px, 3.8vw, 52px); }
.contact__side p { margin: 22px 0 0; }
.contact__links { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.contact__links a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 500; padding: 6px 0; }
.contact__links a span { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.35); transition: text-decoration-color .3s; }
.contact__links a:hover span { text-decoration-color: var(--volt); }
.contact__links svg { width: 22px; height: 22px; color: var(--volt); flex: none; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: #fff; }
.field label em { font-style: normal; color: var(--volt); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: var(--r-card); background: #fff; color: var(--ink);
  padding: 14px 16px; font-size: 16px; line-height: 1.4; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(143,214,255,.35); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px #ff8a8a; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 10px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: #fff; font-size: 15px; transition: background-color .25s, color .25s, box-shadow .25s; }
.chips input:checked + span { background: var(--volt); color: var(--ink); box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__foot .small { color: #9fb2c6; max-width: 26em; margin: 0; }
.form__foot .small a { color: #fff; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 0; border-radius: var(--r-card); font-weight: 500; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out), padding .4s; }
.form__status.show { padding: 14px 18px; max-height: 200px; }
.form__status.ok { background: #d9f7e6; color: #0b5132; }
.form__status.err { background: #ffe1e1; color: #7a1717; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.footer p { margin: 0; font-size: 15px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { font-size: 15px; color: var(--ink); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .bigname { font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: clamp(36px, 9vw, 128px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 28px; white-space: nowrap; overflow: hidden; }
.bigname span { display: inline-block; transform: translateY(100%); transition: transform 1.2s var(--ease-out); }
.bigname.in span { transform: none; }

/* ---------- Barra móvil ---------- */
.mbar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: none; gap: 8px; padding: 8px; border-radius: var(--pill);
  background: rgba(10,37,64,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(10,37,64,.28);
  transform: translateY(140%); transition: transform .55s var(--ease-out);
}
.mbar.show { transform: none; }
.mbar .btn { flex: 1; justify-content: center; min-height: 48px; font-size: 16px; }
.mbar .btn--wa { --bg: #25d366; --fg: #06301a; flex: 0 0 auto; padding: 12px 18px; }
.mbar .btn--wa::after { background: #fff; }

/* ---------- Páginas simples ---------- */
.page { padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 60px) 0 100px; min-height: 70vh; }
.page h1 { font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 28px; }
.prose { max-width: 42em; }
.prose h2 { color: var(--ink); font-size: 22px; margin: 36px 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header .btn--desk { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; justify-self: center; width: min(78%, 320px); }
  .hero__media { margin-bottom: 26px; }
  .hero__card { left: 50%; right: auto; bottom: -26px; transform: translateX(-50%); width: max-content; max-width: 92%; padding: 12px 16px; text-align: center; }
  .is-loaded .hero__card { transform: translateX(-50%); }
  .section__head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career { grid-template-columns: 1fr; }
  .creds { position: static; }
  .courses__grid, .italia__grid, .contact__box { grid-template-columns: 1fr; }
  .photo-card { aspect-ratio: 4 / 3; position: relative; top: auto; }
  .mbar { display: flex; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .hero__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__proof b { font-size: 22px; }
  .actions { gap: 14px 20px; }
  .actions .btn { width: 100%; justify-content: center; }
  .stat { padding: 22px 18px; }
  .form { grid-template-columns: 1fr; }
  .logo { width: 150px; height: 84px; }
  .contact__box { padding: 32px 20px; }
  .course-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .clients__head { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track, .it-band__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .manifesto__text .w { color: #fff; }
}
