/* ==========================================================================
   Alpha Technology Group S.A.S — Estilos
   ========================================================================== */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --gray: #6e6e73;
  --gray-2: #86868b;
  --line: #d2d2d7;
  --paper: #f5f5f7;
  --white: #fff;

  --dark-1: #0a0a0c;
  --dark-2: #161618;
  --dark-3: #1f1f22;
  --dark-line: rgba(255, 255, 255, .1);
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;

  /* Colores de marca (tomados del isologotipo) */
  --cyan: #47bbf7;
  --azure: #4a7fee;
  --indigo: #4e3be5;
  --indigo-hover: #3f2dd0;
  --indigo-light: #8576ff;
  --gradient: linear-gradient(100deg, var(--cyan) 0%, var(--azure) 45%, var(--indigo-light) 100%);
  --gradient-brand: linear-gradient(160deg, var(--cyan) 0%, var(--indigo) 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --brand-font: "Montserrat", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 28px;
  --radius-sm: 18px;
  --nav-h: 56px;
  --container: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--gray-2); }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--dark-muted);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--gray); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s, color .3s, opacity .3s;
}
.btn--primary {
  padding: 13px 26px;
  border-radius: 980px;
  background: var(--indigo);
  color: var(--white);
}
.btn--primary:hover { background: var(--indigo-hover); }
.btn--primary:active { transform: scale(.97); }
.btn--block { width: 100%; }

.btn--link { color: var(--cyan); padding: 13px 4px; }
.btn--link span { transition: transform .3s var(--ease); }
.btn--link:hover span { transform: translateX(3px); }
.btn--link-dark { color: var(--indigo); padding-inline: 0; }

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

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.nav.is-scrolled { background: rgba(10, 10, 12, .78); border-bottom-color: var(--dark-line); }

.nav__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--dark-text); }
.brand__mark { width: auto; height: 26px; }
.brand__name {
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .06em;
}
.brand__sub {
  margin-left: .55em;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--cyan);
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px;
  color: rgba(245, 245, 247, .8);
  transition: color .25s;
}
.nav__links a:hover { color: var(--white); }
.nav__links .nav__cta {
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
}
.nav__links .nav__cta:hover { color: var(--ink); background: #e8e8ed; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--dark-text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 120px;
  background: var(--black);
  color: var(--dark-text);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), rgba(71, 187, 247, .22), transparent 60%),
    radial-gradient(40% 35% at 30% 70%, rgba(78, 59, 229, .28), transparent 70%),
    radial-gradient(35% 30% at 72% 30%, rgba(71, 187, 247, .18), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.hero__content { max-width: 980px; }

.hero__logo {
  width: clamp(92px, 11vw, 132px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 40px rgba(71, 187, 247, .45)) drop-shadow(0 0 80px rgba(78, 59, 229, .45));
}
.hero__logo.is-visible { animation: float 6s ease-in-out 1s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero .eyebrow { font-size: 17px; }

.hero__title {
  font-size: clamp(38px, 11vw, 112px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}

.hero__lead {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.4;
  color: var(--dark-muted);
  letter-spacing: -.01em;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: clamp(96px, 14vw, 160px) 0; }
.section--tight { padding-bottom: clamp(80px, 10vw, 120px); }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--black); color: var(--dark-text); }

.section__head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}
.section__lead {
  margin-top: 20px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.45;
  color: var(--gray);
}
.section--dark .section__lead { color: var(--dark-muted); }

/* ---------- Nosotros ---------- */
.statement {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
  max-width: 980px;
}

.pillars {
  margin-top: clamp(64px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.pillar__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  margin-bottom: 28px;
}
.pillar__icon svg { width: 26px; height: 26px; fill: var(--white); }
.pillar h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 10px; }
.pillar p { color: var(--gray); font-size: 17px; }

/* ---------- Servicios (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 20px;
}

.tile {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .4s var(--ease), border-color .4s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 0%), rgba(71, 187, 247, .14), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.tile:hover { border-color: rgba(255, 255, 255, .2); }
.tile:hover::before { opacity: 1; }

.tile__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tile h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 10px; }
.tile p { color: var(--dark-muted); font-size: 16px; }

.tile--xl {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(78, 59, 229, .25), transparent 60%),
    var(--dark-2);
}
.tile--xl h3 { font-size: clamp(30px, 3.2vw, 40px); }
.tile--wide { grid-column: span 4; min-height: 220px; }
.tile--wide .tile__body { max-width: 640px; }

.tile__art--code {
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .5);
  border: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.7;
  color: #e6e6e6;
  overflow-x: auto;
}
.tile__art--code pre { margin: 0; }
.tile__art--code .k { color: #ff7ab2; }
.tile__art--code .f { color: #67b7ff; }
.tile__art--code .p { color: #b6f09c; }
.tile__art--code .b { color: #d9c97c; }

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: 28px; }

.project {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 36px;
  background: var(--white);
  overflow: hidden;
}
.project--reverse .project__info { order: 2; }

.project__client {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--paper);
  color: var(--ink-2);
  margin-bottom: 20px;
}
.project__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.project__desc { font-size: 18px; color: var(--gray); line-height: 1.55; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.tags li {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 980px;
  color: var(--ink-2);
}

.project__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 8%;
  overflow: hidden;
}
.project__visual--autos   { background: linear-gradient(145deg, #0d1240, #2b2f9e 55%, var(--cyan)); }
.project__visual--bank    { background: linear-gradient(145deg, #0a0a0c, #1b1b3a 60%, var(--indigo)); }
.project__visual--network { background: radial-gradient(circle at 50% 50%, #12304a, #050b14 75%); color: rgba(71, 187, 247, .45); }
.project__visual--flow    { background: linear-gradient(145deg, #101012, #1e1e24); }

/* Mock: navegador / marketplace */
.mock {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform .8s var(--ease);
}
.project:hover .mock { transform: perspective(1000px) rotateY(0) rotateX(0); }
.mock__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: #f0f0f3;
  border-bottom: 1px solid #e3e3e8;
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4da; }
.mock__bar i:nth-child(1) { background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span {
  flex: 1; text-align: center;
  font-size: 11px; color: var(--gray);
  margin-right: 33px;
}
.mock__body { padding: 16px; }
.mock__search { height: 26px; border-radius: 8px; background: #f0f0f3; margin-bottom: 14px; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.car { display: grid; gap: 6px; }
.car__img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 78%, #222 0 7%, transparent 8%),
    radial-gradient(circle at 72% 78%, #222 0 7%, transparent 8%),
    linear-gradient(transparent 52%, var(--azure) 52% 72%, transparent 72%),
    linear-gradient(#e8f1ff, #f7faff);
  position: relative;
}
.car__img::after {
  content: "";
  position: absolute;
  left: 30%; right: 26%; top: 36%; height: 18%;
  background: var(--azure);
  border-radius: 10px 14px 0 0;
  opacity: .8;
}
.car:nth-child(2) .car__img { filter: hue-rotate(120deg); }
.car:nth-child(3) .car__img { filter: hue-rotate(250deg); }
.car b { height: 7px; width: 80%; border-radius: 4px; background: #d9d9de; }
.car s { height: 7px; width: 45%; border-radius: 4px; background: var(--azure); opacity: .7; }

/* Dashboard bancario */
.dash {
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash__head b { width: 40%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .35); }
.dash__head span { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dash__kpis div {
  height: 52px; border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  position: relative;
}
.dash__kpis div::after {
  content: "";
  position: absolute; left: 12px; bottom: 12px;
  width: 50%; height: 10px; border-radius: 5px;
  background: var(--gradient);
}
.dash__chart { width: 100%; height: auto; }
.dash__line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 2s var(--ease) .3s;
}
.is-visible .dash__line { stroke-dashoffset: 0; }

/* Red / nodos */
.network { width: 100%; height: auto; overflow: visible; }
.network__links path {
  stroke-dasharray: 4 6;
  animation: dash 6s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -100; } }
.network__nodes circle { fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(71, 187, 247, .8)); }
.network__core {
  fill: var(--indigo-light) !important;
  filter: drop-shadow(0 0 18px rgba(71, 187, 247, .9)) !important;
  transform-origin: 160px 120px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.18); } }

/* Flujo de integración */
.flow { width: 100%; display: flex; align-items: center; justify-content: center; }
.flow__node {
  flex: none;
  width: clamp(64px, 9vw, 92px);
  aspect-ratio: 1;
  border-radius: 22px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--dark-text);
  background: var(--dark-3);
  border: 1px solid var(--dark-line);
}
.flow__node--core {
  width: clamp(80px, 11vw, 116px);
  background: var(--gradient-brand);
  border: 0;
  box-shadow: 0 0 60px rgba(78, 59, 229, .5);
}
.flow__pipe {
  flex: 1;
  height: 2px;
  margin: 0 6px;
  background: rgba(255, 255, 255, .12);
  position: relative;
  overflow: hidden;
}
.flow__pipe i {
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: flow 1.8s linear infinite;
}
.flow__pipe:last-of-type i { animation-delay: .9s; }
@keyframes flow { to { left: 100%; } }

/* ---------- Clientes ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo {
  flex: none;
  display: block;
  min-width: 300px;
  height: 120px;
  line-height: 120px;
  text-align: center;
  margin-right: 20px;
  padding: 0 40px;
  border-radius: 24px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--dark-muted);
  white-space: nowrap;
  transition: color .4s, border-color .4s;
}
.logo:hover { color: var(--white); border-color: rgba(255, 255, 255, .25); }
.logo b { font-weight: 800; color: var(--dark-text); }
.logo small { margin-left: .3em; font-size: .55em; font-weight: 500; opacity: .7; }
.logo--autos b { color: var(--cyan); }
.logo--sianco b { color: var(--indigo-light); }
.logo--avv { font-weight: 800; letter-spacing: .06em; }

.sectors {
  margin-top: clamp(64px, 9vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.sector { padding: 28px 12px; border-top: 1px solid var(--dark-line); }
.sector__n {
  display: inline-block;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.sector p { color: var(--dark-muted); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact__list { margin-top: 40px; display: grid; gap: 18px; font-size: 17px; }
.contact__list span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 2px;
}
.contact__list a { color: var(--indigo); }
.contact__list a:hover { text-decoration: underline; }

.form {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .25);
  display: grid;
  gap: 16px;
}
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 26px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(78, 59, 229, .15);
}
.field label {
  position: absolute;
  left: 17px; top: 18px;
  font-size: 17px;
  color: var(--gray-2);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.72);
}
.field input:focus + label,
.field textarea:focus + label { color: var(--indigo); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #e30000; }

.form__status { min-height: 1.4em; font-size: 15px; text-align: center; color: var(--gray); }
.form__status.is-error { color: #e30000; }
.form__status.is-ok { color: #1a8a3a; }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  color: var(--gray);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: center;
}
.footer__logo { width: auto; height: 56px; margin-bottom: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }

/* ==========================================================================
   ANIMACIONES DE ENTRADA
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* La inclinación de las tarjetas sustituye la transformación de entrada */
.tile.reveal.is-visible {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 1s var(--ease), transform .5s var(--ease), border-color .4s;
}
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--xl { grid-column: span 2; grid-row: auto; }
  .tile--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project--reverse .project__info { order: 0; }
  .project__visual { order: -1; }
  .pillars { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .brand__sub { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 24px 32px;
    background: rgba(0, 0, 0, .94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { background: rgba(0, 0, 0, .94); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { font-size: 28px; font-weight: 600; padding: 8px 0; color: var(--dark-text); }
  .nav__links .nav__cta { margin-top: 16px; font-size: 17px; padding: 12px 24px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile--xl, .tile--wide { grid-column: auto; min-height: 0; }
  .tile { padding: 28px 24px; }
  .project { padding: 20px 20px 32px; border-radius: 28px; }
  .project__visual { border-radius: 18px; }
  .logo { min-width: 240px; height: 96px; line-height: 96px; font-size: 21px; padding: 0 28px; }
  .sectors { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__list[aria-hidden] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .logo { margin: 0; }
}
