/* ==========================================================================
   Constructora INTEL C&P — hoja de estilos principal
   Sitio estático · sin dependencias externas de CSS
   ========================================================================== */

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

:root {
  /* Marca */
  --teal: #00b6c3;
  --green: #4ac23f;
  --grad: linear-gradient(100deg, #00b6c3 0%, #4ac23f 100%);
  --grad-soft: linear-gradient(160deg, #f7fbfb 0%, #eef7f8 100%);

  /* Azul tech */
  --navy: #06192b;
  --navy-2: #0a2941;
  --navy-3: #0b3350;
  --tech-cyan: #22d3ee;
  --tech-btn: linear-gradient(100deg, #0e7490 0%, #1d4ed8 100%);

  /* Neutros */
  --ink: #0d1b21;
  --text: #4b5b63;
  --muted: #7b8a91;
  --bg: #ffffff;
  --surface: #f4f9fa;
  --surface-2: #e9f3f4;
  --line: #dfeaec;
  --dark: #08171d;
  --dark-2: #0d2229;

  /* Estructura */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --shadow-sm: 0 2px 10px rgba(8, 23, 29, 0.06);
  --shadow: 0 22px 48px -26px rgba(8, 23, 29, 0.35);

  /* Tipografía */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body.is-locked { overflow: hidden; }

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

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

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

::selection { background: rgba(0, 182, 195, 0.25); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

/* -------------------------------- Botones --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn--gradient {
  background: var(--grad);
  color: #05262b;
  box-shadow: 0 14px 26px -16px rgba(0, 182, 195, 0.9);
}
.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px rgba(0, 182, 195, 0.85);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* -------------------------------- Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px -22px rgba(8, 23, 29, 0.55);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 46px; }

.nav { margin-left: auto; }

.nav__list { display: flex; align-items: center; gap: 0.15rem; }

.nav__link {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.845rem;
  font-weight: 600;
  color: #2b3b42;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover { color: #007d87; background: var(--surface); }

.nav__link--cta {
  margin-left: 0.6rem;
  padding: 0.62rem 1.25rem;
  background: linear-gradient(100deg, #0b2a44 0%, #123f5e 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #ffffff;
  box-shadow: 0 12px 24px -16px rgba(14, 116, 144, 0.9);
}
.nav__link--cta:hover {
  color: #ffffff;
  background: linear-gradient(100deg, #0e3450 0%, #17506f 100%);
  border-color: rgba(34, 211, 238, 0.55);
}

.nav__link[aria-current="page"] { color: #007d87; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; grid-area: 1 / 1; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* --------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(580px, 76vh, 760px);
  overflow: hidden;
  background: var(--surface);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 28%,
    rgba(255, 255, 255, 0.55) 44%,
    rgba(255, 255, 255, 0) 60%
  );
}

.hero__slide--1 { background-image: url("../img/hero-1.webp"); }
.hero__slide--2 { background-image: url("../img/hero-2.webp"); }
.hero__slide--3 { background-image: url("../img/hero-3.webp"); }

.hero__slide .container { position: relative; z-index: 1; }

.hero__text { max-width: 520px; padding-block: 4rem; }
.hero__text h2 {
  margin-bottom: 0.55em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero__text p {
  max-width: 44ch;
  margin-bottom: 1.9rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: #3c4d55;
}

.hero__controls {
  position: absolute;
  inset: auto 0 1.6rem;
  z-index: 3;
}
.hero__controls .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.hero__dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 27, 33, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero__dot.is-active { width: 56px; background: var(--grad); }

.hero__arrows { display: flex; gap: 0.5rem; }

.hero__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(13, 27, 33, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__arrow:hover { background: #fff; transform: translateY(-1px); }
.hero__arrow svg { width: 20px; height: 20px; }

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

.section__head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__head h2 { margin-bottom: 0; }

/* --- Nosotros / Objetivos --- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }

.split__text h2 { position: relative; margin-bottom: 1.1em; }
.split__text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45em;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
}

.split__text p { font-size: 1.02rem; }
.split__text p + p { margin-top: 1em; }

.split__media {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-soft);
}
.split__media img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  margin-inline: auto;
}
.split:nth-child(even) .split__media { order: -1; }

.checklist li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--grad);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.52em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* --- Servicios --- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #c8e7e9;
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 1.45rem 1.4rem 1.6rem; }
.card__body h3 { margin-bottom: 0.55rem; }
.card__body p { font-size: 0.92rem; line-height: 1.62; }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 66px;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-head);
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: #c8e7e9;
  box-shadow: var(--shadow-sm);
}
.chip img { width: 38px; height: 38px; flex: none; object-fit: contain; }

/* --- CTA --- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  background:
    radial-gradient(900px 380px at 88% 10%, rgba(34, 211, 238, 0.18), transparent 62%),
    linear-gradient(120deg, #06192b 0%, #0a2941 55%, #0b3350 100%);
  color: #ffffff;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 15%, transparent 72%);
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -6%;
  width: 420px;
  height: 420px;
  border: 60px solid rgba(34, 211, 238, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 { margin-bottom: 0.35rem; color: #ffffff; }
.cta p { max-width: 62ch; margin: 0; color: rgba(255, 255, 255, 0.82); }

.btn--tech {
  background: var(--tech-btn);
  color: #ffffff;
  box-shadow: 0 18px 32px -18px rgba(29, 78, 216, 0.9);
}
.btn--tech:hover {
  transform: translateY(-2px);
  background: linear-gradient(100deg, #0f7f9e 0%, #2563eb 100%);
  box-shadow: 0 22px 38px -16px rgba(29, 78, 216, 0.85);
}

/* --- Clientes --- */
.clients { background: #fff; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 95s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.clients__list { display: flex; gap: 1rem; padding-right: 1rem; }

.client {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 172px;
  min-height: 132px;
  padding: 1rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.client img {
  width: auto;
  max-width: 96px;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.client:hover img { filter: none; opacity: 1; }
.client span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #556a72;
  text-align: center;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Contacto --- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #c2d2d7;
}
.contact::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 182, 195, 0.16), transparent 65%);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__info h2 { color: #fff; }

.contact__list { margin-top: 1.8rem; }
.contact__list li {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: rgba(0, 182, 195, 0.14);
  color: #5cd3dc;
}
.contact__icon svg { width: 21px; height: 21px; }

.contact__list p { margin: 0; color: #e3edef; font-size: 0.98rem; }
.contact__list a { color: #e3edef; transition: color 0.2s ease; }
.contact__list a:hover { color: #7fe0e6; }

.form-card {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.form-card iframe { width: 100% !important; border: 0; }

.form-fallback { padding: 2rem 1rem; color: var(--text); text-align: center; }
.form-fallback a { color: #00737c; font-weight: 700; text-decoration: underline; }

/* --- Footer --- */
.site-footer {
  padding: 2.5rem 0 0;
  background: #050f13;
  color: #8ba0a7;
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
}

.footer__brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 30ch; color: #8ba0a7; }

.footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8298a0;
}

.footer__list li + li { margin-top: 0.55rem; }
.footer__list a { transition: color 0.2s ease; }
.footer__list a:hover { color: #7fe0e6; }

.footer__contact li { display: flex; gap: 0.65rem; }
.footer__contact li + li { margin-top: 0.75rem; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 0.25rem; color: #4fbac4; }
.footer__contact a:hover { color: #7fe0e6; }

.social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #b9cbd0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social a:hover { background: var(--grad); color: #05262b; border-color: transparent; }
.social svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #6b8088;
}
.footer__bottom p { margin: 0; }

/* --- WhatsApp flotante --- */
.wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem 0.7rem 0.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #062b17;
  box-shadow: 0 16px 30px -14px rgba(6, 43, 23, 0.65);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.wa:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -16px rgba(6, 43, 23, 0.6); }
.wa svg { width: 30px; height: 30px; flex: none; }
.wa__text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.83rem;
  font-weight: 700;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease;
}
.wa:hover .wa__text,
.wa:focus-visible .wa__text { max-width: 260px; opacity: 1; }

/* ------------------------------- Galería ---------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(900px 380px at 88% 10%, rgba(34, 211, 238, 0.18), transparent 62%),
    linear-gradient(120deg, #06192b 0%, #0a2941 55%, #0b3350 100%);
  color: #ffffff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 15%, transparent 72%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -60%;
  right: 4%;
  width: 380px;
  height: 380px;
  border: 56px solid rgba(34, 211, 238, 0.14);
  border-radius: 50%;
}
.page-hero h1 { position: relative; z-index: 1; margin: 0; color: #ffffff; font-weight: 800; }

.gallery { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); }

.gallery__grid {
  columns: 4;
  column-gap: 1rem;
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--surface);
  break-inside: avoid;
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  transition: transform 0.55s ease;
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(4, 20, 25, 0.68));
  pointer-events: none;
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.9rem 1rem 0.75rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 3.5rem 1rem;
  background: #041014;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  max-height: 100%;
}
.lightbox__img {
  width: auto;
  max-width: min(1180px, 92vw);
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__caption {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe0e4;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__btn svg { width: 22px; height: 22px; }

.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ------------------------------ Animaciones ------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------- Responsive -------------------------------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { columns: 3; }
}

@media (max-width: 992px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }

  .site-header.nav-open .nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.85rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -30px rgba(8, 23, 29, 0.5);
  }
  .site-header.nav-open .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-header.nav-open .nav__link {
    padding: 0.85rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
  }
  .site-header.nav-open .nav__link--cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split:nth-child(even) .split__media { order: 0; }
  .split__media img { max-height: 340px; }
  .split__text h2::after { bottom: -0.35em; }

  .contact__grid { grid-template-columns: 1fr; }
  .hero__text { max-width: 460px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__slide { background-position: 72% center; }
  .hero__slide::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.93) 44%,
      rgba(255, 255, 255, 0.62) 74%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }
}

@media (max-width: 768px) {
  .hero { min-height: 640px; }
  .hero__text { padding-block: 2.5rem 6rem; }
  .hero__controls { inset: auto 0 1.25rem; }
  .hero__arrows { display: none; }
  .hero__arrow { width: 42px; height: 42px; }

  .cards { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 16 / 10; }

  .chips { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  .gallery__grid { columns: 2; }

  .cta__inner { align-items: flex-start; }
  .cta::after { display: none; }

  .wa { right: 1rem; bottom: 1rem; padding: 0.75rem; }
  .wa__text { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .hero { min-height: 600px; }
  .hero__text h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .hero__dots { gap: 0.35rem; }
  .hero__dot { width: 26px; }
  .hero__dot.is-active { width: 42px; }

  .chips { grid-template-columns: 1fr; }
  .gallery__grid { columns: 1; }
  .lightbox { padding: 4rem 0.75rem 5rem; }
  .lightbox__prev { left: 0.75rem; }
  .lightbox__next { right: 0.75rem; }
  .lightbox__btn { width: 44px; height: 44px; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
