/* Tecnoha — estilos compartidos */
:root {
  --color-primary: #0170b9;
  --color-primary-dark: #015a94;
  --color-accent: #5a7daf;
  --color-dark: #0d1b2a;
  --color-text: #4b4f58;
  --color-text-muted: #5c6777;
  --color-text-soft: #627083;
  --color-heading: #1a1a2e;
  --color-white: #ffffff;
  --color-muted: #f5f7fa;
  --color-surface: #f3f6fa;
  --color-surface-alt: #f6f9fc;
  --color-on-dark: #9fd0f0;
  --color-on-dark-muted: #c8d4e0;
  --color-footer: #08111f;
  --color-footer-muted: #8a97a8;
  --font-heading: "Nunito", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --heading-weight: 800;
  --heading-tracking: -0.03em;
  --title-size: clamp(1.75rem, 3.2vw, 2.55rem);
  --lead-size: 1.05rem;
  --header-height: 80px;
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.28s ease;
  --transition-fast: 0.2s ease;
  --shadow-sm: 0 4px 14px rgba(8, 17, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(8, 17, 31, 0.1);
  --shadow-header: 0 8px 28px rgba(0, 0, 0, 0.22);
  --focus-ring: 0 0 0 3px rgba(1, 112, 185, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1, h2 {
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
}

h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(8, 17, 31, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 17, 31, 0.99);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.header-accent {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(1, 112, 185, 0.45) 20%,
    rgba(1, 112, 185, 0.7) 50%,
    rgba(1, 112, 185, 0.45) 80%,
    transparent 100%
  );
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  height: calc(var(--header-height) - 1px);
  gap: 2rem;
}

.site-logo {
  position: relative;
  z-index: 1002;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.site-logo img {
  width: 152px;
  height: auto;
  transition: opacity 0.25s ease;
}

.site-logo:hover img {
  opacity: 0.88;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.nav-list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.28rem;
  height: 1.5px;
  border-radius: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.nav-list > li > a.is-active::after,
.nav-list > li > a:hover::after {
  transform: scaleX(1);
}

.nav-list > li > a:focus-visible {
  outline-offset: 2px;
  color: #fff;
}

.has-submenu {
  position: relative;
}

@media (min-width: 901px) {
  .has-submenu {
    position: static;
  }
}

.has-submenu > a {
  gap: 0;
  padding-right: 0.85rem;
}

.has-submenu > a::after {
  right: 1.65rem;
}

.nav-caret {
  display: block;
  width: 9px;
  height: 5px;
  margin-left: 0.4rem;
  flex-shrink: 0;
  opacity: 0.55;
  transform: translateY(0.5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.has-submenu:hover > a .nav-caret,
.has-submenu:focus-within > a .nav-caret,
.has-submenu > a.is-active .nav-caret,
.has-submenu.is-open > a .nav-caret {
  opacity: 0.95;
}

.has-submenu:hover > a .nav-caret,
.has-submenu:focus-within > a .nav-caret,
.has-submenu.is-open > a .nav-caret {
  transform: translateY(0.5px) rotate(180deg);
}

.has-submenu.is-open > a,
.has-submenu:hover > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* Mega submenu */
.submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 1100;
  width: min(100%, 780px);
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s ease;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -1.05rem;
  left: 0;
  right: 0;
  height: 1.25rem;
}

.submenu--mega .submenu-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(1, 112, 185, 0.22), transparent 55%),
    linear-gradient(165deg, #0c1829 0%, #08111f 48%, #0a1424 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(1, 112, 185, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.submenu-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.45rem 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(1, 112, 185, 0.12) 0%, transparent 100%);
}

.submenu-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ec4ea;
}

.submenu-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.submenu-lead {
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(200, 212, 224, 0.82);
}

.submenu-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.55rem 0.85rem;
  width: fit-content;
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(1, 112, 185, 0.28);
  border: 1px solid rgba(1, 112, 185, 0.45);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.submenu-cta:hover {
  background: rgba(1, 112, 185, 0.42);
  border-color: rgba(74, 163, 216, 0.7);
  color: #fff !important;
  transform: translateX(2px);
}

.submenu-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.submenu-cta:hover svg {
  transform: translateX(2px);
}

.submenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem;
}

.submenu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  color: inherit;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.submenu-item:hover,
.submenu-item.is-active,
.submenu-item:focus-visible {
  background: rgba(1, 112, 185, 0.16);
  border-color: rgba(1, 112, 185, 0.28);
  color: inherit;
  transform: translateY(-1px);
}

.submenu-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(1, 112, 185, 0.16);
  border: 1px solid rgba(1, 112, 185, 0.28);
  color: #7ec4ea;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.submenu-item__icon svg {
  width: 18px;
  height: 18px;
}

.submenu-item:hover .submenu-item__icon,
.submenu-item.is-active .submenu-item__icon {
  background: rgba(1, 112, 185, 0.32);
  border-color: rgba(74, 163, 216, 0.55);
  color: #fff;
}

.submenu-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.submenu-item__title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.94);
}

.submenu-item__desc {
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(200, 212, 224, 0.68);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.5rem 1.2rem;
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(1, 112, 185, 0.28);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-header svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-header:hover {
  background: var(--color-primary-dark);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(1, 112, 185, 0.34);
}

.btn-header:hover svg {
  transform: translateX(2px);
}

.btn-header:focus-visible {
  outline-offset: 3px;
  color: #fff;
}

.btn-header:active {
  background: #014e82;
}

/* —— Footer (enterprise) —— */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(1, 112, 185, 0.22), transparent 52%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(90, 125, 175, 0.12), transparent 48%),
    linear-gradient(180deg, #0a1424 0%, var(--color-footer) 42%, #060d18 100%);
  color: var(--color-white);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 18%, #4aa3d8 50%, var(--color-primary) 82%, transparent 100%);
}

.footer-shell {
  width: min(100% - 2.5rem, 1240px);
  margin: 0 auto;
  padding: clamp(3.5rem, 6.5vw, 5rem) 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(15rem, 1.15fr) minmax(0, 2.85fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin: 1.15rem 0 0;
  color: #9aa7b8;
  font-size: 0.95rem;
  max-width: 36ch;
  line-height: 1.75;
}

.footer-brand__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.footer-brand__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c5d0dc;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-logo {
  display: inline-flex;
  border-radius: var(--radius-sm);
}

.footer-logo img {
  width: 168px;
  height: auto;
  transition: opacity var(--transition);
}

.footer-logo:hover img {
  opacity: 0.9;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d5e0eb;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social__link:hover {
  background: rgba(1, 112, 185, 0.2);
  border-color: rgba(1, 112, 185, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem) 1.25rem;
}

.footer-col h3 {
  position: relative;
  color: #fff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  font-weight: 800;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

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

.footer-col li {
  margin-bottom: 0.72rem;
}

.footer-col a {
  display: inline-block;
  color: #9aa7b8;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding: 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

a.footer-contact-item:hover {
  background: rgba(1, 112, 185, 0.12);
}

.footer-contact-item__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(1, 112, 185, 0.16);
  color: #9fd0f0;
  border: 1px solid rgba(159, 208, 240, 0.18);
}

.footer-contact-item__icon svg {
  width: 16px;
  height: 16px;
}

.footer-contact-item__body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
  font-style: normal;
}

.footer-contact-item__label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8ea0;
}

.footer-contact-item__value {
  color: #e8eef5;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-contact-item--email .footer-contact-item__value {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.footer-contact-item--address .footer-contact-item__value {
  font-weight: 500;
  color: #c5d0dc;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  margin: 0;
  padding: 1.35rem 0 1.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #8090a3;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.footer-legal a {
  color: #8090a3;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #9fd0f0;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-brand p {
    max-width: 48ch;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 820px) {
  .footer-contact-band {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .footer-contact-item {
    padding: 0.95rem 1rem;
    justify-content: center;
    text-align: center;
  }

  .footer-contact-item__body {
    justify-items: center;
  }

  .footer-contact-item--email .footer-contact-item__value {
    font-size: 0.7rem;
    letter-spacing: 0;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .footer-shell {
    padding-top: 2.75rem;
    width: min(100% - 1.5rem, 1240px);
  }

  .footer-main {
    text-align: center;
    justify-items: stretch;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
  }

  .footer-brand__meta,
  .footer-social {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.15rem;
    width: 100%;
    text-align: center;
  }

  .footer-col {
    text-align: center;
    min-width: 0;
  }

  .footer-col--empresa {
    order: 1;
  }

  .footer-col--recursos {
    order: 2;
  }

  .footer-col--productos {
    order: 3;
  }

  .footer-col--servicios {
    order: 4;
  }

  .footer-col h3 {
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    font-size: 0.7rem;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col li {
    margin-bottom: 0.55rem;
  }

  .footer-col a {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .footer-col a:hover {
    transform: none;
  }

  .footer-contact-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.85rem 0.65rem;
    margin-top: 1.35rem;
    text-align: center;
  }

  .footer-contact-item--email {
    order: 1;
  }

  .footer-contact-item--phone {
    order: 2;
  }

  .footer-contact-item--address {
    order: 3;
    grid-column: auto;
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    padding: 0.35rem 0.4rem;
    background: transparent;
  }

  .footer-contact-item__icon,
  .footer-contact-item__label {
    display: none;
  }

  .footer-contact-item__body {
    justify-items: center;
    width: 100%;
    gap: 0;
  }

  .footer-contact-item__value {
    font-size: 0.88rem;
    font-weight: 600;
  }

  .footer-contact-item--email .footer-contact-item__value {
    font-size: 0.8rem;
    letter-spacing: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .footer-contact-item--address .footer-contact-item__value {
    font-size: 0.82rem;
    font-weight: 500;
    color: #c5d0dc;
    line-height: 1.5;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 1.15rem 0 1.35rem;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    max-width: 36rem;
  }

  .footer-legal a {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    font-size: 0.74rem;
  }
}

/* —— WhatsApp / Habla con nosotros —— */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + 15px);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #08111f;
  color: #fff;
  box-shadow:
    0 12px 32px rgba(8, 17, 31, 0.35),
    0 0 0 1px rgba(1, 112, 185, 0.12);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.whatsapp-float:hover {
  color: #fff;
  background: #0b1628;
  border-color: rgba(159, 208, 240, 0.28);
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(8, 17, 31, 0.42),
    0 0 0 1px rgba(1, 112, 185, 0.22);
}

.whatsapp-float:focus-visible {
  color: #fff;
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
}

.whatsapp-float__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.whatsapp-float__label {
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
}

.whatsapp-float:hover .whatsapp-float__label {
  color: #fff;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 15px);
    min-height: 44px;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }

  .whatsapp-float__icon svg {
    width: 20px;
    height: 20px;
  }

  .whatsapp-float__label {
    max-width: 9.5ch;
    white-space: normal;
    line-height: 1.15;
    text-align: left;
  }
}

/* —— Shared section helpers (base: home) —— */
.section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--title-size);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-heading);
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: var(--lead-size);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(1, 112, 185, 0.22);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(1, 112, 185, 0.3);
}

.btn-primary:focus-visible {
  color: var(--color-white);
  box-shadow: var(--focus-ring), 0 8px 20px rgba(1, 112, 185, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--color-white);
}

.btn-ghost-dark {
  background: transparent;
  border-color: rgba(13, 27, 42, 0.16);
  color: var(--color-heading);
}

.btn-ghost-dark:hover {
  border-color: rgba(13, 27, 42, 0.3);
  color: var(--color-heading);
  background: rgba(13, 27, 42, 0.04);
}

.btn-ghost-dark:focus-visible {
  color: var(--color-heading);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head .section-title {
  margin-bottom: 0.75rem;
}

.section-head .section-lead {
  margin-bottom: 0;
}

.section-lead.light {
  color: var(--color-on-dark-muted);
}

/* —— Mobile nav —— */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    --nav-pad-x: 1rem;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100vw, 392px);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background:
      radial-gradient(circle at 88% 0%, rgba(1, 112, 185, 0.26), transparent 42%),
      linear-gradient(180deg, #08131f 0%, #0b1829 48%, #101f35 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding:
      calc(var(--header-height) + 0.75rem)
      max(var(--nav-pad-x), env(safe-area-inset-right))
      0
      max(var(--nav-pad-x), env(safe-area-inset-left, var(--nav-pad-x)));
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    z-index: 1001;
    box-shadow: -28px 0 64px rgba(0, 0, 0, 0.48);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 0;
    background: transparent;
    border: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .nav-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-list > li:last-child {
    border-bottom: 0;
  }

  .nav-list > li > a {
    position: relative;
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: left;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 0;
  }

  .nav-list > li > a::after {
    display: none;
  }

  .nav-list > li > a.is-active,
  .nav-list > li > a:hover {
    background: transparent;
    color: #fff;
  }

  .nav-list > li > a.is-active {
    color: #7ec4ea;
  }

  .has-submenu {
    position: static;
    overflow: visible;
  }

  .has-submenu > a {
    justify-content: space-between;
    gap: 0.75rem;
    padding-right: 0.2rem;
  }

  .has-submenu > a > span {
    flex: 1 1 auto;
    text-align: left;
  }

  .has-submenu > a .nav-caret {
    position: static;
    flex-shrink: 0;
    margin-left: 0;
    width: 12px;
    height: 12px;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .has-submenu:hover > a .nav-caret,
  .has-submenu:focus-within > a .nav-caret {
    transform: none;
  }

  .has-submenu.is-open > a .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
  }

  .has-submenu.is-open > a,
  .has-submenu:hover > a {
    background: transparent;
    color: #fff;
  }

  /* Accordion móvil: anula el mega-menú flotante de desktop */
  .submenu,
  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu,
  .has-submenu.is-open > .submenu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 0.85rem;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transform-origin: top left;
    transition: none;
    display: none;
  }

  .submenu::before {
    display: none !important;
    content: none;
  }

  .has-submenu.is-open > .submenu {
    display: block !important;
  }

  .submenu--mega .submenu-panel {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    margin: 0;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(180deg, rgba(1, 112, 185, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: none;
    overflow: hidden;
    text-align: left;
  }

  .submenu-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.9rem 0.95rem 0.85rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    background: transparent;
  }

  .submenu-kicker {
    margin: 0 0 0.2rem;
  }

  .submenu-title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
  }

  .submenu-lead {
    margin: 0 0 0.7rem;
    max-width: none;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .submenu-cta {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    border-radius: 9px;
    box-sizing: border-box;
  }

  .submenu-cta:hover {
    transform: none;
  }

  .submenu-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    width: 100%;
  }

  .submenu-grid > li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .submenu-grid > li:last-child {
    border-bottom: 0;
  }

  .submenu-item {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-align: left;
    transform: none !important;
    box-sizing: border-box;
  }

  .submenu-item:hover,
  .submenu-item.is-active,
  .submenu-item:focus-visible {
    transform: none !important;
    background: rgba(1, 112, 185, 0.16);
    border-color: rgba(1, 112, 185, 0.22);
  }

  .submenu-item__icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .submenu-item__icon svg {
    width: 16px;
    height: 16px;
  }

  .submenu-item__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
    width: auto;
  }

  .submenu-item__title {
    display: block;
    width: 100%;
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .submenu-item__desc {
    display: -webkit-box;
    width: 100%;
    font-size: 0.7rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn-header {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    min-height: 52px;
    padding: 0.9rem 1.1rem;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(1, 112, 185, 0.32);
  }

  .site-nav > .btn-header {
    margin: 0.75rem 0 max(0.85rem, env(safe-area-inset-bottom));
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    z-index: 1002;
  }

  body.nav-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
  }

  :root {
    --header-height: 68px;
  }

  .site-logo img {
    width: 136px;
  }

  .header-inner {
    width: min(100% - 1.25rem, var(--container));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .site-nav {
    --nav-pad-x: 0.9rem;
    width: 100vw;
    border-left: 0;
  }

  .submenu-item__desc {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .submenu {
    width: min(100%, 520px);
  }

  .submenu--mega .submenu-panel {
    grid-template-columns: 1fr;
  }

  .submenu-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.15rem 1.2rem 1rem;
  }

  .submenu-lead {
    margin-bottom: 0.85rem;
  }

  .submenu-grid {
    grid-template-columns: 1fr;
    padding: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
