/* ==========================================================================
   WhaleIT — estilos
   Paleta tomada del logo: azul marino #0A3467 + negro #161616 sobre blanco.
   ========================================================================== */

:root {
  --navy: #0a3467;
  --navy-800: #082a55;
  --navy-900: #061f42;
  --blue: #2478f0;
  --blue-600: #1a63cf;
  --sky: #8dbbff;
  --ink: #161616;
  --text: #2b3547;
  --muted: #5b6880;
  --line: #e1e8f2;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --white: #ffffff;
  --wa: #25d366;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 52, 103, .06), 0 4px 14px rgba(10, 52, 103, .06);
  --shadow-md: 0 10px 30px rgba(10, 52, 103, .12);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
button { font: inherit; cursor: pointer; }

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

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 44px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Iconos ---------- */
.icon {
  width: 1.35em; height: 1.35em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-800); box-shadow: 0 10px 24px rgba(10, 52, 103, .3); }
.btn--accent { background: var(--blue); color: #fff; }
.btn--accent:hover { background: var(--blue-600); box-shadow: 0 10px 24px rgba(36, 120, 240, .35); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; height: 58px; position: relative; flex: none; }
.brand-logo { height: 100%; width: auto; transition: opacity .2s ease; }
.brand-logo--dark { position: absolute; inset: 0 auto 0 0; opacity: 0; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled .brand-logo--light { opacity: 0; }
.site-header.is-scrolled .brand-logo--dark { opacity: 1; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: rgba(255, 255, 255, .88);
  transition: color .15s ease, background-color .15s ease;
}
.main-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-header.is-scrolled .main-nav ul a { color: var(--text); }
.site-header.is-scrolled .main-nav ul a:hover { color: var(--navy); background: var(--bg-alt); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; position: relative; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .25s ease, opacity .2s ease, background-color .2s ease, top .25s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.site-header.is-scrolled .menu-toggle span, .site-header.menu-open .menu-toggle span { background: var(--navy); }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 72px) 0 150px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(36, 120, 240, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(141, 187, 255, .12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-wave__swoosh { fill: rgba(255, 255, 255, .06); animation: float 12s ease-in-out infinite; transform-origin: center; }
.hero-wave__line { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.5; }
.hero-wave__line:nth-of-type(3) { stroke: rgba(141, 187, 255, .12); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .07);
  font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .92);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 3.75rem); color: #fff; font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.grad { background: linear-gradient(90deg, var(--sky), #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 34rem; font-size: 1.2rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: #4ade80; width: 1.2em; height: 1.2em; stroke-width: 2.2; }

.hero-visual { position: relative; padding: 18px 0 30px 18px; }
.code-card {
  border-radius: var(--radius); background: rgba(6, 22, 48, .82); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4); backdrop-filter: blur(6px); overflow: hidden;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-bar span { margin-left: 10px; font: 500 .8rem/1 "Consolas", "SFMono-Regular", monospace; color: rgba(255, 255, 255, .5); }
.code-card pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 400 .9rem/1.85 "Consolas", "SFMono-Regular", "Menlo", monospace; color: #dbe7fb; }
.code-card .c { color: #6d84a8; font-style: italic; }
.code-card .k { color: #8dbbff; }
.code-card .s { color: #7ee2b0; }
.code-card .f { color: #ffd479; }
.code-card .v { color: #fff; }
.code-card .p { color: #9db3d6; }
.caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; vertical-align: text-bottom; background: var(--sky); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--navy); font: 700 .85rem/1 var(--font-head); box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.chip .icon { color: #16a34a; }
.chip--a { top: -6px; right: 4%; }
.chip--b { bottom: 0; left: 0; animation-delay: -3s; }

.hero-divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--bg); }

/* ---------- Tecnologías ---------- */
.tech { padding: 6px 0 20px; }
.tech-title { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee { margin-top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 42s linear infinite; }
.marquee-track li {
  padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 600 .95rem/1.2 var(--font-head); color: var(--navy); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  color: rgba(255, 255, 255, .85);
  background: radial-gradient(800px 400px at 90% 0%, rgba(36, 120, 240, .28), transparent 60%), linear-gradient(170deg, var(--navy) 0%, var(--navy-900) 100%);
}
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font: 700 .82rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: var(--sky); }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
.section-head { max-width: 46rem; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-sub { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.section--dark .section-sub { color: rgba(255, 255, 255, .72); }

/* ---------- Quiénes somos ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about-grid p:not(.eyebrow) { margin-top: 18px; }
.about-grid h2 + p { margin-top: 22px; }
.checks { margin-top: 28px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .icon {
  margin-top: 3px; width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: rgba(36, 120, 240, .12); color: var(--blue-600); stroke-width: 2.4;
}
.checks strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: 30px 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%); box-shadow: var(--shadow-md);
}
.stat:nth-child(2) { transform: translateY(24px); }
.stat:nth-child(4) { transform: translateY(24px); }
.stat strong { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--font-head); letter-spacing: -0.03em; color: #fff; }
.stat span { display: block; margin-top: 10px; font-size: .95rem; color: rgba(255, 255, 255, .75); }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { padding: 14px 14px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card h3 { margin: 22px 12px 8px; font-size: 1.15rem; }
.team-card p { margin: 0 12px; font-size: .96rem; color: var(--muted); }
.team-art { position: relative; height: 150px; border-radius: 12px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.team-art::before, .team-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.team-art::before { width: 170px; height: 170px; right: -50px; top: -70px; }
.team-art::after { width: 110px; height: 110px; left: -30px; bottom: -50px; }
.team-art .icon { position: relative; z-index: 1; width: 52px; height: 52px; stroke-width: 1.5; }
.team-art--1 { background: linear-gradient(135deg, #0a3467, #1a63cf); }
.team-art--2 { background: linear-gradient(135deg, #1a63cf, #5aa2ff); }
.team-art--3 { background: linear-gradient(135deg, #082a55, #2478f0); }
.team-art--4 { background: linear-gradient(135deg, #161616, #0a3467); }
.team-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 40px;
  font-size: 1rem; color: var(--muted); text-align: center;
}
.team-note > .icon { color: var(--blue-600); }
.team-note a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.team-note a:hover { color: var(--blue-600); }
.team-note a .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.team-note a:hover .icon { transform: translateX(3px); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  padding: 30px 26px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(36, 120, 240, .45); }
.service-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 14px;
  background: rgba(10, 52, 103, .07); color: var(--navy); transition: background-color .22s ease, color .22s ease;
}
.service-icon .icon { width: 28px; height: 28px; }
.service:hover .service-icon { background: var(--navy); color: #fff; }
.service h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service p { font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* ---------- Industrias ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry {
  padding: 30px 24px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}
.industry:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .11); border-color: rgba(141, 187, 255, .6); }
.industry > .icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--sky); stroke-width: 1.5; }
.industry h3 { font-size: 1.1rem; margin-bottom: 10px; }
.industry p { font-size: .93rem; line-height: 1.6; color: rgba(255, 255, 255, .72); }

/* ---------- Nuestro trabajo ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-art { position: relative; height: 210px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.case-art::before { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; bottom: -170px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.case-art::after { content: ""; position: absolute; width: 180px; height: 180px; right: 40px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.case-art > .icon { position: relative; z-index: 1; width: 44px; height: 44px; stroke-width: 1.4; opacity: .95; }
.case-art--1 { background: linear-gradient(135deg, #0a3467, #2478f0); }
.case-art--2 { background: linear-gradient(135deg, #161616, #0a3467 70%); }
.case-art--3 { background: linear-gradient(135deg, #082a55, #1a63cf 80%); }
.case-metric {
  position: relative; z-index: 1; align-self: flex-start; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px);
  font-size: .9rem; font-weight: 500;
}
.case-metric strong { font: 800 1.2rem/1 var(--font-head); margin-right: 4px; }
.case-body { padding: 26px 26px 30px; }
.case-tag { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.case-body h3 { margin: 10px 0 10px; font-size: 1.28rem; }
.case-body p:last-child { font-size: .96rem; color: var(--muted); }

/* ---------- Por qué / clientes ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 96px; }
.why { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.why-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.why-icon .icon { width: 28px; height: 28px; }
.why h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why p { font-size: .92rem; color: var(--muted); }
.clients-head { margin-bottom: 40px; }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 148px; padding: 20px 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy);
  font: 700 .95rem/1.25 var(--font-head); transition: transform .2s ease, box-shadow .2s ease;
}
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client .icon { width: 34px; height: 34px; stroke-width: 1.5; color: var(--blue-600); }

/* ---------- Sumate ---------- */
.join {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: 64px 56px; border-radius: 28px; color: rgba(255, 255, 255, .85);
  background: radial-gradient(600px 300px at 100% 0%, rgba(36, 120, 240, .4), transparent 60%), linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
}
.join::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; left: -160px; bottom: -260px; background: rgba(255, 255, 255, .06); }
.join h2 { color: #fff; }
.join-copy > p:not(.eyebrow) { margin: 18px 0 30px; max-width: 32rem; }
.join-roles { display: grid; gap: 12px; }
.join-roles li {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  font: 600 .98rem/1.2 var(--font-head); color: #fff;
}
.join-roles .icon { color: var(--sky); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 34px; }
.contact-list a {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(36, 120, 240, .45); }
.contact-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: #fff; background: var(--navy); }
.contact-icon--wa { background: var(--wa); }
.contact-icon .icon { width: 26px; height: 26px; }
.contact-list small { display: block; font-size: .82rem; color: var(--muted); }
.contact-list strong { font: 700 1.2rem/1.3 var(--font-head); color: var(--ink); }

.contact-form { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font: 600 .9rem/1 var(--font-head); color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #93a0b6; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 120, 240, .16); }
.field .is-invalid { border-color: #dc2626; }
.form-error { margin: -4px 0 16px; font-size: .92rem; font-weight: 500; color: #b91c1c; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 auto; white-space: nowrap; }

/* ---------- Pie ---------- */
.site-footer { padding-top: 72px; color: rgba(255, 255, 255, .72); background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 52px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 22rem; }
.site-footer h4 { margin-bottom: 18px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.site-footer li + li { margin-top: 10px; }
.site-footer a { transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  color: #fff; background: var(--wa); box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stat.reveal:nth-child(2).in, .js .stat.reveal:nth-child(4).in { transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .brand { height: 48px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px 20px 26px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(10, 52, 103, .15);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a, .site-header .main-nav ul a { padding: 14px 12px; color: var(--ink); font-size: 1.05rem; border-radius: 10px; }
  .main-nav ul a:hover { color: var(--navy); background: var(--bg-alt); }
  .nav-cta { justify-content: center; padding: 14px 20px; }
  .site-header.menu-open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .site-header.menu-open .brand-logo--light { opacity: 0; }
  .site-header.menu-open .brand-logo--dark { opacity: 1; }

  .hero { padding: calc(var(--header-h) + 48px) 0 120px; }
  .hero-grid, .about-grid, .contact-grid, .join { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-visual { padding-left: 0; max-width: 560px; }
  .about-grid, .contact-grid { gap: 48px; }
  .join { padding: 48px 32px; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; margin-bottom: 72px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 18px; }
  .stat:nth-child(2), .stat:nth-child(4) { transform: none; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 8px; }
  .code-card pre { font-size: .78rem; padding: 18px; }
  .chip--a { right: 0; }
  .join { padding: 40px 22px; border-radius: 22px; }
  .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wa-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
