/* ==========================================================================
   Catalino & Co. — Estilos del landing
   Orden: base · utilidades · botones · header · hero · secciones ·
   servicios · productos · mockups · historia · contacto · footer ·
   animaciones · responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink-600);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--ink-900);
  font-weight: 600;
}

::selection {
  background: var(--blue-300);
  color: var(--navy-950);
}

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

.section--light :focus-visible,
.section--white :focus-visible {
  outline-color: var(--steel-500);
}

/* Íconos del sprite (estilo Lucide: trazo, 24×24) */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Utilidades
   ----------------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--navy-950);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero .eyebrow,
.section--dark .eyebrow,
.contact .eyebrow {
  color: var(--blue-300);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--blue-100);
  color: var(--navy-950);
}

.btn--primary:hover {
  background: var(--white);
}

.btn--ghost {
  border-color: var(--line-dark-strong);
  color: var(--fog-100);
}

.btn--ghost:hover {
  border-color: var(--blue-300);
  background: rgba(157, 184, 214, 0.08);
}

.btn--lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: var(--fs-base);
}

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur),
    border-color var(--dur);
}

.header.is-stuck {
  background: rgba(10, 20, 36, 0.82);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fog-100);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__amp {
  padding: 0 1px;
  font-family: var(--font-serif);
  font-size: 1.3em;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--sand-300);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fog-300);
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--sand-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current] {
  color: var(--fog-100);
}

.nav__link:hover::after,
.nav__link[aria-current]::after {
  transform: scaleX(1);
}

.nav__cta {
  min-height: 40px;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--fog-100);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    top var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    opacity var(--dur-fast);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 5.25px;
}

.nav-toggle__bars span:nth-child(3) {
  top: 10.5px;
}

.header.is-open .nav-toggle__bars span:nth-child(1) {
  top: 5.25px;
  transform: rotate(45deg);
}

.header.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.header.is-open .nav-toggle__bars span:nth-child(3) {
  top: 5.25px;
  transform: rotate(-45deg);
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + clamp(64px, 12vh, 136px));
  padding-bottom: clamp(48px, 7vh, 88px);
  overflow: hidden;
  background: var(--navy-950);
  color: var(--fog-300);
}

/* Retícula sutil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(157, 184, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 184, 214, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 65% 35%, #000 25%, transparent 75%);
}

/* Brillo radial azul tenue */
.hero::after {
  content: "";
  position: absolute;
  top: -320px;
  right: -240px;
  z-index: -1;
  width: 920px;
  height: 920px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 107, 138, 0.34), transparent 62%);
}

/* El "&" de la marca como motivo gráfico */
.hero__glyph {
  position: absolute;
  right: -1vw;
  bottom: -0.18em;
  z-index: -1;
  font-family: var(--font-serif);
  font-size: clamp(20rem, 46vw, 44rem);
  font-style: italic;
  line-height: 1;
  color: rgba(157, 184, 214, 0.03);
  -webkit-text-stroke: 1px rgba(157, 184, 214, 0.16);
  pointer-events: none;
  user-select: none;
}

.hero__content {
  max-width: 1160px;
}

.hero h1 {
  max-width: 15ch;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero h1 em,
.contact h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--blue-300);
}

.hero__lead {
  max-width: 600px;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--fog-300);
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 10vh, 112px);
  border-top: 1px solid var(--line-dark);
}

.fact {
  padding: 24px 24px 0 0;
}

.fact + .fact {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.fact__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fog-100);
}

.fact__label {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--fog-300);
}

/* --------------------------------------------------------------------------
   Secciones
   ----------------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--light {
  background: var(--mist-50);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--navy-900);
  color: var(--fog-300);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   Servicios
   ----------------------------------------------------------------------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    border-color var(--dur),
    box-shadow var(--dur),
    transform var(--dur) var(--ease-out);
}

.service:hover {
  border-color: var(--line-light-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.service__num {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  right: clamp(28px, 3vw, 40px);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-400);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--steel-500);
}

.service__icon .icon {
  width: 24px;
  height: 24px;
}

.service h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
}

.service__list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-sm);
  color: var(--ink-900);
}

.service__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service__list .icon {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--steel-500);
}

/* Cómo trabajamos */
.process {
  margin-top: clamp(64px, 8vw, 104px);
}

.process__title {
  margin-bottom: 28px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  position: relative;
  padding: 26px 28px 0 0;
  border-top: 1px solid var(--line-light-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand-300);
}

.step__num {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--steel-500);
}

.step h4 {
  margin: 8px 0 6px;
  font-size: 1.0625rem;
}

.step p {
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   Productos
   ----------------------------------------------------------------------- */

.product {
  --accent: var(--blue-300);
  --accent-soft: rgba(157, 184, 214, 0.12);

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 60px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(23, 42, 70, 0.75), rgba(15, 29, 51, 0.35));
}

.product + .product {
  margin-top: 28px;
}

.product--modu {
  --accent: #9fbad4;
  --accent-soft: rgba(106, 138, 168, 0.18);
}

.product--esr {
  --accent: var(--indigo-300);
  --accent-soft: rgba(124, 127, 214, 0.16);
}

.product--reverse .product__media {
  order: -1;
}

.product__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.product__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.product__logo img {
  width: 36px;
  height: 36px;
}

.product__name {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  letter-spacing: -0.025em;
}

.product__tagline {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--fog-300);
}

.product__sector {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.product__desc {
  font-size: var(--fs-md);
  color: var(--fog-300);
}

.product__motto {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--sand-300);
}

.product__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--fog-100);
}

.product__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product__features .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
}

.product__actions {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Mockups de producto (ilustrativos, en HTML/CSS)
   ----------------------------------------------------------------------- */

.mock {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(10, 20, 36, 0.72);
  box-shadow: var(--shadow-deep);
  font-size: 12px;
  line-height: 1.4;
  color: var(--fog-300);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
}

.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(157, 184, 214, 0.22);
}

.mock__title {
  margin-left: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fog-300);
}

.mock__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-dark);
}

.mock__foot strong {
  color: var(--fog-100);
}

.meter {
  display: block;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(157, 184, 214, 0.12);
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

/* Mini Gantt (MODU Planning) */
.gantt {
  --res-w: 84px;

  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.gantt__row {
  display: grid;
  grid-template-columns: var(--res-w) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.gantt__res {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fog-300);
}

.gantt__days,
.gantt__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gantt__days span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog-500);
}

.gantt__days .is-today {
  font-weight: 700;
  color: var(--sand-300);
}

.gantt__track {
  gap: 4px;
  padding: 4px 0;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgba(157, 184, 214, 0.06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.gantt__job {
  grid-column: var(--s) / var(--e);
  grid-row: 1;
  height: 24px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  color: var(--navy-950);
}

.gantt__job--steel {
  background: var(--steel-400);
}

.gantt__job--olive {
  background: var(--olive-400);
}

.gantt__job--sand {
  background: var(--sand-300);
}

/* Línea de "hoy" (miércoles): arranca debajo de la fila de días. */
.gantt__today {
  position: absolute;
  top: 42px;
  bottom: 16px;
  left: calc(16px + var(--res-w) + 12px + (100% - 32px - var(--res-w) - 12px) * 0.42);
  width: 1px;
  background: rgba(216, 185, 138, 0.7);
}

/* Disponibilidad (ESR Cloud) */
.avail {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
}

.avail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--fog-100);
}

.avail__qty {
  font-variant-numeric: tabular-nums;
  color: var(--fog-300);
}

.avail__item.is-low .meter > span {
  background: var(--sand-300);
}

.avail__item.is-low .avail__qty {
  color: var(--sand-300);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-dark);
}

.flow__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fog-500);
}

.flow__step.is-done {
  color: var(--fog-300);
}

.flow__step.is-done::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.flow__step.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--fog-100);
}

/* --------------------------------------------------------------------------
   Historia
   ----------------------------------------------------------------------- */

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
}

.story__intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.story__intro h2 {
  font-size: var(--fs-h2);
}

.story__note {
  margin-top: 20px;
  font-size: var(--fs-md);
}

.quote {
  margin-top: 40px;
  padding-left: 24px;
  border-left: 2px solid var(--sand-300);
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-900);
}

.quote footer {
  margin-top: 16px;
  font-size: var(--fs-sm);
}

.quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--ink-900);
}

.milestone {
  position: relative;
  padding: 0 0 48px 48px;
}

.milestone:last-child {
  padding-bottom: 0;
}

/* Tramo de línea hasta el siguiente hito (el último no lo lleva). */
.milestone:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -5px;
  left: 7px;
  width: 1px;
  background: var(--line-light-strong);
}

.milestone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--sand-300);
  border-radius: 50%;
  background: var(--white);
}

.milestone:last-child::before {
  background: var(--sand-300);
  box-shadow: 0 0 0 6px rgba(216, 185, 138, 0.22);
}

.milestone__year {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--steel-500);
}

.milestone h3 {
  margin: 6px 0 8px;
  font-size: 1.1875rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}

.stack__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.stack__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 5px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: var(--mist-50);
  font-size: var(--fs-sm);
  color: var(--ink-900);
}

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

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--navy-950);
  color: var(--fog-300);
  text-align: center;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: -520px;
  left: 50%;
  z-index: -1;
  width: 1100px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(72, 107, 138, 0.38), transparent);
  transform: translateX(-50%);
}

.contact__inner {
  max-width: 740px;
}

.contact h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
  color: var(--white);
}

.contact__text {
  margin-top: 20px;
  font-size: var(--fs-md);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: var(--fs-sm);
}

.contact__meta > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact__meta .icon {
  width: 17px;
  height: 17px;
  color: var(--blue-300);
}

.contact__meta a:hover {
  color: var(--fog-100);
}

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */

.footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--line-dark);
  background: var(--navy-950);
  font-size: var(--fs-sm);
  color: var(--fog-300);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer__tagline {
  max-width: 300px;
  margin-top: 16px;
}

.footer__title {
  margin-bottom: 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-100);
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  transition: color var(--dur-fast);
}

.footer__links a:hover {
  color: var(--fog-100);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* Redes inactivas por ahora: sin href, no navegan. */
.social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  color: var(--fog-300);
  cursor: default;
  transition:
    color var(--dur-fast),
    border-color var(--dur-fast);
}

.social__link:hover {
  border-color: var(--line-dark-strong);
  color: var(--fog-100);
}

.social__link[href] {
  cursor: pointer;
}

.social__link .icon {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  color: var(--fog-500);
}

/* --------------------------------------------------------------------------
   Animaciones
   ----------------------------------------------------------------------- */

/* Entrada del hero: solo CSS, no depende de JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > *,
  .hero__facts {
    animation: rise var(--dur-slow) var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 90ms + 60ms);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll-reveal: el estado oculto solo se activa desde main.js. */
:root[data-reveal="on"] .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

:root[data-reveal="on"] .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */

@media (max-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
  }

  .product--reverse .product__media {
    order: 0;
  }

  .story__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story__intro {
    position: static;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header.is-open {
    background: var(--navy-950);
    border-bottom-color: var(--line-dark);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line-dark);
    background: var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--dur),
      transform var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }

  .header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur),
      transform var(--dur) var(--ease-out);
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.0625rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 20px;
    min-height: 48px;
  }
}

@media (max-width: 760px) {
  .services__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 640px) {
  .hero__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact,
  .fact + .fact {
    padding: 18px 0;
    border-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line-dark);
  }

  .product__features {
    grid-template-columns: minmax(0, 1fr);
  }

  .gantt {
    --res-w: 64px;
  }

  .gantt__days span {
    font-size: 10px;
    letter-spacing: 0;
  }

  .gantt__job {
    color: transparent;
  }
}

@media (max-width: 520px) {
  .process__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
  }
}
