/* ==========================================================================
   GSDENT · Hoja de estilos principal
   Mobile-first · sin dependencias · optimizada para carga instantánea
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #0062fb;
  --brand-600: #0052d4;
  --brand-700: #0043ad;
  --brand-soft: rgba(0, 98, 251, 0.08);
  --ink: #0a1220;
  --ink-2: #26334a;
  --muted: #5a6a82;
  --line: #e2e9f3;
  --line-strong: #cdd9ea;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-dark: #08101f;
  --ok: #1a8f45;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 32, 0.05);
  --shadow-md: 0 24px 50px -32px rgba(10, 18, 32, 0.38);
  --container: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ---------- 2. Reset y base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.55rem);
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(0, 98, 251, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] {
  scroll-margin-top: 96px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-brand {
  color: var(--brand);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(0, 98, 251, 0.9);
}

.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(0, 98, 251, 0.95);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.btn--light {
  background: #fff;
  color: var(--brand-700);
}

.btn--light:hover {
  background: #eef5ff;
  transform: translateY(-1px);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ---------- 4. Barra superior ---------- */
.topbar {
  background: var(--bg-dark);
  color: #b9c9e0;
  font-size: 0.78rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding-block: 0.35rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8fa4bf;
}

.topbar__item .icon {
  width: 14px;
  height: 14px;
  color: #6d86a7;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d7e3f3;
  transition: color 0.15s;
}

.topbar__links a:hover {
  color: #fff;
}

.topbar__links .icon {
  width: 14px;
  height: 14px;
  color: #7fb0ff;
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }
}

/* ---------- 5. Cabecera y navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    backdrop-filter: saturate(150%) blur(10px);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-block: 0.35rem;
}

.brand img {
  width: auto;
  height: 50px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__box span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: top 0.22s var(--ease), transform 0.22s var(--ease), width 0.22s var(--ease);
}

.nav-toggle__box span:first-child {
  top: 2px;
}

.nav-toggle__box span:last-child {
  top: 10px;
  width: 14px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:first-child {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:last-child {
  top: 6px;
  width: 20px;
  transform: rotate(-45deg);
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2rem) 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 40px -30px rgba(10, 18, 32, 0.45);
}

.site-header.nav-open .nav {
  display: flex;
}

.nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav a:not(.btn) {
  display: block;
  padding: 0.8rem 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.nav a:not(.btn):hover {
  color: var(--brand-700);
}

.nav__cta {
  justify-content: center;
  margin-top: 0.35rem;
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav ul {
    flex-direction: row;
    gap: 1.65rem;
  }

  .nav a:not(.btn) {
    position: relative;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border: 0;
  }

  .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--ease);
  }

  .nav a:not(.btn):hover::after,
  .nav a:not(.btn):focus-visible::after {
    transform: scaleX(1);
  }

  .nav__cta {
    margin-top: 0;
    padding: 0.68rem 1.05rem;
    font-size: 0.86rem;
  }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(0, 98, 251, 0.1), transparent 62%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 68%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
}

.hero__mission {
  margin-top: 1.35rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  color: var(--ink-2);
}

.hero__mission strong {
  color: var(--ink);
}

.hero__sub {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__checks .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
  stroke-width: 2.6;
}

.hero__media {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
}

.hero__frame {
  position: relative;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.hero__frame::before {
  top: -11px;
  right: -11px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  border-top-right-radius: 8px;
}

.hero__frame::after {
  bottom: -11px;
  left: -11px;
  border-bottom: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  border-bottom-left-radius: 8px;
}

.hero__slides {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  touch-action: pan-y;
  background: #eef3fb;
  border-radius: 14px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__controls {
  position: absolute;
  right: 0.9rem;
  bottom: 4.35rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.3rem;
  background: rgba(8, 16, 31, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero__count {
  padding: 0 0.15rem 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.hero__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
}

.hero__dot:hover::after,
.hero__dot.is-active::after {
  background: #fff;
}

.hero__dot.is-active::after {
  transform: scale(1.35);
}

.hero__toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 0.15rem;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__toggle .icon {
  width: 12px;
  height: 12px;
}

.hero__icon-play {
  display: none;
}

.hero__toggle.is-paused .hero__icon-pause {
  display: none;
}

.hero__toggle.is-paused .hero__icon-play {
  display: block;
}

.hero__badge {
  position: absolute;
  left: 0.2rem;
  bottom: 4.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 30px -18px rgba(0, 67, 173, 0.9);
}

.hero__badge strong {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__badge span {
  font-size: 0.64rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__caption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.4rem 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.hero__caption-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  flex: none;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.05rem 1.1rem;
  background: #fff;
}

.trust__item strong {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand-700);
}

.trust__item span {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .trust__item {
    padding: 1.25rem 1.4rem;
  }
}

@media (max-width: 480px) {
  .trust__item {
    padding: 0.9rem 0.75rem;
  }

  .trust__item span {
    font-size: 0.72rem;
  }
}

@media (min-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .hero__slides {
    aspect-ratio: 4 / 5;
  }

  .hero__badge {
    left: -1.1rem;
  }
}

/* ---------- 7. Sectores ---------- */
.sectors {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.sectors__head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.sectors__head h2 {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem);
}

.sectors__head > p {
  max-width: 520px;
  font-size: 0.92rem;
  color: var(--muted);
}

.sectors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.sector {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sector img {
  flex: none;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.sector h3 {
  margin-bottom: 0.1rem;
  font-size: 1rem;
}

.sector p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 640px) {
  .sectors__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .sectors__head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 2rem;
  }

  .sectors__head > p {
    justify-self: end;
    text-align: right;
  }
}

/* ---------- 7. Secciones ---------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

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

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  margin-bottom: 0.9rem;
}

.section__head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- 8. Servicios ---------- */
.hero + .services {
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.service:hover {
  transform: translateY(-4px);
  border-color: #c3d5ef;
  box-shadow: var(--shadow-md);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--brand-700);
  background: var(--brand-soft);
  border-radius: 12px;
}

.service__icon svg {
  width: 25px;
  height: 25px;
}

.service h3 {
  font-size: 1.22rem;
}

.service p {
  font-size: 0.92rem;
  color: var(--muted);
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.service__tags li {
  padding: 0.22rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-700);
}

.service__link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

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

.services__note {
  margin-top: 1.5rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}

.services__note a {
  font-weight: 700;
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service {
    padding: 1.7rem;
  }
}

/* ---------- 9. Marcas ---------- */
.brands {
  padding-block: clamp(2.75rem, 5vw, 4rem);
}

.brands__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.brands__head h2 {
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem);
}

.brands__head p {
  max-width: 520px;
  font-size: 0.92rem;
  color: var(--muted);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.brands__grid li {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.brands__grid img {
  width: auto;
  max-width: 100%;
  height: 38px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.92);
  opacity: 0.68;
  transition: filter 0.2s, opacity 0.2s;
}

.brands__grid li:hover img {
  filter: none;
  opacity: 1;
}

@media (min-width: 640px) {
  .brands__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .brands__head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 2rem;
  }

  .brands__head p {
    justify-self: end;
    text-align: right;
  }

  .brands__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- 10. Por qué GSDENT ---------- */
.about__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.about__media {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}

.about__media picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #eef3fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__stamp {
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 30px -18px rgba(8, 16, 31, 0.8);
}

.about__stamp strong {
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about__stamp span {
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9bdd8;
}

.about__copy h2 {
  margin-bottom: 1rem;
}

.about__copy > p:not(.eyebrow) {
  color: var(--muted);
}

.features {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.features li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.features .icon {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--brand);
}

.features h3 {
  margin-bottom: 0.1rem;
  font-size: 1rem;
}

.features p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .about__media {
    margin-inline: 0;
  }
}

/* ---------- 11. Galería ---------- */
.gallery {
  background: var(--bg-soft);
}

.gallery__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.gallery__head h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.5vw, 2.15rem);
}

.gallery__head > p {
  max-width: 540px;
  font-size: 0.92rem;
  color: var(--muted);
}

.gallery__shell {
  position: relative;
}

.gallery__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  touch-action: pan-y;
  background: var(--bg-dark);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.gallery__slides {
  position: absolute;
  inset: 0;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.gallery__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.gallery__slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 58%;
  background: linear-gradient(to top, rgba(8, 16, 31, 0.9), rgba(8, 16, 31, 0));
  pointer-events: none;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__slide figcaption {
  position: absolute;
  left: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.5rem);
  z-index: 2;
  display: grid;
  gap: 0.2rem;
  max-width: 660px;
  color: #fff;
}

.gallery__slide figcaption strong {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gallery__slide figcaption span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #d7e3f3;
}

.gallery__topbar {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.1rem);
  left: clamp(0.75rem, 2vw, 1.1rem);
  right: clamp(0.75rem, 2vw, 1.1rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.gallery__counter {
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(8, 16, 31, 0.62);
  border-radius: 6px;
}

.gallery__toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  background: rgba(8, 16, 31, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gallery__toggle .icon {
  width: 15px;
  height: 15px;
}

.gallery__icon-play {
  display: none;
}

.gallery__toggle.is-paused .gallery__icon-pause {
  display: none;
}

.gallery__toggle.is-paused .gallery__icon-play {
  display: block;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px -12px rgba(8, 16, 31, 0.7);
  transform: translateY(-50%);
  transition: background-color 0.15s, transform 0.15s;
}

.gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.gallery__nav--prev {
  left: 0.75rem;
}

.gallery__nav--next {
  right: 0.75rem;
}

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

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.gallery__thumb {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe7f2;
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb:hover {
  opacity: 1;
}

.gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--brand);
}

@media (min-width: 720px) {
  .gallery__thumbs {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery__head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 2rem;
  }

  .gallery__head > p {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .gallery__slide figcaption span {
    font-size: 0.76rem;
  }

  .gallery__nav {
    width: 40px;
    height: 40px;
  }

  .gallery__thumbs {
    gap: 0.4rem;
  }

  .gallery__thumb {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 12. Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5vw, 4rem);
  color: #fff;
  background: linear-gradient(118deg, var(--brand-700) 0%, var(--brand) 58%, #2f8bff 100%);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 80px 100%;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.cta-band .eyebrow {
  color: #dbe9ff;
  margin-bottom: 0.7rem;
}

.cta-band .eyebrow::before {
  background: #9cc4ff;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.55rem, 1.25rem + 1.7vw, 2.25rem);
}

.cta-band p {
  margin-top: 0.6rem;
  max-width: 58ch;
  color: #e4efff;
  font-size: 0.95rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.35fr auto;
    gap: 3rem;
  }

  .cta-band__actions {
    justify-content: flex-end;
  }
}

/* ---------- 13. Contacto ---------- */
.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.contact__grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.contact__form-wrap {
  padding: clamp(1.25rem, 3vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.contact__form-wrap > h3 {
  font-size: 1.35rem;
}

.contact__form-wrap > p {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 0.9rem;
}

.field-grid + .field-grid {
  margin-top: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}

.req {
  color: var(--brand);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.8rem;
  font-size: 0.93rem;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8d9bb0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 98, 251, 0.14);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.check a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.form__note {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

.form__note a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #f1fbf4;
  border: 1px solid #bfe3c9;
  border-radius: 12px;
  animation: rise 0.35s var(--ease) both;
}

.form-success .icon {
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  color: var(--ok);
}

.form-success strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: #116c34;
}

.form-success p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #245c37;
}

.form-success__again {
  margin-top: 0.85rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  color: var(--brand-700);
  border-color: #bfe3c9;
  background: #fff;
}

.form__error {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.84rem;
  color: #8a1c1c;
  background: #fdf2f2;
  border: 1px solid #f3c7c7;
  border-radius: 8px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__aside {
  display: grid;
  gap: 1rem;
}

.location-card,
.call-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.card-kicker {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.location-card h3,
.call-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.location-card address {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.contact-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.87rem;
  color: var(--ink-2);
  transition: color 0.15s;
}

.contact-list a:hover {
  color: var(--brand-700);
}

.contact-list .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-700);
}

.map-link .icon {
  width: 14px;
  height: 14px;
}

.call-card {
  background: var(--bg-dark);
  border-color: transparent;
  color: #fff;
}

.call-card .card-kicker {
  color: #7fb0ff;
}

.call-card h3 {
  color: #fff;
}

.call-card__phone {
  display: inline-block;
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.55rem, 1.35rem + 1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color 0.15s;
}

.call-card__phone:hover {
  color: #8fbcff;
}

.call-card p:not(.card-kicker) {
  font-size: 0.84rem;
  color: #a9bdd8;
}

@media (min-width: 640px) {
  .field-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .contact__grid {
    grid-template-columns: 1.22fr 0.78fr;
    gap: 1.5rem;
  }

  .contact__aside {
    position: sticky;
    top: 96px;
  }
}

/* ---------- 14. Pie de página ---------- */
.site-footer {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  color: #a9bbd3;
  background: var(--bg-dark);
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand img {
  width: auto;
  height: 46px;
  margin-bottom: 1rem;
}

.footer__brand p {
  max-width: 34ch;
  font-size: 0.86rem;
}

.footer__address {
  margin-top: 0.7rem;
  color: #7f93ae;
}

.site-footer h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #a9bbd3;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #7f93ae;
}

.footer__bottom a {
  color: #c7d6ea;
}

.footer__sanidad {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.footer__sanidad img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
  .footer__sanidad img {
    width: 200px;
  }
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr;
    gap: 2.5rem;
  }
}

/* ---------- 15. Barra móvil ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(10, 18, 32, 0.08);
}

.mobile-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

.mobile-bar__call {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.mobile-bar__cta {
  color: #fff;
  background: var(--brand);
}

.mobile-bar .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .mobile-bar {
    display: grid;
  }

  body.has-mobile-bar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* ---------- 16. Páginas legales ---------- */
.legal-header {
  padding-block: 0.9rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-header img {
  width: auto;
  height: 42px;
}

.legal-header .back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-700);
}

.legal-header .back .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: #fff;
}

.legal__wrap {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(1.9rem, 1.45rem + 2vw, 2.8rem);
}

.legal__updated {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 2rem;
}

.legal__toc a {
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.legal h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 1.3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal h3 {
  margin-top: 1.4rem;
  font-size: 1rem;
}

.legal p,
.legal li {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.legal ul {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}

.legal-footer {
  padding-block: 1.25rem;
  font-size: 0.76rem;
  color: #7f93ae;
  background: var(--bg-dark);
}

.legal-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.legal-footer a {
  color: #c7d6ea;
}

/* ---------- 17. Movimiento reducido ---------- */
@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;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Tema aplicado · Opción B: Azul pizarra
   ========================================================================== */
/* Opción B · Azul pizarra */
:root {
  --bg: #e3e9f1;
  --bg-soft: #d8e1ec;
  --line: #cbd6e4;
  --line-strong: #b7c6da;
  --muted: #52657d;
  --shadow-md: 0 24px 50px -30px rgba(10, 18, 32, 0.48);
}

body {
  background: var(--bg);
}

.site-header {
  background: rgba(238, 243, 249, 0.94);
}

.hero {
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(0, 98, 251, 0.1), transparent 62%),
    linear-gradient(180deg, #dfe8f3 0%, var(--bg) 68%);
}

.hero__slides,
.about__media picture {
  background: #dbe4ef;
}

.trust__item,
.service,
.brands__grid li,
.sector,
.location-card,
.contact__form-wrap,
.services__note {
  background: #f4f7fb;
}

.field input,
.field select,
.field textarea {
  background: #edf3fa;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
}

.contact {
  background: linear-gradient(180deg, var(--bg) 0%, #dde5ef 100%);
}

.legal,
.legal-header {
  background: #f0f4f9;
}

.mobile-bar {
  background: rgba(244, 247, 251, 0.97);
}

.mobile-bar__call {
  background: #f4f7fb;
}

/* ==========================================================================
   Tema Grafito · fondo oscuro suave para descanso visual
   ========================================================================== */
:root {
  --bg: #1b2432;
  --bg-soft: #212d3d;
  --ink: #e9eff8;
  --ink-2: #c9d4e3;
  --muted: #a3b2c6;
  --line: #314156;
  --line-strong: #43566f;
  --brand: #0062fb;
  --brand-600: #0052d4;
  --brand-700: #8abfff;
  --brand-soft: rgba(63, 140, 255, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
}

.text-brand {
  color: #6fa8ff;
}

.topbar {
  background: #101824;
}

.site-header {
  background: rgba(27, 36, 50, 0.94);
  border-color: var(--line);
}

.nav {
  background: #212d3d;
  border-color: var(--line);
}

.nav a:not(.btn) {
  color: var(--ink-2);
  border-color: var(--line);
}

.nav a:not(.btn):hover {
  color: #fff;
}

.nav-toggle {
  background: #232f41;
  border-color: var(--line-strong);
  color: var(--ink);
}

.hero {
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(0, 98, 251, 0.12), transparent 62%),
    linear-gradient(180deg, #202d3e 0%, var(--bg) 68%);
}

.hero::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.hero__mission {
  color: var(--ink-2);
}

.hero__mission strong {
  color: #fff;
}

.hero__sub,
.hero__caption {
  color: var(--muted);
}

.hero__checks {
  color: var(--ink-2);
}

.hero__frame {
  background: #202d3e;
  border-color: var(--line);
}

.hero__slides {
  background: #2a3a50;
}

.hero__slide img,
.about__media img,
.gallery__slide img {
  filter: brightness(0.92);
}

.trust__item,
.service,
.sector,
.location-card,
.contact__form-wrap,
.services__note {
  background: #232f41;
  border-color: var(--line);
}

.trust__item span,
.service p,
.sector p,
.section__head p:not(.eyebrow),
.about__copy > p:not(.eyebrow),
.features p,
.gallery__head > p,
.brands__head p,
.form__note,
.check,
.legal__updated {
  color: var(--muted);
}

.service__tags li {
  background: #1a2534;
  border-color: var(--line);
  color: var(--ink-2);
}

.service:hover {
  border-color: #43566f;
}

.brands__grid li {
  background: #eef2f7;
}

.brands__grid img {
  opacity: 0.82;
}

.sectors {
  background: var(--bg-soft);
  border-color: var(--line);
}

.sector img {
  background: #fff;
  border-radius: 10px;
  padding: 0.2rem;
}

.about__media picture {
  background: #2a3a50;
  border-color: var(--line);
}

.contact {
  background: linear-gradient(180deg, #1b2432 0%, #202c3c 100%);
}

.field label {
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  background: #1a2534;
  color: var(--ink);
  border-color: var(--line-strong);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8fa1b8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #223248;
  border-color: var(--brand);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b2c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.check a,
.map-link {
  color: var(--brand-700);
}

.form-success {
  background: #102a1c;
  border-color: #1e5c3a;
}

.form-success strong {
  color: #8fe2ad;
}

.form-success p {
  color: #b7e6c8;
}

.form-success .icon {
  color: #5fd18a;
}

.form-success__again {
  background: #1a2534;
  color: #8fe2ad;
  border-color: #1e5c3a;
}

.form__error {
  background: #2a1418;
  border-color: #6a2933;
  color: #ffb4b4;
}

.location-card h3 {
  color: var(--ink);
}

.location-card address,
.contact-list a {
  color: var(--ink-2);
}

.call-card {
  background: #101a28;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: #fff;
  border-color: var(--brand);
}

.mobile-bar {
  background: rgba(27, 36, 50, 0.97);
  border-color: var(--line);
}

.mobile-bar__call {
  background: #232f41;
  color: var(--ink);
  border-color: var(--line-strong);
}

.site-footer {
  background: #101a28;
}

.legal,
.legal-header {
  background: var(--bg);
  color: var(--ink);
}

.legal-header {
  border-color: var(--line);
}

.legal h2 {
  border-color: var(--line);
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal__note {
  background: var(--bg-soft);
  color: var(--muted);
}

.legal__toc a {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--brand-700);
}

.legal-footer {
  background: #101a28;
}

/* ---------- 18. Impresión ---------- */
@media print {
  .topbar,
  .site-header,
  .mobile-bar,
  .cta-band,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding-block: 1.5rem;
  }
}
