/* Spotligth — hoja de estilos
   Paleta y tipografía derivadas de la presentación corporativa 2026 */

:root {
  --bg:        #080D18;
  --bg-alt:    #0D1526;
  --surface:   #111C33;
  --line:      #1E2C4A;
  --blue:      #3D6EF7;
  --blue-soft: #7CA0FF;
  --pale:      #C3CEE8;
  --text:      #F2F6FF;
  --muted:     #8A9BBC;

  --wrap: 1140px;
  --pad-y: clamp(76px, 9vw, 136px);
  --radius: 4px;

  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: min(var(--wrap), calc(100% - 44px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- Marca ---------- */

.mark { width: 34px; height: 34px; flex: none; }
.mark .cell { fill: var(--pale); }
.mark .lit { fill: var(--blue); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

/* ---------- Navegación ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 24, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--blue);
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--body);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: #5480FF; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue-soft); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* ---------- Etiquetas y encabezados ---------- */

.eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--blue);
  flex: none;
}

.rule {
  width: 88px;
  height: 3px;
  background: var(--blue);
  border: 0;
  margin: 28px 0 0;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(86vh, 760px);
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("img/hero-site.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,13,24,0.95) 0%, rgba(8,13,24,0.84) 44%, rgba(8,13,24,0.42) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 45%);
}
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  max-width: 15ch;
  margin-top: 26px;
}
.hero__sub {
  margin-top: 30px;
  max-width: 58ch;
  color: var(--pale);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

/* Cabecera de páginas interiores */
.pagehead {
  padding: clamp(72px, 9vw, 118px) 0 clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.pagehead h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-top: 22px;
  max-width: 18ch;
}
.pagehead p {
  margin-top: 24px;
  max-width: 60ch;
  color: var(--muted);
}

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

.section { padding: var(--pad-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(56px, 6vw, 86px) 0; }

.section__head { max-width: 62ch; }
.section__head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin-top: 22px;
}
.section__head p {
  margin-top: 24px;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.42rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 46ch;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* ---------- Rejillas ---------- */

.cols {
  display: grid;
  gap: 34px;
  margin-top: 58px;
}
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* ---------- Tarjetas ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 36px;
  background: linear-gradient(180deg, rgba(17,28,51,0.55), rgba(17,28,51,0.15));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: #2E4470; transform: translateY(-3px); }
.card h3 {
  font-size: 1.24rem;
  margin-top: 20px;
}
.card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.97rem;
}
.card__tag {
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-soft);
  display: block;
  margin-top: 22px;
}

/* Marca de posición: la celda encendida indica el número de servicio */
.pip { width: 30px; height: 30px; }
.pip rect { fill: #24334F; }
.pip rect.on { fill: var(--blue); }

/* ---------- Bloques de servicio ---------- */

.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  padding: clamp(52px, 6vw, 82px) 0;
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc--flip .svc__media { order: -1; }
.svc__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.svc__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.86);
  transition: filter 0.3s ease, transform 0.5s ease;
}
.svc:hover .svc__media img { filter: saturate(1) brightness(1); transform: scale(1.02); }
.svc h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-top: 20px;
}
.svc p {
  margin-top: 20px;
  color: var(--muted);
}

.ticks {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.97rem;
  color: var(--pale);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

/* ---------- Cobertura ---------- */

.states {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--surface);
}
.state strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
}
.state span {
  color: var(--blue-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-top: 10px;
}

/* ---------- Datos de contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 54px;
}
.contact-item {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.contact-item .k {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item .v {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
}
.contact-item a { text-decoration: none; border-bottom: 1px solid var(--blue); }
.contact-item a:hover { color: var(--blue-soft); }

.map {
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(1) invert(0.9) contrast(0.86); }

/* ---------- Cierre ---------- */

.cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  max-width: 20ch;
  margin-inline: auto;
}
.cta p {
  margin-top: 22px;
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
}
.cta .actions { justify-content: center; }

/* ---------- Pie ---------- */

.foot {
  padding: 68px 0 34px;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.foot h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pale);
  margin-bottom: 16px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__tag { margin-top: 18px; max-width: 34ch; }
.foot__bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #64749A;
}

/* ---------- Aparición al hacer scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Adaptación a pantallas menores ---------- */

@media (max-width: 900px) {
  .cols--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 22px 22px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 0; width: 100%; }
  .nav .btn { display: none; }
  .cols--2, .cols--3 { grid-template-columns: 1fr; }
  .states { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: 0; padding: 84px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
