/* ============================================================
   SERZA DYNAMICS — Hoja de estilos (rediseño fiel al original)
   Identidad: fondo blanco + secciones azul marino #0A1F44
   Acento lima #B4F201 · Azul acero #467C9E · Montserrat
   Sin frameworks, CSS propio.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --navy: #0A1F44;            /* azul marino principal */
  --navy-deep: #071633;
  --ink: #0A1F44;            /* titulares sobre blanco */
  --body: #727586;           /* texto cuerpo sobre blanco */
  --white: #FFFFFF;
  --lime: #B4F201;           /* acento: activo, hovers, subtítulos */
  --steel: #467C9E;          /* azul acero: stats, botones */
  --steel-dark: #35617d;
  --steel-blue: #457B9D;     /* overlay degradado */
  --purple: rgba(143, 17, 168, 1);
  --footer-bg: #0D141A;
  --line: #e6e9f0;
  --radius: 16px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --shadow: 0 24px 60px rgba(10, 31, 68, 0.16);
  --header-h: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--lime); color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }

.container {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}
.section { padding: 6rem 0; }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #c9d4e8; }

/* ---------- Header pegajoso ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  height: 72px;
  box-shadow: 0 10px 30px rgba(4, 12, 28, 0.45);
  background: rgba(10, 31, 68, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

/* Logo tipográfico */
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.14em;
}
.logo-sub {
  color: var(--white);
  opacity: 0.72;
  font-weight: 500;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  margin-top: 0.35rem;
  white-space: nowrap;
}

/* Navegación */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
}
.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--lime); text-decoration: none; }
.main-nav a.active { color: var(--lime); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  border-radius: 3px;
  background: var(--lime);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.lang-switch .active { color: var(--lime); }
.lang-switch a { color: var(--white); opacity: 0.75; }
.lang-switch a:hover { opacity: 1; color: var(--lime); text-decoration: none; }
.lang-switch .sep { opacity: 0.4; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--white);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--steel);
  color: var(--white);
  font-weight: 600;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  background: var(--steel-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(70, 124, 158, 0.4);
}
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: #c4f52e; color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); box-shadow: none; }
.btn-small { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* ============================================================
   SLOTS DE FOTOS — img/fotos/
   Las imágenes ya existen. El estado .vacio queda como red de
   seguridad elegante si algún archivo faltara.
   ============================================================ */
.foto-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #10234d, var(--navy-deep));
}
.foto-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foto-slot.vacio {
  border: 2px dashed rgba(70, 124, 158, 0.5);
  display: grid;
  place-items: center;
  min-height: 200px;
}
.foto-slot.vacio::after {
  content: "◈ FOTO · " attr(data-nombre) " · " attr(data-medida);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8fa3c4;
  text-align: center;
  padding: 1.5rem;
  line-height: 2;
}

/* ---------- Burbuja WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   HOME — Hero
   ============================================================ */
.hero-home {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 0 10rem;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute;
  inset: -8% 0;              /* margen para el parallax */
  border-radius: 0;
  will-change: transform;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(69, 125, 157, 0.5) 0%, rgba(143, 17, 168, 0.22) 60%, rgba(10, 31, 68, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 22, 51, 0.55) 0%, rgba(7, 22, 51, 0.25) 45%, rgba(7, 22, 51, 0.72) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 56rem; }
.hero-home h1 {
  color: var(--white);
  font-size: clamp(3.2rem, 6vw, 4rem);   /* 56–64px */
  font-weight: 700;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero-home .lead {
  color: #e8eefb;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 38rem;
  margin: 0 auto 2.6rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 3 tarjetas oscuras superpuestas al hero */
.hero-cards {
  position: relative;
  z-index: 2;
  margin-top: -7rem;
  padding-bottom: 1rem;
}
.hero-cards .cards { grid-template-columns: repeat(3, 1fr); }
.hcard {
  background: rgba(13, 20, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.hcard:hover { transform: translateY(-8px); border-color: var(--lime); }
.hcard h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.7rem; }
.hcard p { color: #c3cede; font-size: 0.95rem; margin-bottom: 1.2rem; }
.hcard a { color: var(--lime); font-weight: 600; font-size: 0.9rem; }
.hcard a:hover { color: #d3f75e; }

/* ============================================================
   HOME — La Pasión que nos mueve
   ============================================================ */
.pasion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.pasion-grid h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 1.4rem; }
.pasion-grid p { margin-bottom: 1.2rem; font-size: 1.02rem; }
.pasion-media { position: relative; }
.pasion-media .foto-slot { border-radius: 20px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
/* Barra de stats superpuesta */
.stats-bar {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: -2.6rem;
  background: var(--steel);
  border-radius: 16px;
  display: flex;
  box-shadow: 0 20px 45px rgba(70, 124, 158, 0.45);
}
.stat {
  flex: 1;
  text-align: center;
  padding: 1.6rem 1rem;
  color: var(--white);
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat span { font-size: 0.85rem; font-weight: 500; opacity: 0.92; }
.pasion { padding-bottom: 9rem; } /* aire para la barra superpuesta */

/* ============================================================
   HOME — Innovación con PROPÓSITO (fondo marino)
   ============================================================ */
.proposito-head { text-align: center; max-width: 52rem; margin: 0 auto 3.5rem; }
.proposito-head h2 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 1.2rem; }
.proposito-head h2 .hl { color: var(--lime); }
.proposito-head p { color: #c9d4e8; font-size: 1.05rem; }

.cards { display: grid; gap: 1.8rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.pcard {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.pcard .foto-slot { border-radius: 0; aspect-ratio: 16 / 10; }
.pcard .foto-slot img { transition: transform 0.6s ease; }
.pcard:hover .foto-slot img { transform: scale(1.06); }
.pcard-body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.pcard-body h3 { font-size: 1.25rem; color: var(--ink); }
.pcard-body p { font-size: 0.95rem; flex: 1; color: var(--body); }
.pcard-body a { font-weight: 600; font-size: 0.9rem; }
.pcard-body a:hover { color: var(--steel-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--footer-bg); padding: 4.5rem 0 0; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p { color: #9aa4b5; font-size: 0.92rem; margin-top: 1.2rem; max-width: 24rem; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.site-footer ul a { color: #9aa4b5; font-size: 0.93rem; }
.site-footer ul a:hover { color: var(--lime); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #7d8798;
  font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: #7d8798; }
.footer-legal a:hover { color: var(--lime); text-decoration: none; }
.footer-credit a { color: #7d8798; }
.footer-credit a:hover { color: var(--lime); text-decoration: none; }

/* ============================================================
   Páginas internas — cabecera
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 6rem 0 5rem;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(69,125,157,.4), rgba(143,17,168,.18));
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; }
.page-hero p { color: #c9d4e8; max-width: 44rem; margin: 1rem auto 0; font-size: 1.05rem; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.us-hero { padding: 6rem 0 0; }
.us-hero .foto-slot {
  border-radius: 20px;
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow);
  margin-top: 2.5rem;
}
.us-hero .foto-slot::after {
  /* overlay marino sobre la foto */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(69,125,157,.35), rgba(10,31,68,.45));
  pointer-events: none;
}
.us-hero .foto-slot img { position: relative; }
.us-intro { text-align: center; max-width: 52rem; margin: 0 auto; }
.us-intro .kicker { color: var(--steel); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 1rem; }
.us-intro h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 1.4rem; }
.us-intro p { font-size: 1.05rem; }

.timeline { position: relative; margin: 4rem auto 0; padding-left: 2.6rem; max-width: 60rem; }
.timeline::before {
  content: "";
  position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--steel), rgba(70,124,158,.08));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -2.6rem; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--steel);
  box-shadow: 0 0 0 5px rgba(70,124,158,.15);
}
.tl-badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--steel);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.tl-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.tl-item p { max-width: 48rem; }
.tl-photo { margin: 3.5rem auto 0; max-width: 60rem; }
.tl-photo .foto-slot { border-radius: 20px; aspect-ratio: 21 / 9; box-shadow: var(--shadow); }

/* ============================================================
   CLIENTES
   ============================================================ */
.sector { margin-bottom: 5rem; }
.sector:last-child { margin-bottom: 0; }
.sector-banner { position: relative; margin-bottom: 2rem; }
.sector-banner .foto-slot { aspect-ratio: 21 / 8; min-height: 220px; box-shadow: var(--shadow); }
.sector-banner .foto-slot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,31,68,.75) 0%, rgba(10,31,68,.15) 60%, transparent 100%);
  pointer-events: none;
}
.sector-tag {
  position: absolute; left: 2rem; bottom: 1.6rem; z-index: 1;
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  text-shadow: 0 3px 18px rgba(0,0,0,.5);
}
.client-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.client-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(10,31,68,.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.client-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--steel);
}
.client-list strong { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 0.5rem; }
.client-list p { font-size: 0.93rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background: var(--navy-deep);
}
.contact-hero .hero-bg { position: absolute; inset: -8% 0; border-radius: 0; will-change: transform; }
.contact-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(165deg, rgba(69,125,157,.45), rgba(143,17,168,.2)),
    linear-gradient(180deg, rgba(7,22,51,.82) 0%, rgba(7,22,51,.68) 100%);
}
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.contact-grid h1 { color: var(--white); font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.contact-sub { color: var(--lime); font-weight: 600; font-size: 1.1rem; margin-bottom: 2rem; }
.contact-lines { display: grid; gap: 1.1rem; }
.contact-lines a, .contact-lines span { color: #e8eefb; font-size: 1.02rem; display: flex; align-items: center; gap: 0.8rem; }
.contact-lines a:hover { color: var(--lime); }

.form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.8rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.form-card h3 { margin-bottom: 1.6rem; font-size: 1.35rem; }
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
  border-color: var(--steel);
  background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: 0.82rem; color: var(--body); }

/* Ubicación + mapa */
.ubicacion-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.ubicacion-grid h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 1.2rem; }
.ubicacion-grid address { font-style: normal; font-size: 1.05rem; color: var(--ink); font-weight: 600; margin-bottom: 0.6rem; }
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(10,31,68,.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}
.news-card:hover { text-decoration: none; transform: translateY(-8px); box-shadow: var(--shadow); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-deep); transition: transform .6s ease; }
.news-card:hover img { transform: scale(1.05); }
.news-card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.news-date { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.news-card h3 { font-size: 1.1rem; line-height: 1.35; }
.news-card p { font-size: 0.92rem; flex: 1; }
.news-more { font-weight: 600; font-size: 0.88rem; color: var(--steel); }

/* Artículo */
.article { max-width: 46rem; margin-inline: auto; }
.article-hero-img { border-radius: 18px; overflow: hidden; margin: 2rem 0 2.4rem; box-shadow: var(--shadow); }
.article-hero-img img { width: 100%; height: auto; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 1rem 0 1.2rem; }
.article .bajada { font-size: 1.15rem; color: var(--body); margin-bottom: 0.5rem; }
.article-body p { margin-bottom: 1.3rem; color: #4a4e5e; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 1rem; }
.loading, .empty-msg { color: var(--body); padding: 3rem 0; text-align: center; }

/* Newsletter */
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-radius: 24px;
  padding: 3rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.newsletter::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(69,125,157,.45), rgba(143,17,168,.2));
  pointer-events: none;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.6rem; }
.newsletter p { color: #c9d4e8; }
.newsletter-form { display: flex; gap: 0.8rem; flex: 1 1 320px; max-width: 520px; }
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.95);
  border: none;
  border-radius: 999px;
  color: var(--ink);
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  min-width: 0;
}
.newsletter-form input:focus { outline: 3px solid var(--lime); }

/* ---------- Páginas legales ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-bottom: 1rem; font-size: 0.98rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-note {
  border: 1px dashed var(--steel);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  background: rgba(70,124,158,.08);
  color: var(--steel-dark);
  font-size: 0.92rem;
  margin: 2.2rem 0;
  font-weight: 600;
}

/* ============================================================
   Animaciones de scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-scale { transform: translateY(28px) scale(0.97); }
.reveal-scale.visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .hero-cards .cards, .cards-3, .news-grid, .client-list { grid-template-columns: 1fr 1fr; }
  .pasion-grid, .contact-grid, .ubicacion-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pasion { padding-bottom: 6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 76px; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.12);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.6rem;
    gap: 0;
    margin-left: 0;
    display: none;
    box-shadow: 0 30px 40px rgba(4,12,28,.5);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 0.2rem; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .lang-switch { margin-left: 0; }
  .header-inner { gap: 0.9rem; }
  .logo-name { font-size: 1.5rem; }
  .hero-home h1 { font-size: 2.6rem; }
  .hero-cards { margin-top: -5rem; }
  .hero-cards .cards, .cards-3, .news-grid, .client-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { left: 1rem; right: 1rem; bottom: -2.2rem; }
  .stat strong { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter { padding: 2.2rem 1.6rem; }
  .newsletter-form { flex-direction: column; max-width: none; }
  .newsletter-form .btn { justify-content: center; }
  .form-card { padding: 2rem 1.5rem; }
  .sector-tag { left: 1.2rem; bottom: 1.1rem; }
  .timeline { padding-left: 2.1rem; }
  .section { padding: 4rem 0; }
}
