/* IMAST · identidad tomada del Figma (azul noche, lima, violeta, gris claro).
   Mobile first; a partir de 1024px se arma la versión de compu. */
:root {
  --navy: #191e31;
  --navy-2: #222842;
  --blue: #2c396b;
  --violet: #bb67f0;
  --lime: #d6f47a;
  --light: #e1e1e1;
  --muted: rgba(225, 225, 225, 0.72);
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--light);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Tipografía */
h1, h2, .featured h3, .option h3, .plan h3, .logo-name, .num {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  text-wrap: balance;
}
h1 { font-size: 44px; }
h2 { font-size: 34px; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.5; }

/* Navegación */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 20px 12px; }
.logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-name { font-family: var(--display); font-size: 28px; line-height: 1; }
.logo-sub { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.nav-links { display: none; gap: 40px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--light); }

/* Pills y botones */
.pill {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.pill-violet { background: var(--violet); }
.pill-lime { background: var(--lime); }
.pill-light { background: var(--light); }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--light); }
.btn-outline { border-color: rgba(225, 225, 225, 0.5); color: var(--light); }
.btn-outline:hover { background: rgba(225, 225, 225, 0.08); }

/* Inicio */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 32px;
  padding-block: 36px 44px;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.blob { position: absolute; z-index: -1; filter: blur(70px); pointer-events: none; }
.blob-tri { width: 300px; height: 300px; left: -120px; top: 300px; background: var(--lime); opacity: 0.5; clip-path: polygon(50% 4%, 98% 92%, 2% 92%); transform: rotate(12deg); }
.blob-circle { width: 280px; height: 280px; right: -110px; top: 110px; background: var(--violet); opacity: 0.6; border-radius: 50%; }
.blob-square { width: 240px; height: 240px; left: 120px; top: 560px; background: var(--blue); opacity: 0.9; border-radius: 38px; transform: rotate(8deg); }

/* Tarjetas de video */
.work {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0;
}
.thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 20px; background: var(--navy-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work:hover .thumb img { transform: scale(1.03); }
.thumb-split img { height: 50%; }
.thumb-split img + img { border-top: 2px solid var(--navy); }
.tag-top { position: absolute; top: 10px; left: 10px; font-size: 12px; padding: 5px 10px; }
.tag-mid { position: absolute; top: calc(50% + 10px); left: 10px; font-size: 12px; padding: 5px 10px; }
.play {
  position: absolute; left: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(25, 30, 49, 0.55); backdrop-filter: blur(4px);
}
.play::after {
  content: ""; position: absolute; left: 18px; top: 14.5px;
  border-left: 12px solid var(--light); border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent;
}
.meta { display: flex; flex-direction: column; gap: 2px; }
.meta strong { font-weight: 600; font-size: 15px; }
.meta span { font-size: 13px; color: rgba(225, 225, 225, 0.6); }
.work-hero .thumb { aspect-ratio: 350 / 460; }

/* Secciones */
.section { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head p { color: var(--muted); max-width: 40rem; }

/* Grilla de trabajos */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

.featured { grid-column: 1 / -1; display: flex; flex-direction: column-reverse; gap: 20px; }
.featured-text { display: none; }
.work-featured .thumb { aspect-ratio: 350 / 440; }

/* Servicios */
.services { display: flex; flex-direction: column; gap: 12px; }
.services li {
  display: grid; grid-template-columns: 28px 1fr; gap: 4px 16px; align-items: start;
  padding: 18px; border-radius: 20px; background: var(--navy-2);
}
.services h3 { font-size: 18px; font-weight: 600; }
.services p { grid-column: 2; font-size: 15px; color: rgba(225, 225, 225, 0.7); }
.shape { width: 28px; height: 28px; grid-row: span 2; }
.shape.lime { background: var(--lime); }
.shape.violet { background: var(--violet); }
.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 6px; }
.shape-tri { clip-path: polygon(50% 6%, 100% 94%, 0 94%); }

/* Dos formas de trabajar */
.options, .plans { display: flex; flex-direction: column; gap: 14px; }
.option, .plan {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: 24px; background: var(--navy-2);
}
.option h3, .plan h3 { font-size: 28px; }
.plan h3 { text-transform: none; } /* respeta la marca: IMASTart, IMASTer */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.option-lime { background: var(--lime); color: var(--navy); }
.option-dark { border: 1.5px solid rgba(187, 103, 240, 0.6); }
.option p, .plan p { line-height: 1.5; opacity: 0.85; }

.bullets { display: flex; flex-direction: column; gap: 8px; }
.bullets li { position: relative; padding-left: 22px; font-weight: 500; font-size: 15px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px; border-radius: 2px; background: var(--violet);
}
.option-lime .bullets li::before { background: var(--navy); }
.plan-lime { border: 1.5px solid rgba(214, 244, 122, 0.6); }
.plan-lime h3 { color: var(--lime); }
.plan-lime .bullets li::before { background: var(--lime); }
.plan-violet { border: 1.5px solid rgba(187, 103, 240, 0.6); }
.plan-violet h3 { color: var(--violet); }

/* Pasos */
.steps { display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps h3 { font-size: 18px; font-weight: 600; }
.steps p { font-size: 15px; color: rgba(225, 225, 225, 0.7); margin-top: 4px; }
.num {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--navy); font-size: 18px;
}
.num.lime { background: var(--lime); }
.num.violet { background: var(--violet); }

/* Quién está detrás */
.about-photo { width: 100%; aspect-ratio: 350 / 400; object-fit: cover; border-radius: 24px; }
.about-text { display: flex; flex-direction: column; gap: 14px; }
.about-name { font-size: 22px; font-weight: 600; color: var(--lime); }
.about-text p:last-child { color: rgba(225, 225, 225, 0.82); line-height: 1.55; }

/* Contacto */
.contact-wrap { padding-block: 24px 48px; }
.contact {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 24px; border-radius: 28px; background: var(--violet); color: var(--navy);
}
.contact h2 { font-size: 32px; }
.contact p { margin-top: 10px; font-size: 17px; }
.contact-action { display: flex; flex-direction: column; gap: 14px; }
.contact-info { font-weight: 500; font-size: 15px; opacity: 0.85; }

.footer { display: flex; justify-content: space-between; align-items: center; padding-block: 20px 32px; font-size: 13px; color: rgba(225, 225, 225, 0.6); }
.footer .logo-name { font-size: 20px; color: var(--light); }

/* Reproductor */
.player { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px; }
.player-backdrop { position: absolute; inset: 0; background: rgba(12, 15, 26, 0.88); backdrop-filter: blur(6px); }
.player-box { position: relative; height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.player-box video { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: #000; }
.player-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: var(--navy); font-size: 26px; line-height: 1;
}

/* ---------- Compu ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 100px; }
  h1 { font-size: clamp(64px, 5.8vw, 84px); }
  h2 { font-size: 56px; }
  .lead { font-size: 21px; }

  .nav { padding-block: 32px 16px; }
  .logo-name { font-size: 34px; }
  .logo-sub { font-size: 13px; }
  .nav-links { display: flex; }

  .btn { padding: 16px 28px; font-size: 17px; }
  .pill { font-size: 15px; }

  .hero { flex-direction: row; align-items: center; gap: 80px; padding-block: 64px 96px; }
  .hero-text { flex: 1; gap: 28px; }
  .hero-text .lead { max-width: 40rem; }
  .work-hero { flex: none; width: 380px; }
  .work-hero .thumb { aspect-ratio: 9 / 15; border-radius: 22px; }
  .blob-tri { width: 520px; height: 520px; left: -160px; top: 420px; filter: blur(120px); }
  .blob-circle { width: 560px; height: 560px; right: -80px; top: -80px; filter: blur(120px); }
  .blob-square { width: 420px; height: 420px; left: 660px; top: 380px; filter: blur(120px); }

  .section { padding-block: 80px; gap: 40px; }
  .section-head { gap: 14px; }
  .section-head p { font-size: 18px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  .thumb { border-radius: 22px; }
  .meta strong { font-size: 17px; }
  .meta span { font-size: 14px; }
  .play { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .play::after { left: 21px; top: 17px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }

  .featured {
    flex-direction: row; gap: 0; overflow: hidden;
    border-radius: 28px; background: var(--navy-2); border: 1.5px solid rgba(214, 244, 122, 0.5);
  }
  .featured-text { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 20px; padding: 56px 64px; }
  .featured h3 { font-size: 44px; }
  .featured p { font-size: 18px; line-height: 1.55; color: rgba(225, 225, 225, 0.8); max-width: 38rem; }
  .work-featured { flex: none; width: 420px; }
  .work-featured .thumb { aspect-ratio: 420 / 560; border-radius: 0; }
  .only-mobile { display: none; }

  .services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .services li { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; }
  .services h3 { font-size: 20px; }
  .services p { font-size: 16px; }
  .shape { width: 36px; height: 36px; }

  .options, .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .option, .plan { padding: 40px; gap: 18px; }
  .option h3 { font-size: 40px; }
  .plan h3 { font-size: 36px; }
  .option p, .plan p { font-size: 18px; }
  .bullets li { font-size: 17px; }

  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .steps li { flex-direction: column; }
  .steps h3 { font-size: 20px; }
  .steps p { font-size: 16px; }
  .num { width: 52px; height: 52px; font-size: 22px; }

  .about { flex-direction: row; align-items: center; gap: 80px; }
  .about-photo { width: 520px; flex: none; aspect-ratio: 520 / 560; border-radius: 28px; }
  .about-name { font-size: 26px; }
  .about-text { gap: 24px; }
  .about-text p:last-child { font-size: 19px; max-width: 38rem; }

  .contact-wrap { padding-block: 40px 80px; }
  .contact { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 56px 64px; border-radius: 32px; }
  .contact h2 { font-size: 64px; }
  .contact p { font-size: 20px; }
  .contact-action { align-items: flex-end; text-align: right; }
  .contact-action .btn { align-self: flex-end; }

  .footer { padding-block: 24px 40px; font-size: 14px; }
  .footer .logo-name { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .thumb img { transition: none; }
}
