:root {
  --ink: #071017;
  --ink-2: #111820;
  --steel: #7e929f;
  --paper: #f5f2ea;
  --white: #ffffff;
  --cyan: #0eb6d8;
  --cyan-soft: #8de9f7;
  --signal: #ef442f;
  --gold: #f1b83b;
  --whatsapp: #25d366;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(7, 16, 23, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 16, 23, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
}

body.is-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 16px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 16, 23, 0.78), rgba(7, 16, 23, 0.18));
  transition: background 220ms ease, min-height 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 66px;
  background: rgba(7, 16, 23, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(14, 182, 216, 0.14);
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

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

.header-whatsapp,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.header-whatsapp {
  background: var(--whatsapp);
  color: #062d17;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.26);
}

.button:hover,
.header-whatsapp:hover,
.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--whatsapp);
  color: #062d17;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.3);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(14, 182, 216, 0.65);
  background: rgba(14, 182, 216, 0.16);
}

.button-large {
  min-height: 56px;
  padding: 0 26px;
  font-size: 1.08rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(680px, 92vh, 920px);
  display: grid;
  align-items: center;
  padding: 130px clamp(18px, 5vw, 72px) 118px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 16, 23, 0.86) 0%, rgba(7, 16, 23, 0.5) 48%, rgba(7, 16, 23, 0.16) 100%),
    linear-gradient(180deg, rgba(7, 16, 23, 0.1), rgba(7, 16, 23, 0.86)),
    url("assets/antenas-1.jpeg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--paper));
  content: "";
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, 0.16) 81px, transparent 82px),
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(255, 255, 255, 0.12) 81px, transparent 82px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
  z-index: -1;
}

.hero-content {
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.7rem, 8.4vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.5;
}

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

.signal-strip {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 24px;
  left: clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.signal-strip span {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  background:
    linear-gradient(115deg, rgba(14, 182, 216, 0.22), rgba(239, 68, 47, 0.1)),
    rgba(7, 16, 23, 0.72);
  backdrop-filter: blur(14px);
}

.intro-section,
.services,
.works,
.facebook-section,
.contact {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: end;
}

.intro-copy h2,
.section-heading h2,
.feature-copy h2,
.facebook-copy h2,
.contact-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(7, 16, 23, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 50px rgba(7, 16, 23, 0.08);
}

.stat strong {
  display: block;
  color: var(--signal);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.02;
  text-wrap: balance;
}

.stat span {
  display: block;
  margin-top: 16px;
  color: rgba(7, 16, 23, 0.66);
  font-weight: 800;
}

.services {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 16, 23, 0.88), rgba(7, 16, 23, 0.94)),
    url("assets/equipos-4.jpeg") center / cover fixed;
}

.section-heading {
  max-width: 900px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 6vw, 70px);
}

.service-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  transition: transform 420ms ease;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card div {
  padding: 24px;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--gold);
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.service-card span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.feature-image {
  position: relative;
}

.feature-image::before {
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 2px solid var(--signal);
  content: "";
  z-index: 0;
}

.feature-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 640px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.feature-copy p:not(.section-kicker),
.facebook-copy p,
.contact-content p {
  max-width: 620px;
  color: rgba(7, 16, 23, 0.68);
  font-size: 1.08rem;
  line-height: 1.72;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

.text-link::after {
  width: 46px;
  height: 2px;
  background: var(--signal);
  content: "";
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 74px;
}

.works {
  background:
    linear-gradient(180deg, rgba(245, 242, 234, 0.94), rgba(245, 242, 234, 0.98)),
    url("assets/equipos-1.jpeg") center / cover no-repeat;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 5vw, 62px);
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--white);
  cursor: pointer;
  background: var(--ink);
  box-shadow: 0 14px 42px rgba(7, 16, 23, 0.18);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 480ms ease, filter 480ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 16, 23, 0.82));
  content: "";
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.14) contrast(1.08);
  transform: scale(1.05);
}

.facebook-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 500px);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 16, 23, 0.93), rgba(17, 24, 32, 0.8)),
    url("assets/equipos-8.jpeg") center / cover fixed;
}

.facebook-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.facebook-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.facebook-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: var(--ink);
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 16, 23, 0.92), rgba(7, 16, 23, 0.52)),
    url("assets/equipos-9.jpeg") center / cover no-repeat;
}

.contact::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(105deg, transparent 0 24px, rgba(14, 182, 216, 0.14) 25px, transparent 27px),
    linear-gradient(180deg, transparent, rgba(239, 68, 47, 0.16));
  content: "";
}

.contact-content {
  max-width: 850px;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #05090d;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--cyan-soft);
  font-weight: 900;
}

.floating-whatsapp {
  position: fixed;
  z-index: 25;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #062d17;
  font-weight: 1000;
  background: var(--whatsapp);
  box-shadow: 0 18px 52px rgba(37, 211, 102, 0.42);
}

.floating-whatsapp::before {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(37, 211, 102, 0.46);
  border-radius: inherit;
  content: "";
  animation: pulse-ring 1800ms ease-out infinite;
}

.lightbox {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 72px clamp(16px, 4vw, 52px);
  background: rgba(7, 16, 23, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-ring {
  0% {
    opacity: 0.72;
    transform: scale(0.82);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-whatsapp {
    display: none;
  }

  .site-header.is-open .site-nav {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(7, 16, 23, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav a {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header.is-open .site-nav a:last-child {
    border-bottom: 0;
  }

  .intro-section,
  .feature-band,
  .facebook-section {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  }

  .service-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 720px;
    padding: 116px 18px 190px;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 4.7rem);
  }

  .hero-actions,
  .hero-actions .button,
  .contact .button {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    right: 18px;
    left: 18px;
  }

  .signal-strip span {
    min-height: 64px;
    font-size: 0.75rem;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: block;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 280px;
  }

  .feature-image::before {
    inset: -12px 12px 12px -12px;
  }

  .facebook-frame iframe {
    height: 560px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 154px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 760px;
  }

  .button {
    min-height: 48px;
    padding: 0 14px;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
