/* =========================================================
   Brizzolis & Nilsson · Hojas de estilo
   Paleta basada en mapaempresa.jpg del grupo
   ========================================================= */

:root {
  /* Colores */
  --color-bg: #ffffff;
  --color-bg-soft: #F4F8FC;
  --color-bg-tint: #E8F1F8;
  --color-line: #DCE6F0;
  --color-line-2: #C5D4E4;

  --color-ink: #0D1F2D;
  /* Azul casi negro de la B&N */
  --color-ink-soft: #2A3D52;
  --color-muted: #5A6B7E;
  --color-muted-2: #8A99AB;

  --color-brand: #1B7FCB;
  /* Azul brillante del "&" del logo */
  --color-brand-2: #1568A6;
  --color-brand-3: #0E4E80;
  --color-accent: #4FB3F0;
  /* Azul claro, orbes del hero */

  --color-dark: #0A1A28;
  --color-dark-2: #11283C;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Espaciado / radios */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(13, 31, 45, 0.05);
  --shadow: 0 8px 24px -8px rgba(13, 31, 45, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(13, 31, 45, 0.18);

  --container: 1200px;
  --container-narrow: 960px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

.section--light {
  background: var(--color-bg);
}

.section--gradient {
  background:
    radial-gradient(1200px 600px at 50% 0%, var(--color-bg-tint), transparent 60%),
    var(--color-bg-soft);
}

.section--dark {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: #fff;
}

.section__head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -0.03em;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--color-muted);
  max-width: 60ch;
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand);
  position: relative;
  padding-left: 28px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--color-brand);
}

.eyebrow--light {
  color: var(--color-accent);
}

.eyebrow--light::before {
  background: var(--color-accent);
}

.accent {
  color: var(--color-brand);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(27, 127, 203, 0.55);
}

.btn--primary:hover {
  background: var(--color-brand-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(27, 127, 203, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-line-2);
}

.btn--ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px var(--gutter);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(13, 31, 45, 0.06), 0 12px 30px -18px rgba(13, 31, 45, 0.2);
  padding: 10px var(--gutter);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 6px;
  border-radius: 999px;
  background: transparent;
  transition: background .3s ease;
}

.nav.is-scrolled .nav__inner {
  background: transparent;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: padding .25s ease, box-shadow .25s ease;
}

.nav__brand:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.nav__logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav.is-scrolled .nav__brand {
  padding: 4px 12px;
  box-shadow: 0 2px 10px rgba(13, 31, 45, 0.10);
}

.nav.is-scrolled .nav__logo {
  height: 32px;
}

.nav__links {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.nav:not(.is-scrolled) .nav__links {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.92);
  transition: color .2s ease, background .2s ease;
}

.nav.is-scrolled .nav__links a {
  color: var(--color-ink-soft);
}

.nav__links a:hover {
  color: var(--color-brand);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px -6px rgba(27, 127, 203, 0.5);
  transition: transform .25s ease, background .25s ease;
}

.nav__cta:hover {
  background: var(--color-brand-2);
  transform: translateY(-2px);
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav.is-scrolled .nav__burger {
  background: var(--color-bg-tint);
}

.nav.is-scrolled .nav__burger span {
  background: var(--color-ink);
}

.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 12px var(--gutter) 0;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav.is-open .nav__mobile {
  display: flex;
}

.nav__mobile a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-ink);
  font-weight: 500;
}

.nav__mobile a:hover {
  background: var(--color-bg-tint);
  color: var(--color-brand);
}

.nav__mobile-cta {
  background: var(--color-brand) !important;
  color: #fff !important;
  text-align: center;
  margin-top: 6px;
}


/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--gutter) 100px;
  background: linear-gradient(180deg, #0A1A28 0%, #11283C 50%, #14334E 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb 16s ease-in-out infinite;
}

.hero__orb--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #1B7FCB 0%, transparent 70%);
}

.hero__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, #4FB3F0 0%, transparent 70%);
  animation-delay: -8s;
}

.hero__orb--3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, #1568A6 0%, transparent 70%);
  animation-delay: -4s;
  opacity: 0.4;
}

.hero__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes orb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
}

.hero__content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: center;
}

.hero__text {
  min-width: 0;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__logo {
  width: clamp(260px, 32vw, 440px);
  height: auto;
  display: block;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {

  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 0 transparent);
  }

  50% {
    filter: brightness(1.08) drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 8px 18px;
  border: 1px solid rgba(79, 179, 240, 0.4);
  border-radius: 999px;
  background: rgba(79, 179, 240, 0.08);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 0 24px;
}

.hero__title .accent {
  color: var(--color-accent);
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 80px;
}

.hero__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__actions .btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(79, 179, 240, 0.08);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stat-num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  font-feature-settings: "tnum";
}

.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 720px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll 1.8s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__brand {
    order: 2;
    justify-content: flex-start;
  }

  .hero__text {
    order: 1;
  }

  .hero__logo {
    width: min(280px, 75vw);
  }
}

/* ===================================================
   FEATURES (El Grupo)
   =================================================== */
.grupo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature {
  background: #1b7fcb;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-brand);
}

.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: white;
  color: #1b7fcb;
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;

}

.feature p {
  font-size: 0.95rem;
  color: #fff;
  text-align: justify;
}

/* ===================================================
   EMPRESAS (cards grid)
   =================================================== */
.empresas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 127, 203, 0.06), transparent 30%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-line-2);
}

.card:hover::before {
  opacity: 1;
}

.card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}

.card:has(.card__media):hover .card__media {
  opacity: 0.18;
}

.card>* {
  position: relative;
  z-index: 1;
}

.card__logo {
  height: 56px;
  display: flex;
  align-items: center;
}

.card__logo img {
  max-height: 48px;
  max-width: 200px;
  object-fit: contain;
  object-position: left;
  filter: grayscale(10%);
}

.card__sector {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: -4px;
}

.card__desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  flex: 1;
  line-height: 1.55;
  text-align: justify;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: 4px;
  align-self: flex-start;
  transition: gap .2s ease, color .2s ease;
}

.card__link:hover {
  gap: 10px;
  color: var(--color-brand-2);
}

/* ===================================================
   SECTORES
   =================================================== */
.sectores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sector {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.sector:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 179, 240, 0.4);
}

.sector__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.sector h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.sector p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

.sector ul li {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-left: 18px;
}

.sector ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ===================================================
   CONTACTO
   =================================================== */
.contacto {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 880px) {
  .contacto {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contacto__bullets {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacto__bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.contacto__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--color-bg-tint);
  color: var(--color-brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.contacto__direct {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--color-bg-tint);
  border: 1px solid rgba(27, 127, 203, 0.18);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacto__direct-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.contacto__email {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
  word-break: normal;
  overflow-wrap: break-word;
  transition: color .2s ease;
}

.contacto__email:hover {
  color: var(--color-brand-2);
  text-decoration: underline;
}

.form {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px;
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form__group input,
.form__group select,
.form__group textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-bg-soft);
  color: var(--color-ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  font-family: inherit;
}

.form__group textarea {
  resize: vertical;
  min-height: 110px;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 127, 203, 0.12);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-muted);
  cursor: pointer;
}

.form__check input {
  margin-top: 3px;
  accent-color: var(--color-brand);
}

.form__note {
  font-size: 0.9rem;
  color: var(--color-brand-2);
  min-height: 1.4em;
  font-weight: 500;
}

.form__note.is-error {
  color: #c2410c;
}

.form__note.is-ok {
  color: #047857;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 880px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

.footer__brand p {
  margin-top: 16px;
  max-width: 28ch;
  font-size: 0.92rem;
}

.footer__logo {
  height: 52px;
  width: auto;
  display: inline-block;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color .2s ease;
}

.footer__col a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ===================================================
   TO TOP
   =================================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(27, 127, 203, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--color-brand-2);
}

/* ===================================================
   REVEAL (animaciones de scroll)
   =================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity .9s ease, transform .9s cubic-bezier(.16, .84, .32, 1);
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal="down"] {
  transform: translateY(-40px);
}

[data-reveal="left"] {
  transform: translateX(40px);
}

[data-reveal="right"] {
  transform: translateX(-40px);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__orb,
  .hero__scroll span {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================================================
   RESPONSIVE
   (definidos al final para que el orden del cascade
   sea correcto frente a las reglas base)
   =================================================== */

/* Safe area iOS (notches, home indicator) */
.hero,
.nav,
.footer,
.to-top {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.to-top {
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
}

/* Teléfonos muy estrechos (iPhone SE 1ª gen, 320–360px) */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 120px 16px 80px;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .hero__stats {
    padding: 18px 14px;
    gap: 12px;
  }

  .hero__stat-num {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .form {
    padding: 20px;
  }

  .form__group input,
  .form__group select,
  .form__group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .sector {
    padding: 28px 22px;
  }

  .sector h3 {
    font-size: 1.2rem;
  }

  .card {
    padding: 22px;
  }

  .footer {
    padding: 60px 0 24px;
  }

  .footer__top {
    padding-bottom: 40px;
  }

  .to-top {
    width: 40px;
    height: 40px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__brand {
    order: -1;
  }

  .hero__logo {
    width: clamp(180px, 45vw, 240px);
  }
}

/* Móvil medio (381–600px): ajustes suaves */
@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .section__head {
    margin-bottom: 44px;
  }

  .contacto__copy .eyebrow {
    margin-top: 0;
  }
}

/* Móvil grande y tablet pequeña (601–900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .hero__title {
    font-size: 2.8rem;
  }

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

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

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

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

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__brand {
    order: -1;
  }

  .hero__logo {
    width: 260px;
  }
}

/* Tablets medianas y landscape (901–1024px) */
@media (min-width: 901px) and (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .hero__title {
    font-size: clamp(2.6rem, 4.5vw, 3.2rem);
  }

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

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

  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .hero__content {
    gap: 30px;
  }

  .hero__logo {
    width: 280px;
  }
}

/* Nav burger: en cualquier ancho < 1024px mostramos burger */
@media (max-width: 1024px) {

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }

  .nav__inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 0 16px;
  }

  .nav.is-scrolled .nav__inner {
    background: transparent;
  }

  .nav:not(.is-scrolled) .nav__inner {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* =========================================================
   MAPA DE EMPRESAS  ·  bloque aislado
   ---------------------------------------------------------
   Todo lo de aqui abajo vive dentro de .mapa-grupo. No toca
   body, html ni ninguna clase del resto de la web.
   ========================================================= */

.mapa-grupo {
  --map-azul: #1a72c4;
  --map-azul-hondo: #14538f;
  --map-tinta: #3d454b;
  --map-tinta-suave: #6f7a82;
  --map-linea: #b9cbd8;
  --map-papel-1: #f4fafd;
  --map-papel-2: #cfe3f3;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(40px, 5vw, 70px);
  color: var(--map-tinta);
  background:
    radial-gradient(1200px 900px at 50% 55%, #ffffff 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(155deg, var(--map-papel-1) 0%, var(--map-papel-2) 55%, #e7f2fa 100%);
}

/* Rejilla tecnica de fondo, limitada a la seccion */
.mapa-grupo::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    repeating-linear-gradient(74deg, rgba(120, 165, 200, .16) 0 1px, transparent 1px 128px),
    repeating-linear-gradient(-16deg, rgba(120, 165, 200, .13) 0 1px, transparent 1px 128px);
}

.mapa-grupo>* {
  position: relative;
  z-index: 1;
}

/* ---------- Lienzo ---------- */
.mapa-grupo .viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.mapa-grupo .stage {
  position: relative;
  width: 1720px;
  height: 1240px;
  flex: none;
  transform-origin: top center;
  isolation: isolate;
}

/* ---------- Conectores ---------- */
.mapa-grupo .links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mapa-grupo .links line {
  stroke: var(--map-azul-hondo);
  stroke-width: 2.4;
  stroke-dasharray: 13 11;
  stroke-linecap: round;
  opacity: .85;
}

.mapa-grupo .links circle {
  fill: var(--map-azul-hondo);
}

.mapa-grupo .halftone {
  opacity: .5;
}

/* ---------- Nucleo B&N ---------- */
.mapa-grupo .hub {
  position: absolute;
  left: 860px;
  top: 620px;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: radial-gradient(circle at 36% 28%, #ffffff 0%, #f6fbff 52%, #e3f0fa 100%);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, .75),
    0 0 0 17px rgba(94, 164, 215, .55),
    0 0 0 24px rgba(255, 255, 255, .55),
    0 26px 55px rgba(30, 86, 138, .22);
}

.mapa-grupo .hub img {
  width: 186px;
  height: auto;
  display: block;
}

/* ---------- Burbujas ---------- */
.mapa-grupo .node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 402px;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 4px 10px;
}

.mapa-grupo .node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 452px;
  height: 452px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 24%,
      rgba(255, 255, 255, .95) 0%,
      rgba(255, 255, 255, .66) 42%,
      rgba(219, 238, 250, .42) 70%,
      rgba(255, 255, 255, .10) 100%);
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, .9),
    inset 0 -18px 40px rgba(160, 200, 230, .22),
    0 20px 50px rgba(40, 100, 150, .10);
}

/* ---------- Logotipos ---------- */
.mapa-grupo .logo {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mapa-grupo .logo img {
  height: auto;
  max-width: 100%;
  display: block;
}

.mapa-grupo .l-nilsson img {
  width: 272px;
}

.mapa-grupo .l-nosslin img {
  width: 202px;
}

.mapa-grupo .l-poseidon img {
  width: 266px;
}

.mapa-grupo .l-zortec img {
  width: 208px;
}

.mapa-grupo .l-emeco img {
  width: 272px;
}

.mapa-grupo .l-rubertepis img {
  width: 200px;
}

.mapa-grupo .l-detec img {
  width: 212px;
}

.mapa-grupo .l-rubertetra img {
  width: 236px;
}

.mapa-grupo .l-zeleron img {
  width: 254px;
}

.mapa-grupo .l-quiprocalt img {
  width: 252px;
}

/* ---------- Tipografia de ficha ---------- */
.mapa-grupo .fecha {
  font-size: 11.5px;
  font-style: italic;
  color: var(--map-tinta-suave);
  margin: 4px 0 8px;
}

.mapa-grupo .m-sector {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--map-azul);
  margin: 0 auto 9px;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--map-linea);
  max-width: 330px;
  background: none;
}

.mapa-grupo .servicios {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.42;
}

.mapa-grupo .servicios li {
  padding-left: 11px;
  position: relative;
  margin: 0;
}

.mapa-grupo .servicios li::before {
  content: "·";
  position: absolute;
  left: 2px;
  font-weight: 700;
  background: none;
  width: auto;
  height: auto;
}

.mapa-grupo .m-contacto {
  font-size: 17px;
  line-height: 1.3;
  color: #46505a;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--map-linea);
  max-width: 300px;
  margin: 0 auto 10px;
  display: block;
}

.mapa-grupo .m-contacto a {
  color: inherit;
  text-decoration: none;
}

.mapa-grupo .m-contacto a:hover {
  text-decoration: underline;
}

.mapa-grupo .persona {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--map-tinta-suave);
  margin: 0;
}

.mapa-grupo .persona .cargo {
  display: block;
}

.mapa-grupo .persona .nombre {
  display: block;
  font-weight: 700;
  color: #4a545c;
  font-size: 12.5px;
}

.mapa-grupo .persona .nombre i {
  font-weight: 400;
  color: var(--map-tinta-suave);
}

.mapa-grupo .enac {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: #c0392b;
  border-bottom: 2px solid #c0392b;
  line-height: 1;
  margin-left: 6px;
  vertical-align: -2px;
}

.mapa-grupo .pie {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #90a3b1;
  margin: 0;
}

/* ---------- Pantallas estrechas: las burbujas pasan a tarjetas ---------- */
@media (max-width: 900px) {
  .mapa-grupo .stage {
    width: 100%;
    height: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .mapa-grupo .viewport {
    height: auto !important;
    padding: 0 var(--gutter);
  }

  .mapa-grupo .links,
  .mapa-grupo .pie {
    display: none;
  }

  .mapa-grupo .hub {
    position: static;
    margin: 0 0 10px;
    width: 240px;
    height: 240px;
  }

  .mapa-grupo .hub img {
    width: 150px;
  }

  .mapa-grupo .node {
    position: static;
    transform: none;
    width: 100%;
    max-width: 420px;
    padding: 28px 22px 34px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 34px rgba(40, 100, 150, .12);
  }

  .mapa-grupo .node::before {
    display: none;
  }
}

/* ---------- Impresion del mapa (A3 apaisado) ---------- */
@media print {
  .mapa-grupo::before {
    display: none;
  }

  .mapa-grupo .stage {
    transform: scale(.62) !important;
  }
}