/* ===================================================================
   Muestra TECH 2025 — Hoja de estilos
   Paleta de marca:  celeste #7addf4 · verde #47aa1d · gris #58595b
   Tipografía:       Zilla Slab (≈Rockwell)  ·  Mulish (≈Avenir)
   =================================================================== */

:root {
  --blue: #7addf4;
  --blue-deep: #2bb8e0;
  --green: #47aa1d;
  --green-deep: #3a8c18;
  --gray: #58595b;
  --gray-900: #2b2c2e;
  --ink: #34363a;
  --muted: #6f7378;
  --bg: #ffffff;
  --bg-alt: #f4f8f4;
  --line: #e6eae6;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(40, 50, 45, 0.10);
  --shadow-lg: 0 24px 60px rgba(40, 50, 45, 0.18);
  --maxw: 1160px;

  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--slab); line-height: 1.1; margin: 0; }

::selection { background: var(--blue); color: #06323d; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(71, 170, 29, .32);
}
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.4rem;
}
.nav__brand img { height: 42px; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-weight: 600; font-size: 0.96rem; color: var(--gray);
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--green); transition: width .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--gray); border-radius: 3px; transition: .25s; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0d2b33 0%, #15414b 45%, #1c5b52 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 7rem) 1.4rem 5rem;
  text-align: center;
}
.hero__circuit {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(122,221,244,.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(71,170,29,.20), transparent 42%);
  pointer-events: none;
}
/* sutil patrón de circuito */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image:
    linear-gradient(rgba(122,221,244,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,221,244,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero__logo {
  width: clamp(200px, 30vw, 300px); margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.4));
}
.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;
}
.hero__kicker {
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 700;
  color: var(--blue); margin: 0 0 .6rem;
}
.hero__edition {
  display: inline-block; margin: 1rem 0 0;
  padding: .4rem 1.1rem; border-radius: 999px;
  background: rgba(122,221,244,.14); border: 1px solid rgba(122,221,244,.45);
  color: var(--blue); font-weight: 700; letter-spacing: 1.5px;
  font-size: .82rem; text-transform: uppercase;
}
.hero__lead {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: #d9e6e3;
  max-width: 620px; margin: 1.1rem auto 2rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0%{opacity:0; top:8px} 40%{opacity:1} 80%{opacity:0; top:22px} 100%{opacity:0} }

/* ===================================================================
   STATS
   =================================================================== */
.stats { background: var(--gray-900); color: #fff; }
.stats__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 2.2rem 1.4rem;
}
.stat { text-align: center; padding: .6rem; border-right: 1px solid rgba(255,255,255,.10); }
.stat:last-child { border-right: none; }
.stat__num {
  display: block; font-family: var(--slab); font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem); color: var(--blue); line-height: 1;
}
.stat__label { font-size: .9rem; color: #c5c8cc; margin-top: .35rem; display: block; }

/* ===================================================================
   SECTIONS
   =================================================================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 1.4rem; }
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2.5px;
  font-size: .78rem; font-weight: 800; color: var(--green); margin-bottom: .7rem;
}
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: var(--gray-900); }
.section__sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.about__text p { font-size: 1.08rem; color: #4a4d52; margin: 0 0 1.2rem; }
.about__text strong { color: var(--gray-900); }
.about__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.acard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.acard__icon {
  grid-row: span 2; font-size: 1.8rem; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, rgba(122,221,244,.25), rgba(71,170,29,.18));
}
.acard h3 { font-size: 1.15rem; color: var(--gray-900); }
.acard p { margin: .2rem 0 0; color: var(--muted); font-size: .96rem; grid-column: 2; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 9px; left: 8%; right: 8%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 3px; z-index: 0;
}
.tl-item { position: relative; z-index: 1; }
.tl-dot {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 4px solid var(--green); margin: 0 auto 1.2rem;
  box-shadow: 0 0 0 4px rgba(71,170,29,.15);
}
.tl-item:first-child .tl-dot { border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(43,184,224,.15); }
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); text-align: center;
}
.tl-year {
  display: inline-block; font-family: var(--slab); font-weight: 700;
  color: var(--green); font-size: 1rem; margin-bottom: .4rem;
}
.tl-item:first-child .tl-year { color: var(--blue-deep); }
.tl-card h3 { font-size: 1.25rem; color: var(--gray-900); margin-bottom: .5rem; }
.tl-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ===================================================================
   GALERÍA
   =================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gtile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow); background: #ddd;
  aspect-ratio: 4 / 3;
}
/* primer tile más grande */
.gtile--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gtile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gtile:hover img { transform: scale(1.06); }
.gtile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,43,51,.82) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s ease;
  display: flex; align-items: flex-end; padding: 1.1rem;
}
.gtile:hover .gtile__overlay { opacity: 1; }
.gtile__cap { color: #fff; font-weight: 600; font-size: .98rem; }
.gtile__zoom {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  background: rgba(255,255,255,.92); border-radius: 50%;
  display: grid; place-items: center; color: var(--gray-900);
  opacity: 0; transform: scale(.8); transition: .25s; font-size: 1.1rem;
}
.gtile:hover .gtile__zoom { opacity: 1; transform: scale(1); }

/* ===================================================================
   PODIO
   =================================================================== */
.podium {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  align-items: end;
}
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; text-align: left;
  padding: 0; font: inherit; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__photo img { transform: scale(1.06); }
.pcard__medal {
  position: absolute; top: 10px; left: 10px; font-size: 1.6rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.pcard__info { padding: 1.1rem 1.2rem 1.3rem; }
.pcard__place {
  display: block; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  font-size: .78rem; color: var(--green);
}
.pcard__team {
  margin: .35rem 0 0; font-size: 1.05rem; color: var(--gray-900);
  font-family: var(--sans); font-weight: 700; line-height: 1.35;
}
/* 1er lugar destaca por sobre el resto */
.pcard--1 { grid-row: span 1; }
.pcard--1 .pcard__place { color: var(--blue-deep); }
.pcard--1 { box-shadow: 0 16px 38px rgba(43,184,224,.22); border-color: rgba(43,184,224,.4); }

/* ===================================================================
   CARRUSEL DE VIDEOS
   =================================================================== */
.vcarousel { max-width: 640px; margin: 0 auto; }
.vcarousel__row {
  display: flex; align-items: center; gap: .8rem;
}
.vcarousel__stage {
  position: relative; flex: 1 1 auto; min-width: 0;
  background: #0d1f23; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5;
}
.vcarousel__stage video,
.vslide__poster {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #0d1f23;
}
.vslide { position: relative; width: 100%; height: 100%; padding: 0; border: none; cursor: pointer; background: none; }
.vslide__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--gray-900);
  display: grid; place-items: center; font-size: 1.6rem; padding-left: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s ease, background .2s ease;
}
.vslide:hover .vslide__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.vcarousel__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem 1rem; font-size: .92rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  text-align: left;
}
.vcarousel__nav {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--gray-900);
  font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vcarousel__nav:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }
.vcarousel__meta {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1rem;
}
.vcarousel__counter { font-size: .85rem; color: var(--muted); font-weight: 600; }
.vcarousel__dots { display: flex; gap: .5rem; }
.vcarousel__dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; border: none;
  background: var(--line); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.vcarousel__dots button.is-active { background: var(--green); transform: scale(1.25); }

/* ===================================================================
   LOGOS (empresas + instituciones)
   =================================================================== */
.logos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem; align-items: stretch;
}
.logo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: grid; place-items: center; min-height: 120px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.logo-card img { max-height: 64px; width: auto; object-fit: contain; filter: saturate(1); }
.logos-grid--inst .logo-card { min-height: 140px; }
.logos-grid--inst .logo-card img { max-height: 84px; }

.empresas__cta {
  text-align: center; margin-top: 2.8rem; padding: 2rem;
  background: #fff; border: 1px dashed var(--green); border-radius: var(--radius);
}
.empresas__cta p { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 600; color: var(--gray-900); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--gray-900); color: #cfd2d6; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.4rem 2rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer__brand img { height: 50px; margin-bottom: .9rem; }
.footer__brand p { max-width: 340px; font-size: .95rem; margin: 0; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { color: #cfd2d6; font-weight: 600; }
.footer__links a:hover { color: var(--blue); }

.footer__social-label {
  display: block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .76rem; font-weight: 800; color: #8a9095; margin-bottom: .8rem;
}
.footer__social-links { display: flex; flex-direction: column; gap: .65rem; }
.footer__social-links a {
  display: flex; align-items: center; gap: .6rem;
  color: #cfd2d6; font-weight: 600; font-size: .95rem;
  transition: color .2s ease, transform .2s ease;
}
.footer__social-links a:hover { color: var(--green); transform: translateX(3px); }
.footer__social-links svg { flex: 0 0 auto; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10); text-align: center;
  padding: 1.2rem; font-size: .85rem; color: #9aa0a6;
}

/* ===================================================================
   LIGHTBOX
   =================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,20,24,.94);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__figure img {
  max-width: 92vw; max-height: 80vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__figure figcaption { color: #cfd6d4; margin-top: .9rem; font-size: .98rem; }
.lightbox__close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer; opacity: .85; transition: .2s;
}
.lightbox__close:hover { opacity: 1; transform: scale(1.1); }
.lightbox__nav {
  background: rgba(255,255,255,.10); border: none; color: #fff;
  font-size: 2.4rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%;
  cursor: pointer; transition: .2s; flex: 0 0 auto;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { margin-right: 1rem; }
.lightbox__nav--next { margin-left: 1rem; }

/* ===================================================================
   ANIMACIÓN AL HACER SCROLL
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; }
  .stat:nth-child(2) { border-right: none; }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { display: none; }
  .gtile--feature { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
  .podium { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links a { padding: .95rem 1.4rem; border-top: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .footer__inner { flex-direction: column; }
  .podium { grid-template-columns: 1fr; }
  .vcarousel__nav { width: 36px; height: 36px; font-size: 1.4rem; }
  .vcarousel__row { gap: .5rem; }
  .vcarousel__stage { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
