/* Grupo Eng S.A. — reconstrucción estática */

:root {
  --white: #ffffff;
  --dark: #2e2f2d;
  --gray-band: #cccccc;
  --navy: #2a3f6c;
  --purple: #5053b4;
  --blue: #1d67cd;
  --blue-strong: #0840d6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Electrolize', Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--blue-strong);
  color: var(--blue-strong);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .logo { order: 1; }
  .nav-toggle { display: block; order: 2; }
  .nav-links {
    order: 3;
    display: none;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #eee;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid #f0f0f0; }
  .nav-links a { display: block; padding: 14px 24px; }
}

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

.hero {
  position: relative;
  height: 62vh;
  min-height: 360px;
  max-height: 640px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* page title banner (Proyectos / Novedades) */
.page-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.page-banner.tint-blue img { filter: brightness(0.4) saturate(1.3) hue-rotate(195deg); }
.page-banner h1 {
  position: relative;
  color: var(--white);
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Quienes somos ---------- */

.quienes {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  max-width: var(--max-width);
  margin: 0 auto;
}
.quienes-card {
  background: var(--dark);
  color: var(--white);
  padding: 56px 40px;
  display: flex;
  align-items: center;
}
.quienes-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  position: relative;
}
.quienes-card h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--white);
  margin-top: 18px;
}
.quienes-text {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.play-cta {
  align-self: flex-end;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.play-cta svg { fill: currentColor; width: 24px; height: 24px; }
.play-cta:hover { background: var(--blue-strong); }

@media (max-width: 760px) {
  .quienes { grid-template-columns: 1fr; }
}

/* ---------- quote band ---------- */

.quote-band {
  background: var(--gray-band);
  padding: 48px 24px;
  text-align: center;
}
.quote-band p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--white);
  font-family: 'Electrolize', Arial, sans-serif;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ---------- stats ---------- */

.stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 56px 24px;
  flex-wrap: wrap;
  text-align: center;
}
.stats .stat strong {
  display: block;
  font-family: 'Electrolize', Arial, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
}
.stats .stat span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- antartida banner ---------- */

.antartida {
  position: relative;
  background: var(--navy);
  color: var(--white);
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.antartida-text {
  padding: 40px;
  position: relative;
  z-index: 2;
}
.antartida-text h2 {
  font-size: clamp(36px, 7vw, 72px);
  font-style: italic;
}
.antartida-photo {
  position: relative;
  height: 100%;
  min-height: 320px;
}
.antartida-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.antartida-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--purple);
  color: var(--white);
  writing-mode: vertical-rl;
  padding: 18px 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .antartida { grid-template-columns: 1fr; }
}

/* ---------- mundo / categorias ---------- */

.mundo {
  text-align: center;
  padding: 56px 24px 24px;
}
.mundo img { margin: 0 auto 16px; width: 72px; height: 72px; }
.mundo p { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }

.categorias {
  max-width: 560px;
  margin: 24px auto 64px;
  padding: 0 24px;
  position: relative;
}
.categorias::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--blue);
  opacity: 0.4;
}
.categoria {
  display: grid;
  grid-template-columns: 46px auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.categoria .cat-icon {
  width: 46px;
  height: 46px;
}
.categoria .num {
  font-family: 'Electrolize', Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
}
.categoria .label {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  padding-bottom: 2px;
}

/* ---------- certificacion ---------- */

.cert {
  background: var(--dark);
  color: var(--white);
  padding: 56px 24px;
}
.cert .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cert h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.cert p { font-size: 14px; line-height: 1.7; color: #d8d8d8; max-width: 620px; }
.cert img { max-height: 220px; width: auto; border-radius: 4px; }
@media (max-width: 760px) {
  .cert .container { grid-template-columns: 1fr; text-align: center; }
  .cert img { margin: 0 auto; }
}

/* ---------- divider ---------- */
.divider {
  height: 110px;
  background: var(--blue-strong);
}

/* ---------- galeria ---------- */

.gallery-intro { text-align: center; padding: 48px 24px 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 0 24px;
}
.gallery button {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  cursor: zoom-in;
  overflow: hidden;
  background: #eee;
}
.gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery button:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ---------- novedades: featured video ---------- */

.featured-video {
  display: flex;
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
  gap: 0;
}
.featured-video .thumb {
  position: relative;
  flex: 0 0 320px;
  cursor: pointer;
}
.featured-video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-video .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-video .play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--white);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.featured-video .info {
  background: var(--dark);
  color: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 36px;
}
.featured-video .info h2 { font-size: 22px; margin-bottom: 10px; }
.featured-video .info p { font-size: 14px; line-height: 1.6; color: #d8d8d8; margin: 0; }
@media (max-width: 700px) {
  .featured-video { flex-direction: column; }
  .featured-video .thumb { flex-basis: 220px; }
}

.videos-section { max-width: var(--max-width); margin: 40px auto; padding: 0 24px; }
.videos-section .heading { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.videos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card { cursor: pointer; }
.video-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-card .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}
.video-card .play-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .play-dot span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--white);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .caption { margin-top: 8px; font-size: 13px; font-weight: 600; }

@media (max-width: 760px) {
  .videos-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .videos-row { grid-template-columns: 1fr; }
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal video { max-width: 92vw; max-height: 88vh; }
.video-modal .lightbox-close { color: var(--white); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 56px 24px 32px;
  margin-top: 40px;
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.footer-heading h3 { font-size: 22px; }
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.social-row a:hover { opacity: 1; }
.social-row img { width: 20px; height: 20px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 32px;
  max-width: 760px;
}
.contact-grid dt { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.contact-grid dd { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.contact-grid dd a:hover { color: var(--blue-strong); }

.footer-badge img { width: 110px; }

.footer-map {
  max-width: var(--max-width);
  margin: 40px auto 0;
}
.footer-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
}
.footer-address {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-badge { margin-top: 12px; }
}
