/* ==========================================================
   ALTOS CODE · Estilo claro con los colores del logo
   Azul marino para textos y zonas oscuras, azul para acciones
   y resaltados. Títulos en Gabarito, textos en Onest.
   ========================================================== */
:root {
  --paper: #f8fafc;
  --paper-2: #eef2f7;
  --ink: #12273f;
  --ink-2: #4a5a70;
  --line: #dbe2ec;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #2563eb;
  --on-ink: #eef3fa;
  --on-ink-2: #b6c4d8;
  --ink-line: #2a3f5a;
  --wa-bg: #efe7dc;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-green: #25d366;
  --radius: 16px;
  --font-head: "Gabarito", system-ui, sans-serif;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.22);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: var(--font); font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: #cfe0ff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 14px; }

.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-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s; }
.skip-link:focus { transform: none; }

.lead { color: var(--ink-2); font-size: 1.1rem; margin-top: 16px; max-width: 58ch; }

/* Etiqueta visible para todo lo que es un ejemplo y no un caso real */
.tag-example { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #1e3a8a; background: #dbe7ff; }

/* ============ BOTONES Y ENLACES ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--main { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.22); }
.btn--main:hover { background: var(--brand-dark); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.link .ico { width: 17px; height: 17px; transition: transform 0.2s; }
.link:hover .ico { transform: translateX(3px); }

/* ============ NAVEGACIÓN ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 252, 0.92); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.nav.scrolled { border-color: var(--line); background: rgba(248, 250, 252, 0.97); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 88px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__icon { width: auto; height: 56px; }
.logo__word { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: #12273f; white-space: nowrap; }
.logo__word b { font-weight: 800; color: #2563eb; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { position: relative; padding: 10px 0; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav__links a:not(.btn):hover, .nav__links a.active { color: var(--ink); }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s; }
.nav__links a.active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none !important; }

.nav__toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ INICIO ============ */
.hero { padding: 56px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.hero__sub { margin: 24px 0 32px; font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__local { display: flex; align-items: flex-start; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.98rem; max-width: 56ch; }
.hero__local .ico { margin-top: 3px; color: var(--accent); }
.hero__wa { margin-top: 18px; color: var(--ink-2); font-size: 0.98rem; }
.hero__wa a { color: var(--ink); font-weight: 700; white-space: nowrap; text-underline-offset: 4px; }
.hero__wa a:hover { color: var(--brand); }

/* Teléfono con chat de WhatsApp */
.phone { position: relative; width: min(100%, 360px); margin-inline: auto; padding: 12px; border-radius: 38px; background: #0f1b2b; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.45); transform: rotate(2deg); }
.phone__screen { border-radius: 28px; overflow: hidden; background: var(--wa-bg); }
.phone__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #075e54; color: #fff; }
.phone__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dbe7ff; color: #1e3a8a; font-weight: 700; font-size: 0.9rem; }
.phone__head strong { display: block; font-size: 0.95rem; }
.phone__head small { font-size: 0.78rem; opacity: 0.9; }
.phone__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 22px; min-height: 340px; }
.phone__tag { position: absolute; right: -16px; top: -20px; padding: 8px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.25); transform: rotate(-4deg); }
.phone__tag span { color: var(--accent); }

/* Burbujas estilo WhatsApp (inicio y ejemplos) */
.b { max-width: 84%; padding: 8px 12px 6px; border-radius: 10px; font-size: 0.92rem; line-height: 1.4; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.b small { display: block; margin-top: 2px; text-align: right; font-size: 0.7rem; color: #54656f; }
.b--in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.b--out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.b--out small { color: #3b5f45; }

/* Línea de tiempo del ejemplo */
.timeline { margin-top: 72px; padding: 30px 0 64px; border-top: 1px solid var(--line); }
.timeline__label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 28px; color: var(--ink-2); font-size: 0.98rem; }
.timeline ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline ol::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-right: 24px; }
.timeline li::before { content: ""; display: block; width: 16px; height: 16px; margin-bottom: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline time { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; margin: 6px 0 4px; font-weight: 700; }
.timeline p { color: var(--ink-2); font-size: 0.97rem; }

/* ============ PLATAFORMAS ============ */
.brands { padding: 28px 0; border-block: 1px solid var(--line); }
.brands__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; }
.brands__title { font-family: var(--font); font-size: 0.98rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.brands__list { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; font-size: 1.05rem; }

/* ============ SECCIONES ============ */
.section { padding: 104px 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); text-wrap: balance; }

/* Servicios: lista con líneas, sin tarjetas */
.svc { display: grid; grid-template-columns: 48px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc > .ico { width: 30px; height: 30px; color: var(--brand); stroke-width: 1.6; }
.svc h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.svc p { margin-top: 4px; color: var(--ink-2); max-width: 60ch; }
.svc .link { white-space: nowrap; }

/* Cómo funciona */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.process .lead { margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.step { padding: 24px 0; border-top: 2px solid var(--line); }
.step span { font-size: 0.92rem; font-weight: 600; color: var(--accent); }
.step h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 6px; }
.step p { color: var(--ink-2); }

/* Ejemplos de proyectos */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.project + .project { margin-top: 72px; }
.project--reverse .media { order: 2; }
.project__copy .tag-example { margin-bottom: 14px; }
.project__copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.project__copy > p { color: var(--ink-2); margin-bottom: 20px; }

.media { position: relative; display: grid; place-items: center; padding: 32px; aspect-ratio: 1 / 0.92; border-radius: var(--radius); background: #e1e8f2; overflow: hidden; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Maquetas ilustrativas (se ven mientras no exista la imagen real) */
.mock { width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: var(--wa-bg); box-shadow: var(--shadow); }
.mock__bar { display: flex; align-items: center; gap: 8px; margin: -14px -14px 6px; padding: 12px 14px; border-radius: 20px 20px 0 0; background: #075e54; color: #fff; font-weight: 600; font-size: 0.86rem; }
.mock__bar .ico { width: 16px; height: 16px; }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa-green); }
.mock__card { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 14px; background: #fff; }
.mock__card strong { margin-top: 10px; font-size: 1rem; }
.mock__card small { color: #54656f; }
.mock__photo { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(180deg, #a9c7d9 0%, #d8e6ec 70%); overflow: hidden; }
.mock__photo::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 56%; background: #7c93b8; clip-path: polygon(0 42%, 50% 0, 100% 42%, 100% 100%, 0 100%); }
.mock__play { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(17, 27, 33, 0.8); color: #fff; font-size: 0.76rem; }
.mock__play .ico { width: 14px; height: 14px; }
.mock__cta { align-self: flex-start; margin-top: 10px; padding: 7px 12px; border-radius: 999px; background: var(--wa-green); color: #052e16; font-weight: 700; font-size: 0.82rem; }

.tabs { display: flex; flex-direction: column; margin-bottom: 26px; border-top: 1px solid var(--line); }
.tabs li { border-bottom: 1px solid var(--line); }
.tabs button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: 1.02rem; font-weight: 600; }
.tabs button span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.tabs p { display: none; padding: 0 0 16px 44px; color: var(--ink-2); }
.tabs li.active p { display: block; }
.tabs li.active button span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Industrias */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.industries__list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.industries__list li { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }

/* Escenarios */
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.scenario { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.scenario h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.scenario b { font-weight: 700; }
.scenario__before { color: var(--ink-2); }
.scenario__after { padding-top: 14px; border-top: 1px solid var(--line); }
.carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.carousel__nav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.carousel__nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.carousel__nav button:disabled { opacity: 0.3; cursor: default; }

/* Preguntas frecuentes */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 500; transition: transform 0.3s, background 0.3s, color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); max-width: 62ch; }

/* ============ CONTACTO (franja oscura) ============ */
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h2 em { color: #8fb7ff; }
.section--ink .lead { color: var(--on-ink-2); }
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #2563eb; color: #fff; stroke-width: 3; }
.contact__wa { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 12px 22px 12px 12px; border-radius: 16px; border: 1px solid var(--ink-line); color: var(--on-ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.contact__wa:hover { border-color: var(--wa-green); background: rgba(255, 255, 255, 0.04); }
.contact__wa-ico { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--wa-green); color: #052e16; }
.contact__wa small { display: block; color: var(--on-ink-2); font-size: 0.9rem; }
.contact__wa strong { display: block; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }

.form, .form-done { padding: 30px; border-radius: 20px; background: var(--paper); color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form[hidden], .form-done[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form label { font-size: 0.95rem; font-weight: 600; }
.req, .opt { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); }
.field__hint { font-size: 0.85rem; color: var(--ink-2); }
.field__error { font-size: 0.88rem; font-weight: 500; color: #a1261a; }
.field__error:empty { display: none; }
.field__error::before { content: "⚠ "; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #c5cfdc; border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form input::placeholder, .form textarea::placeholder { color: #5f6b7c; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.form .invalid { border-color: #b3261e; border-width: 2px; }
.form__check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 500 !important; }
.form__check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--brand); }
.form__check input.invalid { outline: 2px solid #b3261e; outline-offset: 2px; }
.form__check a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.form__error { color: #a1261a; font-size: 0.95rem; font-weight: 600; }
.form__error:empty { display: none; }
.form__note { text-align: center; font-size: 0.88rem; color: var(--ink-2); }
.form.highlight { animation: highlight 1.2s ease-out; }
@keyframes highlight { 0% { box-shadow: 0 0 0 0 rgba(143, 183, 255, 0.8); } 100% { box-shadow: 0 0 0 16px rgba(143, 183, 255, 0); } }

.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; outline: none; }
.form-done__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wa-green); color: #052e16; }
.form-done__icon .ico { width: 24px; height: 24px; stroke-width: 2.5; }
.form-done h3 { font-size: 1.3rem; }
.form-done p { color: var(--ink-2); }
.form-done p b { color: var(--ink); }

/* ============ PIE DE PÁGINA ============ */
.footer { padding: 72px 0 32px; background: var(--paper-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 16px; color: var(--ink-2); font-size: 0.95rem; max-width: 34ch; }
.footer__title { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.footer__grid > div > a:not(.logo) { display: flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.footer__grid > div > a:not(.logo):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9rem; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa-green); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35); transition: transform 0.25s, opacity 0.25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }

/* ============ APARICIÓN AL HACER SCROLL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .hero__inner, .process, .industries, .faq-wrap, .contact { grid-template-columns: 1fr; gap: 48px; }
  .phone { transform: none; }
  .phone__tag { right: 0; }
  .timeline ol { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .timeline ol::before { display: none; }
  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
}

/* El menú pasa al botón de tres rayas antes de que se encime con el logo */
@media (max-width: 1040px) {
  .nav__links {
    position: fixed; top: 88px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px; border-radius: 18px;
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a.active { background: var(--paper-2); border-radius: 10px; }
  .nav__cta-mobile { display: inline-flex !important; margin-top: 8px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project--reverse .media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .nav__inner { height: 76px; }
  .nav__links { top: 76px !important; }
  .logo__icon { width: auto; height: 46px; }
  .logo__word { font-size: 1.1rem; }
  .hero { padding-top: 32px; }
  .timeline { margin-top: 56px; }
  .timeline ol { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 36px 1fr; gap: 6px 16px; }
  .svc > .ico { width: 26px; height: 26px; align-self: start; margin-top: 4px; }
  .svc .link { grid-column: 2; justify-self: start; }
  .steps, .industries__list, .form__row { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 88%; }
  .media { padding: 20px; }
  .form, .form-done { padding: 20px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
