/* ==========================================================================
   MGF Seguridad
   Tema oscuro azul marino (color del logo) con un único acento ámbar.
   Esquinas: 4px en todo el sitio.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Superficies */
  --bg: #0a0c18;
  --surface: #10142a;
  --surface-2: #161b38;
  --brand: #1c1662;          /* azul del logo */
  --brand-strong: #241c86;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);

  /* Texto */
  --text: #eef0f7;
  --muted: #a6acc6;
  --faint: #7d84a3;

  /* Acento único */
  --accent: #e8ae3c;
  --accent-hover: #f2be57;
  --on-accent: #12101f;

  --danger: #ff8a7a;
  --ok: #8fd6a8;

  --radius: 4px;
  --wrap: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index */
  --z-nav: 20;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

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

.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;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Tipografía compartida ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section { padding-block: 112px; }

.section__title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
}

.section__lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 60ch;
}

/* ---------- Botones ---------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--btn-bg);
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary { --btn-bg: var(--accent); color: var(--on-accent); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); }

@media (hover: hover) {
  .btn--primary:hover { --btn-bg: var(--accent-hover); }
  .btn--ghost:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.04); }
}

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-solid {
  background: rgb(10 12 24 / 0.92);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 115;
}
.nav__brand img { width: 36px; height: auto; }
.nav__brand strong { font-weight: 700; }
.nav__brand span { white-space: nowrap; }
@media (max-width: 420px) {
  .nav__brand { gap: 10px; font-size: 0.8rem; letter-spacing: 0.04em; }
  .nav__brand img { width: 32px; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a:not(.btn) {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__cta { min-height: 42px; padding: 0 18px; }

.nav__tools { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang i { font-size: 1.1rem; color: var(--accent); }
@media (hover: hover) {
  .lang:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.04); }
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100dvh, 900px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 85% 30%, rgb(36 28 134 / 0.45), transparent 70%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1.02;
  font-weight: 750;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40ch;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Escudo de MGF en lugar de la foto */
.hero__badge {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}
.hero__badge::before {
  /* halo azul detrás del escudo */
  content: "";
  position: absolute;
  inset: -26% -34%;
  background: radial-gradient(closest-side, rgb(84 70 240 / 0.6), rgb(44 34 160 / 0.28) 50%, transparent 78%);
  filter: blur(8px);
  z-index: 0;
}
.hero__badge-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 716 / 900;
  filter: drop-shadow(0 30px 60px rgb(4 4 20 / 0.6));
}
.hero__badge img { width: 100%; height: 100%; object-fit: contain; }
.hero__shine {
  /* Reflejo de luz recortado con la silueta del escudo (arco arriba, recto abajo).
     No usa la imagen como máscara: así también funciona al abrir el archivo con doble clic. */
  position: absolute;
  inset: 0.6% 0.9% 0.8%;
  border-radius: 50% 50% 1.5% 1.5% / 40% 40% 1.2% 1.2%;
  overflow: hidden;
  background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 0.42) 48%, rgb(255 255 255 / 0.1) 54%, transparent 62%);
  background-size: 300% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__sentinel { position: absolute; top: 120px; left: 0; width: 1px; height: 1px; }

/* ---------- Clientes ---------- */

.clients { padding-block: 96px; border-top: 1px solid var(--line); }
.clients .section__title { max-width: 30ch; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }

.clients__grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.client {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  text-align: center;
}

.client img {
  width: auto;
  max-width: 100%;
  height: var(--logo-h, 40px);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease);
}

.client__name {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 118;
  line-height: 1.35;
  color: var(--text);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease);
  text-wrap: balance;
}

.client--named { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.client--named .client__name { font-size: 0.72rem; }

.client img.is-original { filter: grayscale(1) brightness(1.35); }

@media (hover: hover) {
  .client:hover img,
  .client:hover .client__name { opacity: 1; }
}

/* ---------- Últimos eventos (carrusel) ---------- */

.events { padding-block: 96px; border-top: 1px solid var(--line); }

.events__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.events__controls { display: flex; gap: 10px; flex: none; }
.events__controls[hidden] { display: none; }

.events__btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.12s var(--ease);
}
.events__btn:active { transform: scale(0.96); }
.events__btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .events__btn:not(:disabled):hover { border-color: var(--accent); background: rgb(232 174 60 / 0.08); }
}

.events__track {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 23vw, 300px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.events__track::-webkit-scrollbar { display: none; }
/* Mientras avanza solo, se desactiva el "imán" del scroll para que el movimiento sea continuo */
.events__track.is-drifting { scroll-snap-type: none; }
.events__track:focus-visible { outline-offset: 6px; }

.event { scroll-snap-align: start; }
.event figure { margin: 0; }
.event__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
}
/* Fondo: la misma imagen desenfocada, para que cualquier flyer (vertical o cuadrado) se vea completo */
.event__bg {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(0.45) saturate(1.2);
  z-index: -1;
}
.event__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.event figcaption {
  margin-top: 14px;
  display: grid;
  gap: 4px;
}
.event strong { font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
.event__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.event__meta i { color: var(--accent); }
.event__date { display: block; color: var(--faint); font-size: 0.875rem; }
.event__date::first-letter { text-transform: uppercase; }

/* ---------- Servicios (bento) ---------- */

.services { background: var(--surface); }

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 300px 300px auto;
  gap: 16px;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.tile h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
  font-variation-settings: "wdth" 108;
}
.tile p { margin-top: 8px; color: var(--muted); font-size: 0.975rem; max-width: 46ch; }

.tile--photo { justify-content: flex-end; isolation: isolate; }
.tile--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease);
}
.tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(8 9 20 / 0.94) 8%, rgb(8 9 20 / 0.55) 45%, rgb(8 9 20 / 0.05) 80%);
}
.tile--photo p { color: #d4d8e8; }
@media (hover: hover) {
  .tile--photo:hover img { transform: scale(1.04); }
}

.tile--recitales { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile--recitales h3 { font-size: 1.75rem; }
/* Encuadre: una sola persona, a la derecha, para evitar la simetría de la imagen */
.tile--recitales img { object-position: 50% 30%; }
.tile--estadios { grid-column: 3 / 4; grid-row: 1 / 3; }
.tile--teatros { grid-column: 4 / 5; grid-row: 1 / 2; }
.tile--teatros img { object-position: center 70%; }

.tile--integral { grid-column: 4 / 5; grid-row: 2 / 3; }
.tile--integral img { object-position: 30% center; }

.tile__icon { font-size: 1.75rem; color: var(--accent); margin-bottom: auto; }

.tile--wide {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tile__item { display: flex; gap: 16px; align-items: flex-start; }
.tile__item .tile__icon { margin: 2px 0 0; flex: none; }
.tile--wide h3 { font-size: 1.1rem; }

/* ---------- Custodia y Business (dentro de Servicios) ---------- */

.escort {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.escort__copy { padding: 48px; }
.escort__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.01em;
}
.escort__lead { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.escort__media { margin: 0; position: relative; min-height: 320px; }
.escort__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}
.escort .checklist { margin-top: 32px; gap: 18px; }

.checklist {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--muted);
}
.checklist i { font-size: 1.5rem; color: var(--accent); flex: none; margin-top: 1px; }
.checklist strong { color: var(--text); font-weight: 650; }

/* ---------- Nosotros ---------- */

.about {
  background:
    linear-gradient(180deg, var(--brand) 0%, #141050 100%);
}
.about .eyebrow { color: #f0c66f; }
.about__title { max-width: 28ch; }

.stats {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.stats > div { padding: 28px 24px 0 0; }
.stats > div + div { padding-left: 32px; border-left: 1px solid rgb(255 255 255 / 0.16); }
.stats dt {
  font-size: 0.9rem;
  color: #c9c8ef;
}
.stats dd {
  margin: 6px 0 0;
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  line-height: 1;
  font-weight: 750;
  font-variation-settings: "wdth" 115;
  letter-spacing: -0.02em;
}
.stats dd span {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #c9c8ef;
  margin-left: 4px;
}

.about__grid {
  margin-top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.method {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.method li { padding-left: 24px; border-left: 2px solid rgb(255 255 255 / 0.18); }
.method h3 { font-size: 1.2rem; font-weight: 700; }
.method p { margin-top: 6px; color: #c9c8ef; max-width: 52ch; }

.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
}
.quote figcaption span { color: #c9c8ef; }

/* ---------- Trabaje con nosotros ---------- */

.jobs { background: var(--surface); }

/* Página propia de empleo */
.jobs--page {
  padding-top: calc(var(--nav-h) + 40px);
  min-height: calc(100dvh - 120px);
}
.jobs__title { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); }
.back-link { min-height: 42px; padding: 0 16px; margin-bottom: 40px; }
.back-link i { transition: transform 0.2s var(--ease); }
@media (hover: hover) {
  .back-link:hover i { transform: translateX(-3px); }
}
.nav__links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); padding-block: 6px; }

.jobs__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 80px;
  align-items: end;
}
.jobs__intro .section__title { grid-column: 1; }
.jobs__intro .section__lead { grid-column: 1; }
.jobs__points {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.jobs__points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.jobs__points i { font-size: 1.4rem; color: var(--accent); }

.jobs__form { margin-top: 48px; background: var(--bg); }
.form__row.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Selector de archivo con el mismo aspecto que los campos */
.field { position: relative; }
.field .file__input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.file i { font-size: 1.2rem; color: var(--accent); flex: none; }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.has-file { color: var(--text); border-style: solid; }
.file:hover { border-color: rgb(255 255 255 / 0.4); }
.field:has(.file__input:focus-visible) .file { outline: 2px solid var(--accent); outline-offset: 3px; }
.field.has-error .file { border-color: var(--danger); }

.form__note { font-size: 0.85rem; color: var(--faint); }

/* ---------- Contacto ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; }
.contact__list i { font-size: 1.4rem; color: var(--accent); }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact__list a:hover { border-bottom-color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 22px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px: evita el zoom automático en iOS */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.field ::placeholder { color: var(--faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(232 174 60 / 0.22);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: 0.875rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }

.form__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.form__status { font-size: 0.95rem; color: var(--muted); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--danger); }

/* ---------- Pie ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--faint); font-size: 0.875rem; width: 100%; }

/* ==========================================================================
   Movimiento
   Solo transform y opacity. Todo se desactiva con "reducir movimiento".
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero: texto en secuencia, foto que se descubre de abajo hacia arriba */
  .hero__in {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.8s var(--ease) forwards;
    animation-delay: calc(0.12s + var(--i, 0) * 0.09s);
  }
  /* Entrada del escudo y reflejo de luz cada pocos segundos */
  .hero__badge-inner {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    animation: badgeIn 1.1s var(--ease) 0.25s forwards;
  }
  .hero__badge::before {
    opacity: 0;
    animation: haloIn 1.6s var(--ease) 0.4s forwards;
  }
  .hero__shine { animation: shine 7s ease-in-out 1.6s infinite; }

  /* Revelado al hacer scroll (lo activa main.js) */
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes badgeIn { to { opacity: 1; transform: none; } }
@keyframes haloIn { to { opacity: 1; } }
@keyframes shine {
  0% { background-position: 120% 0; }
  30%, 100% { background-position: -20% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(260px, auto); }
  .tile--recitales { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .tile--estadios { grid-column: 1 / 2; grid-row: span 2; }
  .tile--teatros { grid-column: 2 / 3; grid-row: auto; }
  .tile--integral { grid-column: 2 / 3; grid-row: auto; }
  .tile--wide { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.is-open .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__links a:not(.btn) { padding: 14px 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 20px; min-height: 48px; }

  .section { padding-block: 80px; }

  .hero { min-height: auto; padding-bottom: 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__badge { max-width: 240px; order: -1; }

  .jobs__intro { grid-template-columns: 1fr; }
  .jobs__points { grid-column: 1; grid-row: auto; }
  .form__row.form__row--3 { grid-template-columns: 1fr 1fr; }
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }

  .escort { grid-template-columns: 1fr; }
  .escort__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .escort__copy { padding: 28px 24px 32px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }

  .events__track { grid-auto-columns: 78%; gap: 14px; }
  .events__btn { width: 44px; height: 44px; }

  .hero__actions .btn { flex: 1 1 100%; }

  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 112px; padding: 20px 14px; }
  .client__name { font-size: 0.75rem; letter-spacing: 0.1em; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { padding: 24px; }
  .tile--photo { min-height: 320px; }
  .tile--recitales, .tile--estadios, .tile--teatros, .tile--integral, .tile--wide { grid-column: 1 / -1; grid-row: auto; }
  .tile--estadios { min-height: 420px; }
  .tile--integral { min-height: 320px; }

  .stats > div { padding: 20px 8px 0 0; }
  .stats > div + div { padding-left: 12px; }
  .stats dt { font-size: 0.72rem; }
  .stats dd { font-size: clamp(1.5rem, 1rem + 2.6vw, 2rem); }
  .stats dd span { display: block; margin: 4px 0 0; font-size: 0.8rem; }

  .form { padding: 22px; }
  .form__row, .form__row.form__row--3 { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
}
