/* ==========================================================
   DynaX SpA — Landing Page
   Paleta tomada del logo: azul acero, navy profundo, naranjo.
   ========================================================== */
:root {
  color-scheme: only light;   /* que Android NO repinte los colores de la marca */
  --navy-950: #070f1d;
  --navy-900: #0b1a30;
  --navy-800: #102441;
  --navy-700: #183457;
  --blue-500: #3d6fa8;
  --blue-400: #5b8cc4;
  --orange-500: #e37c1c;
  --orange-600: #c9690f;

  --ink: #0f1c2e;
  --ink-soft: #4a5a70;
  --ink-mute: #7d8a9c;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-tint: #f4f6f9;

  --radius: 12px;
  --container: 1200px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 30px rgba(15, 28, 46, .08);
}

/* El navegador de Samsung NO obedece el "only light" de arriba: con el celular en modo oscuro
   repinta la pagina por su cuenta (el naranjo sale rojo ladrillo). Solo se abstiene cuando la
   pagina trae su propia version oscura. Esta es esa version: los MISMOS colores de siempre.
   Parece que no hace nada, y ese es el punto. No borrar. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
    --navy-950: #070f1d;
    --navy-900: #0b1a30;
    --blue-500: #3d6fa8;
    --orange-500: #e37c1c;
    --orange-600: #c9690f;
    --ink: #0f1c2e;
    --bg: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange-500); margin-bottom: 14px;
}
.eyebrow--light { color: #f2a55c; }
.eyebrow--lines { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow--lines::before, .eyebrow--lines::after { content: ""; width: 26px; height: 1px; background: currentColor; }

.title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; }
.title span { color: var(--orange-500); }
.title--light { color: #fff; }

.section { padding: 110px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy-900); color: #fff; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.section--dark .section__sub { color: rgba(255,255,255,.65); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--orange-500);
}
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }

.display {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 8.5vw, 6.6rem); line-height: .95; letter-spacing: .005em; color: #fff;
}
.display span { display: block; color: var(--orange-500); }
.display--sm { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.display--sm span { display: inline; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 6px; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--orange-500); color: #fff; }
.btn--accent:hover { background: var(--orange-600); }
.btn--outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 20px; font-size: .8rem; border-radius: 999px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(7,15,29,.75), rgba(7,15,29,0));
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(7,15,29,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; line-height: 1.05; }
.brand__name em { font-style: normal; color: var(--blue-400); }
.brand__name small { font-size: .68rem; font-weight: 600; opacity: .75; margin-left: 2px; }
/* El eslogan bajo la marca, en el encabezado. Va apilado con el nombre. */
.brand__text { display: flex; flex-direction: column; justify-content: center; }
.brand__tagline {
  display: block; margin-top: 4px;
  font-family: var(--font-head); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) {
  position: relative; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500; padding: 6px 0; transition: color .2s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange-500);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; border-radius: 2px; transition: transform 200ms var(--ease-out); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* El <picture> no debe cambiar el tamaño de la foto que lleva adentro. */
.about__media picture, .service__img picture { display: contents; }

/* ---------- Stats ---------- */
.stats-bar { background: var(--navy-900); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats div { padding: 40px 28px; }
.stats div + div { border-left: 1px solid rgba(255,255,255,.1); }
.stats dt { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: #fff; }
.stats dt::after { content: ""; display: block; width: 28px; height: 3px; background: var(--orange-500); margin-top: 14px; }
.stats dd { margin: 12px 0 0; font-size: .88rem; color: rgba(255,255,255,.62); max-width: 22ch; line-height: 1.45; }

/* ---------- Empresa ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--orange-500); border-radius: var(--radius); z-index: -1;
}
.about__badge {
  position: absolute; left: -28px; bottom: 40px; background: var(--navy-900); color: #fff; padding: 22px 28px; border-radius: 10px; box-shadow: var(--shadow);
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; line-height: 1; }
.about__badge span { font-size: .82rem; color: rgba(255,255,255,.7); }
.lead { margin-top: 20px; color: var(--ink-soft); font-size: 1.06rem; }
.lead strong { color: var(--ink); font-weight: 600; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 30px; font-weight: 500; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--orange-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-bottom: 3px solid transparent; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,28,46,.14); border-color: var(--orange-500); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service__body { padding: 26px 28px 30px; }
.service__num { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--orange-500); letter-spacing: .05em; }
.service h3 { margin-top: 6px; font-size: 1.18rem; }
.service p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Cómo trabajamos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps li { position: relative; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.steps__num {
  display: block; font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-500); opacity: .55; margin-bottom: 18px;
}
.steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--orange-500), transparent); }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: .96rem; }
.steps strong { color: var(--ink); }

/* ---------- Sistemas ---------- */
.systems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.systems li {
  background: var(--navy-900); padding: 30px 20px; text-align: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  transition: background .25s;
}
.systems li:hover { background: var(--navy-800); }
.systems small { display: block; margin-top: 6px; font-family: var(--font-body); font-size: .76rem; font-weight: 500; text-transform: none; letter-spacing: .02em; color: rgba(255,255,255,.55); }

/* ---------- Seguridad ---------- */
.tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tag { --c: #2e9d5b; background: #fff; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.tag--yellow { --c: #e0a800; }
.tag--red { --c: #d9463b; }
.tag::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.tag__card {
  display: block; width: 34px; height: 46px; border-radius: 5px; background: var(--c); margin-bottom: 26px; position: relative;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 30%, transparent);
}
.tag__card::before { content: ""; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; }
.tag__status { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 78%, #000); margin: 6px 0 12px; }
.tag p:last-child { color: var(--ink-soft); font-size: .95rem; }

.checklist { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 56px; padding: 44px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist__head h3 { font-size: 1.35rem; }
.checklist__head p { margin-top: 12px; color: var(--ink-soft); font-size: .96rem; }
.checklist__items { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; counter-reset: chk; }
.checklist__items li { counter-increment: chk; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.checklist__items li::before {
  content: counter(chk, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; color: var(--orange-500); padding-top: 1px;
}
.checklist__items b { font-weight: 600; font-size: .98rem; }
.checklist__items span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Experiencia ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius); color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  transition: transform .3s;
}
.project::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project:hover { transform: translateY(-4px); }
.project > * { position: relative; }
.project__tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--orange-500); padding: 4px 10px; border-radius: 4px;
}
.project h3 { margin-top: 44px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.project__client { margin-top: 6px; font-size: .9rem; color: rgba(255,255,255,.75); }
.project__sys { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: var(--blue-400); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.motto { margin: 72px 0 0; padding: 48px 24px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.motto::before {
  content: "\201C"; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; display: grid; place-items: center; background: var(--bg);
  font-family: Georgia, serif; font-size: 5rem; line-height: 1; padding-top: 24px; color: var(--orange-500);
}
.motto p {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.05; color: var(--navy-900);
}
.motto p b { font-weight: inherit; white-space: nowrap; }
.motto p span { color: var(--orange-500); white-space: nowrap; }
.motto footer { margin-top: 16px; color: var(--ink-soft); font-size: 1rem; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 64px; }
.why__item { position: relative; padding-left: 20px; }
.why__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 24px; background: var(--orange-500); border-radius: 2px; }
.why__item p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; color: #fff; padding: 96px 0;
  background:
    linear-gradient(90deg, rgba(7,15,29,.95) 0%, rgba(11,26,48,.82) 60%, rgba(11,26,48,.6) 100%),
    url("assets/fotos/cta.jpg") center / cover;
}
/* La misma foto en AVIF (va después de la regla de arriba para poder reemplazarla).
   OJO: los AVIF tienen que medir un número PAR de píxeles de alto; uno de 901 px no se dibujaba y la franja quedaba
   gris (10-10-2026, lo vio Daniel). */
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .cta-band { background-image: linear-gradient(90deg, rgba(7,15,29,.95) 0%, rgba(11,26,48,.82) 60%, rgba(11,26,48,.6) 100%),
    image-set(url("assets/fotos/cta.avif") type("image/avif"), url("assets/fotos/cta.jpg") type("image/jpeg")); }
}

.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .display { margin-top: 16px; }
.cta-band p:not(.kicker):not(.cta-band__punch) { margin-top: 16px; color: rgba(255,255,255,.75); max-width: 50ch; }
.cta-band__inner > div:first-child { max-width: 640px; }
.cta-band .cta-band__punch {
  margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--orange-500);
  font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; color: #fff; max-width: none;
}
.cta-band__punch strong { color: var(--orange-500); font-weight: 600; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__list { margin-top: 40px; display: grid; gap: 26px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 3px solid var(--orange-500); }
.contact__list small { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 4px; }
.contact__list a { font-weight: 500; color: var(--ink); width: fit-content; transition: color .2s; }
.contact__list a:hover { color: var(--blue-500); }
.contact__list span { color: var(--ink); }
.contact__list a[href^="tel"] { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em; }

.form { background: var(--bg-tint); border-radius: var(--radius); padding: 40px; display: grid; gap: 18px; border-top: 4px solid var(--orange-500); }
.form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.form label { display: grid; align-content: start; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--ink-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(61,111,168,.15); }
.form input.is-invalid, .form select.is-invalid { border-color: #d9463b; box-shadow: 0 0 0 3px rgba(217,70,59,.12); }
.form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form__head h3 { margin: 0; }
.form__badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-700); background: #fff; border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px;
}
.form__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); }
.form__intro { font-size: .88rem; color: var(--ink-soft); margin-top: -6px; }
.form__error { display: block; min-height: 0; font-size: .78rem; font-weight: 500; color: #c23b30; }
.form__error:empty { display: none; }
.form__hint { display: block; font-size: .78rem; color: var(--ink-soft); }
.form__hint:empty { display: none; }
.form__error--check { margin-top: -10px; }
.form label.form__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .86rem; cursor: pointer; }
.form__check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--orange-500); padding: 0; }
.form__note { font-size: .8rem; color: var(--ink-mute); text-align: center; }
.form__estado { font-size: .92rem; font-weight: 500; text-align: center; padding: 12px 14px; border-radius: 8px; }
.form__estado:empty { display: none; }
.form__estado.is-ok { color: #1c7a47; background: #e8f6ee; border: 1px solid #bfe3ce; }
.form__estado.is-error { color: #a8342a; background: #fdecea; border: 1px solid #f3c5c0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.65); padding: 80px 0 92px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand { display: flex; align-items: center; gap: 14px; color: #fff; margin-bottom: 20px; }
.brand__name--lg { display: block; font-size: 1.7rem; line-height: 1; }
.footer__tagline { display: block; margin-top: 7px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer__col--brand p { max-width: 36ch; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--orange-500); }
.footer p { line-height: 1.75; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: rgba(255,255,255,.4); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .2s;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects, .why { grid-template-columns: repeat(2, 1fr); }
  .systems { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about, .contact, .checklist { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 520px; }
  .tags, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: 8px 24px 24px; border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 18px; }
  .nav.menu-open { background: var(--navy-950); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .kicker { letter-spacing: .18em; font-size: .74rem; }
  .stats div { padding: 28px 12px 28px 0; }
  .stats div:nth-child(even) { padding-left: 16px; }
  .services, .projects, .why, .checks, .checklist__items, .footer__grid { grid-template-columns: 1fr; }
  .systems { grid-template-columns: repeat(2, 1fr); }
  .systems li { font-size: 1.15rem; padding: 24px 12px; }
  .about__media::before { inset: 14px -10px -14px 14px; }
  .about__badge { left: 12px; bottom: 20px; padding: 16px 20px; }
  .checklist, .form, .tag { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .cta-band { padding: 72px 0; }
  .cta-band__actions .btn { flex: 1 1 auto; }
}

/* Entre 861 y 1080 px el menu completo y el eslogan no caben juntos: se esconde el eslogan. */
@media (min-width: 861px) and (max-width: 1080px) {
  .brand__tagline { display: none; }
}
/* En celulares chicos se achica para que no empuje el boton del menu. */
@media (max-width: 420px) {
  .brand__tagline { font-size: .56rem; letter-spacing: .08em; }
}

/* Enlace a la privacidad en el pie y bajo el formulario */
.footer__bottom a, .form__note a { color: inherit; text-decoration: underline; }


/* ==== Rediseño 19-10-2026 (antes mejoras.css), fundido con el sitio el 20-10-2026 con el sí de Daniel ==== */

/* ==========================================================
   DynaX SpA — MEJORAS sobre el diseño de siempre (19-10-2026)
   Se carga DESPUÉS de styles.css. Mantiene la foto grande, el orden,
   los textos, los colores de la marca y los títulos en dos colores.
   Quita lo que hace ver el sitio "de plantilla" y sube el nivel.
   ========================================================== */
:root {
  --ink-soft: #3b4a5f;          /* texto secundario más oscuro: se lee mejor */
  --font-head: var(--font-display);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 4px;                 /* esquinas casi rectas, más industrial */
}
html { -webkit-tap-highlight-color: transparent; }
body { font-size: 17.5px; line-height: 1.6; }
@media (max-width: 640px) { body { font-size: 17px; } }

/* ---------- 1. Fuera las etiquetitas y los números decorativos ---------- */
.eyebrow, .kicker, .service__num, .steps__num, .form__badge { display: none; }

/* ---------- 2. Títulos: más grandes y con la letra de la marca ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0; }
.title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem); line-height: 1; letter-spacing: 0;
}
h3 { font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.section { padding: 140px 0; }
.section__head { max-width: 880px; margin-bottom: 64px; }
.section__sub { font-size: 1.15rem; margin-top: 22px; max-width: 60ch; }
.section__head--center .section__sub { margin-inline: auto; }
@media (max-width: 640px) { .section { padding: 88px 0; } }

/* ---------- 3. Botones: rectos, firmes y legibles ---------- */
.btn { border-radius: 2px; font-size: 1rem; letter-spacing: .05em; padding: 17px 30px; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.btn:hover { transform: none; }
.btn:active { transform: scale(.97); }
/* Texto azul marino sobre el naranjo: el blanco no pasaba la prueba de lectura (2,9 de 4,5). */
.btn--accent { color: var(--navy-950); }
.btn--sm { border-radius: 2px; padding: 11px 22px; font-size: .9rem; }
.btn--outline { border-width: 2px; border-color: rgba(255,255,255,.8); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: #f08a2a; }
  .btn--outline:hover { background: #fff; color: var(--navy-950); border-color: #fff; }
}

/* ---------- 4. Barra de arriba: limpia, sin vidrio ---------- */
.nav { background: transparent; }
.nav.is-scrolled { background: var(--navy-950); backdrop-filter: none; box-shadow: none; }
.brand__tagline { text-shadow: none; font-size: .72rem; }
.nav__links a:not(.btn) { font-size: 1rem; }

/* ---------- 5. Portada: más grande y con más presencia ---------- */
.display { font-size: clamp(3.4rem, 10vw, 9rem); line-height: .9; }

/* ---------- 6. Cifras: grandes, sin líneas divisorias ---------- */
.stats-bar { border-top: 0; }
.stats div { padding: 56px 28px 52px; }
.stats div + div { border-left: 0; }
.stats dt { font-size: clamp(3rem, 5.6vw, 5rem); font-weight: 700; }
.stats dt::after { width: 40px; height: 4px; margin-top: 18px; }
.stats dd { font-size: 1rem; color: rgba(255,255,255,.78); }
@media (max-width: 900px) { .stats div:nth-child(n+3) { border-top: 0; } }

/* ---------- 7. Empresa: sin marco de adorno ni sombras ---------- */
.about__media::before { display: none; }
.about__media img { border-radius: var(--radius); }
.about__badge { box-shadow: none; border-radius: 0; left: 0; bottom: 0; padding: 26px 32px; background: var(--orange-500); color: var(--navy-950); }
.about__badge span { color: var(--navy-950); font-size: .95rem; }
.lead { font-size: 1.15rem; }
.checks { border-top: 0; padding-top: 8px; }
.checks li { font-size: 1.02rem; }

/* ---------- 8. Servicios: foto grande, sin sombras ni tarjetas flotando ---------- */
.services { gap: 48px 32px; }
.service { box-shadow: none; border-radius: 0; background: transparent; border-bottom: 0; }
.service:hover { transform: none; box-shadow: none; }
.service__img { border-radius: var(--radius); aspect-ratio: 4 / 3.2; }
.service__img img { transition: transform .8s var(--ease-out); }
.service__body { padding: 22px 0 0; }
.service h3 { margin-top: 0; font-size: 1.5rem; }
.service p { font-size: 1.02rem; }
@media (hover: hover) and (pointer: fine) { .service:hover .service__img img { transform: scale(1.04); } }
.section--tint .service { background: transparent; }

/* ---------- 9. Cómo trabajamos: el orden lo da la posición ---------- */
.steps { gap: 0; }
.steps li { border: 0; border-radius: 0; background: var(--bg-tint); padding: 44px 36px 48px; }
.steps li:nth-child(2) { background: #e9edf2; }
.steps li:nth-child(3) { background: var(--navy-900); color: #fff; }
.steps li:nth-child(3) p, .steps li:nth-child(3) strong { color: #fff; }
.steps li::after { display: none; }
.steps h3 { font-size: 1.6rem; }
.steps p { font-size: 1.02rem; }

/* ---------- 10. Sistemas: nombres grandes, sin grilla de líneas ---------- */
.systems { gap: 6px; background: transparent; border: 0; border-radius: 0; }
.systems li { background: var(--navy-800); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; padding: 34px 18px; }
.systems small { font-size: .9rem; color: rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine) { .systems li:hover { background: var(--blue-500); } }

/* ---------- 11. Seguridad: las tarjetas parecen tarjetas de verdad ---------- */
.tag { box-shadow: none; border-radius: 0; padding: 0 0 36px; background: #fff; }
.tag::after { display: none; }
.tag__card {
  width: 100%; height: auto; margin: 0 0 28px; border-radius: 0; box-shadow: none; padding: 46px 32px 28px;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; color: #fff;
}
.tag__card::before { top: 16px; width: 14px; height: 14px; margin-left: -7px; background: var(--bg-tint); }
.tag--yellow .tag__card { color: var(--navy-950); }
.tag h3, .tag p { padding: 0 32px; }
.tag h3 { display: none; }
.tag__status { font-size: 1rem; letter-spacing: .04em; color: var(--ink); font-weight: 700; margin: 0 0 10px; }
.tag { --c: #16733d; }
.tag--yellow { --c: #f2c230; }
.tag--red { --c: #c0352a; }
.checklist { box-shadow: none; border-radius: 0; padding: 56px; }
.checklist__items li { counter-increment: none; grid-template-columns: 28px 1fr; }
.checklist__items li::before {
  content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: #16733d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist__items b { font-size: 1.08rem; }
.checklist__items span { font-size: 1rem; }
.checklist__head h3 { font-size: 1.7rem; }
@media (max-width: 640px) { .checklist { padding: 32px 20px; } .tag__card { padding: 40px 20px 22px; } .tag h3, .tag p { padding: 0 20px; } }

/* ---------- 12. Experiencia: placas planas, sin cuadriculado ni degradado ---------- */
.projects { gap: 6px; }
.project { background: var(--navy-900); border-radius: 0; padding: 34px 30px 32px; }
.project:nth-child(even) { background: var(--navy-800); }
.project::before { display: none; }
.project:hover { transform: none; }
.project__tag { border-radius: 0; color: var(--navy-950); font-size: .82rem; letter-spacing: .06em; }
.project h3 { margin-top: 56px; font-size: 1.9rem; font-weight: 700; }
.project__client { font-size: 1rem; color: rgba(255,255,255,.82); }
.project__sys { border-top: 0; padding-top: 0; font-size: .9rem; color: #8fb4e0; }

.motto { border: 0; padding: 96px 0 24px; text-align: left; }
.motto::before { display: none; }
.motto p { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: .95; }
.motto p b, .motto p span { white-space: normal; }
.motto footer { font-size: 1.15rem; }
.why { gap: 40px; margin-top: 72px; }
.why__item { padding-left: 0; }
.why__item::before { position: static; display: block; width: 40px; height: 4px; margin-bottom: 18px; border-radius: 0; }
.why__item p { font-size: 1.02rem; }

/* ---------- 13. Franja final y contacto ---------- */
.cta-band { padding: 140px 0; }
.cta-band .cta-band__punch { border-left-width: 4px; font-family: var(--font-body); font-size: clamp(1.25rem, 2vw, 1.55rem); }
.cta-band p:not(.kicker):not(.cta-band__punch) { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.contact__list small { font-size: .85rem; color: var(--ink-soft); }
.contact__list a[href^="tel"] { font-size: 1.7rem; }
.contact__list li { border-left-width: 4px; }

/* Formulario: campos grandes (en iPhone, con menos de 16 px la pantalla se acerca sola) */
.form { border-radius: 0; border-top-width: 6px; padding: 48px; gap: 20px; }
.form h3 { font-size: 1.8rem; }
.form label { font-size: .95rem; color: var(--ink); }
.form input, .form select, .form textarea { font-size: 16px; border-radius: 2px; border: 2px solid #d5dce5; padding: 14px 16px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy-900); box-shadow: none; }
.form input.is-invalid, .form select.is-invalid { border-color: #c0352a; box-shadow: none; }
.form__intro, .form__error, .form__hint, .form__note { font-size: .9rem; }
.form__note { color: var(--ink-soft); }
.form__estado.is-ok, .form__estado.is-error { border: 0; border-radius: 0; }
@media (max-width: 640px) { .form { padding: 32px 20px; } }

/* ---------- 14. Pie: el nombre de la empresa cierra la página ---------- */
.footer { font-size: 1rem; color: rgba(255,255,255,.75); }
.footer h4 { font-size: 1.05rem; }
.footer__bottom { border-top: 0; font-size: .9rem; color: rgba(255,255,255,.6); }
.footer__firma {
  display: block; margin: 0 0 64px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(5rem, 21vw, 19rem); line-height: .8; color: #fff; letter-spacing: -.01em;
}
.footer__firma span { color: var(--orange-500); }
.wa-float { box-shadow: none; }
.wa-float:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.05); } }

/* ---------- 15. Movimiento sobrio ---------- */
.reveal { transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal:nth-child(2) { transition-delay: 70ms; }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 210ms; }
.reveal:nth-child(5) { transition-delay: 280ms; }
.reveal:nth-child(6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* La franja de "¿Tiene un proyecto en mente?" mantiene su tamaño propio */
.display.display--sm { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
/* En la columna de "Quiénes somos" el título va un poco más chico para no pasar de 3 líneas */
.about .title { font-size: clamp(2.1rem, 3.4vw, 3.3rem); }

/* ---------- 16. Animación: línea de avance ---------- */
.avance {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--orange-500);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* ---------- 18. Franja de sistemas que corre ---------- */
.cinta { overflow: hidden; margin: 0 -24px 48px; }
.cinta__pista { display: flex; width: max-content; }
.cinta__pista span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: 1.1; padding-right: .7em; white-space: nowrap;
}
.cinta__pista span:nth-child(odd) { color: var(--orange-500); }
@media (prefers-reduced-motion: no-preference) {
  .cinta__pista { animation: cinta 48s linear infinite; }
  .cinta:hover .cinta__pista { animation-play-state: paused; }
  @keyframes cinta { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .cinta { display: none; } }

/* ---------- 19. Fotos que se descubren con un barrido ---------- */
@media (prefers-reduced-motion: no-preference) {
  .barrido { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .175, 1); }
  .barrido.barrido--listo { clip-path: inset(0 0 0 0); }
}
@media (max-width: 640px) { .cinta { margin: 0 -16px 36px; } }

/* ---------- 20. Ajustes después de la primera medición ---------- */
/* El naranjo de los títulos sobre fondo claro, un tono más profundo para que se lea (sobre fondo oscuro queda igual) */
.title span { color: var(--orange-600); }
.title--light span, .section--dark .title span { color: var(--orange-500); }
/* En las faenas, la etiqueta va debajo del nombre y en letra normal */
.project { display: flex; flex-direction: column; }
.project h3 { order: 1; margin-top: 0; }
.project__client { order: 2; }
.project__sys { order: 3; }
.project__tag { order: 4; align-self: flex-start; margin-top: 22px; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; padding: 6px 12px; }
/* Menú del celular sin líneas finas */
@media (max-width: 860px) {
  .nav__links { border-top: 0; }
  .nav__links a:not(.btn) { border-bottom: 0; font-size: 1.15rem; padding: 12px 0; }
}
/* La franja final: más ancho para que el título quepa en dos líneas */
.cta-band__inner > div:first-child { max-width: 900px; }
/* Textos chicos: nada bajo 13 px */
.contact__list small, .footer__tagline, .brand__tagline { font-size: .8rem; }
.contact__list small { text-transform: none; letter-spacing: 0; font-size: .95rem; }
/* La franja de sistemas corre de borde a borde de la pantalla */
html { overflow-x: clip; }
.cinta, .cinta[class] { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
/* El nombre de cada tarjeta va escrito dentro de su franja de color */
.tag { position: relative; }
.tag__card { padding: 0; height: 104px; }
.tag h3 { display: block; position: absolute; top: 46px; left: 0; right: 0; padding: 0 32px; margin: 0; font-size: 1.9rem; font-weight: 700; color: #fff; }
.tag--yellow h3 { color: var(--navy-950); }
@media (max-width: 640px) { .tag h3 { padding: 0 20px; font-size: 1.6rem; } }

/* ==========================================================
   RONDA 2 (19-10-2026): de "bien hecha" a "de excelencia"
   ========================================================== */

/* 1. Encabezados de sección tipo revista: título a la izquierda, bajada a la derecha */
.section__head, .section__head--center {
  display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px 56px; align-items: end;
  max-width: none; margin-left: 0; margin-right: 0; text-align: left; margin-bottom: 72px;
}
.section__head .section__sub, .section__head--center .section__sub { margin: 0; max-width: 46ch; padding-bottom: 8px; }
.section__head > .title:only-of-type:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .section__head, .section__head--center { grid-template-columns: 1fr; margin-bottom: 48px; }
  .section__head .section__sub { padding-bottom: 0; }
}

/* 2. Servicios escalonados: la columna del medio baja, se lee como galería */
.services { align-items: start; }
@media (min-width: 1041px) {
  .services .service:nth-child(3n+2) { margin-top: 88px; }
  .services { margin-bottom: -88px; }
  #servicios { padding-bottom: 228px; }
}
@media (min-width: 641px) and (max-width: 1040px) {
  .services .service:nth-child(even) { margin-top: 72px; }
}
.service h3 { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .service:hover h3 { color: var(--orange-600); } }

/* 3. Experiencia: la etiqueta es un dato, no un botón */
.project__tag { background: none; color: var(--orange-500); padding: 0; font-size: 1rem; font-weight: 600; }

/* 4. Cómo trabajamos: barra de avance de obra que se llena al llegar */
.steps { position: relative; padding-top: 10px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; }
.steps::before { background: #e3e8ef; }
.steps::after { background: var(--orange-500); transform-origin: 0 50%; transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .mx .steps::after { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.77, 0, .175, 1) .2s; }
  .mx .steps.lleno::after { transform: scaleX(1); }
}

/* ARREGLO 19-10: el barrido con clip-path dejaba las fotos tapadas para siempre (el aviso de "está en
   pantalla" no llega a un elemento recortado entero). Ahora es una cortina encima que se retira. */
.barrido { clip-path: none !important; position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .barrido::after {
    content: ""; position: absolute; inset: 0; z-index: 3; background: var(--navy-950); pointer-events: none;
    transform-origin: 50% 0; transform: scaleY(1); transition: transform 1.1s cubic-bezier(.77, 0, .175, 1);
  }
  .barrido.barrido--listo::after { transform: scaleY(0); }
}

/* Pantallas muy angostas (celulares chicos y paneles laterales): nada se sale por el lado */
@media (max-width: 380px) {
  .brand__tagline { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats div, .stats div:nth-child(even) { padding: 26px 0; }
  .systems { grid-template-columns: 1fr; }
  .display { font-size: 2.9rem; }
  .title, .about .title { font-size: 1.9rem; }
  .footer__firma { font-size: 4.4rem; }
  .contact__list a, .contact__list span, .contact__list dd, .footer a { overflow-wrap: anywhere; }
  .container { padding: 0 14px; }
}

/* ==========================================================
   RONDA 3 (19-10-2026): lo que se perdía en blanco + toques futuristas
   ========================================================== */
/* El pie vuelve a ser el original (sin el DynaX gigante) */
.footer__firma { display: none; }

/* --- Remarcar lo que se perdía en el fondo blanco --- */
:root { --bg-tint: #e6ecf2; --ink-mute: #56657a; --line: #c9d3de; }
.section--tint { background: var(--bg-tint); }
.tag, .checklist { background: #fff; outline: 2px solid #d3dce6; outline-offset: -2px; }
.steps li:nth-child(1) { background: #dbe3ec; }
.steps li:nth-child(2) { background: var(--blue-500); color: #fff; }
.steps li:nth-child(2) p { color: #fff; }
.steps::before { background: #d3dce6; }
.form { background: #e6ecf2; }
.form input, .form select, .form textarea { border-color: #aebbc9; }
.form label { font-weight: 600; }
.lead, .section__sub, .service p, .checklist__items span, .why__item p, .tag p:last-child, .steps p { color: #2f3d50; }
.checks li::before { width: 22px; height: 22px; background-size: 12px; }
.contact__list a { color: var(--navy-900); }
.service h3, .checklist__items b, .why__item h3 { color: var(--navy-950); }
.motto footer { color: #2f3d50; }

/* --- Futurista 1: los títulos se revelan de abajo hacia arriba --- */
@media (prefers-reduced-motion: no-preference) {
  .mx .section__head.reveal .title { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.77, 0, .175, 1) .1s; }
  .mx .section__head.reveal.is-visible .title { clip-path: inset(0 0 0 0); }
}

/* --- Futurista 2: luz naranja que sigue al mouse en las placas oscuras --- */
@media (hover: hover) and (pointer: fine) {
  .project, .systems li, .stats div { position: relative; isolation: isolate; }
  .project::after, .systems li::after, .stats div::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(360px circle at var(--lx, 50%) var(--ly, 50%), rgba(227, 124, 28, .38), transparent 70%);
    transition: opacity 250ms ease;
  }
  .project:hover::after, .systems li:hover::after, .stats div:hover::after { opacity: 1; }
  .systems li:hover { background: var(--navy-800); }
}

/* --- Futurista 3: las fotos de servicios se inclinan apenas con el mouse --- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service__img { transition: transform 300ms var(--ease-out); transform-style: preserve-3d; }
}

/* ===== Ronda 4: andamio 3D en "Qué revisamos antes de liberar" ===== */
.checklist.con-visor {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.45fr);
  grid-template-areas: "head visor" "items visor";
  grid-template-rows: auto 1fr;
  gap: 28px 48px; background: var(--navy-950); outline: none; color: #fff;
}
.con-visor .checklist__head { grid-area: head; }
.con-visor .checklist__head h3 { color: #fff; }
.con-visor .checklist__head p { color: #b4c2d4; }
.con-visor .checklist__items { grid-area: items; grid-template-columns: 1fr; gap: 4px; align-content: start; }
.con-visor .checklist__items li {
  padding: 12px 14px; border-left: 2px solid rgba(255,255,255,.12); cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.con-visor .checklist__items b { color: #fff; }
.con-visor .checklist__items span { color: #a9b8cb; }
.con-visor .checklist__items li::before {
  background: transparent; border: 2px solid rgba(255,255,255,.28); box-sizing: border-box;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.con-visor .checklist__items li { position: relative; }
.con-visor .checklist__items li.en-revision { background: rgba(227,124,28,.13); border-left-color: rgba(227,124,28,.3); }
.con-visor .checklist__items li.en-revision::after {
  content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: var(--orange-500);
  transform-origin: 50% 0; transform: scaleY(var(--av, 0));
}
.con-visor .checklist__items li.en-revision::before { border-color: var(--orange-500); background: rgba(227,124,28,.25); }
.con-visor .checklist__items li.revisado::before {
  border: 0;
  background: #16733d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.con-visor .checklist__items li:focus-visible { outline: 2px solid var(--orange-500); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .con-visor .checklist__items li:hover { background: rgba(255,255,255,.06); border-left-color: var(--orange-500); }
}

.visor3d {
  grid-area: visor; position: sticky; top: 76px; align-self: start; height: clamp(560px, calc(100svh - 76px), 800px);
  margin: -56px -56px -56px 0; overflow: hidden;
  background: var(--navy-950); user-select: none; -webkit-user-select: none;
}
.visor3d__lienzo, .visor3d__lineas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.visor3d__lienzo { touch-action: pan-y; cursor: grab; }
.visor3d.agarrando .visor3d__lienzo { cursor: grabbing; }
.visor3d__lineas, .visor3d__etiquetas { pointer-events: none; }
.visor3d__etiquetas { position: absolute; inset: 0; }
.visor3d__etiqueta {
  position: absolute; left: 0; top: 0; padding: 6px 10px; white-space: nowrap;
  font: 600 13px/1.2 var(--font-body); letter-spacing: .01em; color: #fff;
  background: rgba(7,15,29,.86); border: 1px solid rgba(240,138,42,.75);
  opacity: 0; will-change: transform, opacity;
}
.visor3d__etiqueta.roja { border-color: #ff5a4a; }
.visor3d__etiqueta.verde { border-color: #3ccf7a; }
.visor3d__barra {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px;
  background: linear-gradient(rgba(7,15,29,0), rgba(7,15,29,.94) 45%);
}
.visor3d__estado { margin: 0; font: 600 15px/1.3 var(--font-body); color: #fff; font-variant-numeric: tabular-nums; }
.visor3d__botones { display: flex; gap: 8px; }
.visor3d__btn {
  min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 0;
  background: transparent; color: #fff; font: 600 14px/1 var(--font-body); cursor: pointer;
  touch-action: manipulation; transition: transform 140ms cubic-bezier(.23,1,.32,1), background-color 160ms ease;
}
.visor3d__btn--armar { background: var(--orange-500); border-color: var(--orange-500); color: var(--navy-950); }
.visor3d__btn:active { transform: scale(.97); }
.visor3d__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .visor3d__btn:hover { background: rgba(255,255,255,.1); }
  .visor3d__btn--armar:hover { background: #f08a2a; }
}
.visor3d__tiempo { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--orange-500); height: 24px; cursor: pointer; }
.visor3d__nota { grid-column: 1 / -1; margin: 0; font: 400 12px/1.45 var(--font-body); color: #93a3b8; text-wrap: pretty; }

@media (max-width: 1040px) {
  .checklist.con-visor { grid-template-columns: 1fr; grid-template-areas: "head" "visor" "items"; grid-template-rows: auto; gap: 28px; }
  .visor3d { position: relative; top: auto; margin: 0 -56px; height: clamp(460px, 70svh, 620px); }
  .con-visor .checklist__items { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .visor3d { margin: 0 -20px; height: clamp(420px, 78svh, 560px); }
  .con-visor .checklist__items { grid-template-columns: 1fr; }
  .visor3d__barra { padding: 36px 14px 14px; grid-template-columns: 1fr; }
  .visor3d__botones .visor3d__btn { flex: 1; }
}
@media (max-width: 380px) { .visor3d { height: 480px; } .visor3d__estado { font-size: 14px; } }

/* ===== Ronda 5: transiciones más modernas en toda la página ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Las secciones entran subiendo y apareciendo (sin desenfoque desde el 20-10: pesaba en los teléfonos) */

  /* Los puntos revisados se marcan con un pequeño salto */
  .con-visor .checklist__items li.revisado::before { animation: marca 300ms cubic-bezier(.23, 1, .32, 1); }
}
@keyframes marca { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* Botones: el color se llena de izquierda a derecha al pasar el mouse */
@media (hover: hover) and (pointer: fine) {
  .btn--accent, .btn--accent:hover {
    background: var(--orange-500) linear-gradient(#f5a352, #f5a352) no-repeat 0 0 / 0% 100%;
    transition: background-size 250ms cubic-bezier(.23, 1, .32, 1), transform 160ms var(--ease-out);
  }
  .btn--accent:hover { background-size: 100% 100%; }
  .btn--outline, .btn--outline:hover {
    background: transparent linear-gradient(#fff, #fff) no-repeat 0 0 / 0% 100%;
    transition: background-size 250ms cubic-bezier(.23, 1, .32, 1), color 250ms ease, border-color 250ms ease, transform 160ms var(--ease-out);
  }
  .btn--outline:hover { background-size: 100% 100%; color: var(--navy-950); }
  .visor3d__btn--armar { background: var(--orange-500) linear-gradient(#f5a352, #f5a352) no-repeat 0 0 / 0% 100%; transition: background-size 250ms cubic-bezier(.23, 1, .32, 1), transform 140ms cubic-bezier(.23, 1, .32, 1); }
  .visor3d__btn--armar:hover { background-size: 100% 100%; }
}

/* ===== Andamio 3D v2: selector de montaje (fachada, ménsulas, volado, colgado) ===== */
.visor3d__modos {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.visor3d__modo {
  min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 0;
  background: rgba(7,15,29,.72); color: #c9d4e2; font: 600 13px/1 var(--font-body); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 140ms cubic-bezier(.23,1,.32,1), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.visor3d__modo[aria-pressed="true"] { background: var(--orange-500); border-color: var(--orange-500); color: var(--navy-950); }
.visor3d__modo:active { transform: scale(.97); }
.visor3d__modo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .visor3d__modo[aria-pressed="false"]:hover { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 640px) {
  .visor3d__modos { top: 12px; left: 12px; right: 12px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .visor3d__modo { min-height: 40px; padding: 0 6px; line-height: 1.15; }
  .visor3d__modo:last-child { grid-column: span 2; }
}

/* Las tarjetas de seguridad son las mismas que se cuelgan en el andamio (carpeta 06 Prevencion y seguridad):
   el logo arriba, el estado en grande y los campos para llenar */
.tags { align-items: start; }
.tags .tag { background: transparent; outline: 0; padding: 0; overflow: visible; width: 100%; max-width: 400px; justify-self: center; }
.tag__tarjeta { display: block; width: 100%; height: auto; border-radius: 3.4% / 2.6%; box-shadow: 0 16px 30px -14px rgba(11, 26, 48, .45); }
.tags .tag h3.tag__nombre { position: static; display: block; margin: 22px 0 6px; padding: 0; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.tags .tag p { padding: 0; }
@media (max-width: 640px) { .tags .tag h3.tag__nombre { padding: 0; font-size: 1.35rem; } }
