/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cyan:    #00b4d8;
  --cyan-dk: #0077a8;
  --dark:    #111827;
  --gray:    #f3f4f6;
  --mid:     #6b7280;
  --white:   #ffffff;
  --radius:  12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

/* ===== UTILS ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.label--light { color: rgba(255,255,255,0.7); }

.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--gray  { background: var(--gray); }
.section--cyan  { background: var(--cyan); color: var(--white); }

.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 16px; line-height: 1.15; }
.section__title--dark { color: var(--dark); }
.section__subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 660px; margin-bottom: 56px; }
.section__subtitle--dark { color: var(--mid); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn--primary { background: var(--cyan); color: var(--white); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-weight: 900; font-size: 1.1rem; color: var(--white);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.15s; }
.nav nav a:hover { color: var(--cyan); }

/* ===== BURGER BUTTON ===== */
.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav__burger:hover { background: rgba(255,255,255,0.08); }
.nav__burger span {
  display: block; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}
/* X cuando está abierto */
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,216,0.15) 0%, rgba(0,0,0,0.82) 60%);
}
.hero__content {
  position: relative; z-index: 1;
  padding-top: 96px;
}
.hero__tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900; line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  max-width: 580px; margin-bottom: 40px;
}

/* ===== TWO COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 24px;
}
.two-col__text p { color: var(--mid); margin-bottom: 16px; }

.stat-card {
  background: var(--dark); border-radius: var(--radius);
  padding: 40px 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.stat-card__num {
  display: block; font-size: 2.4rem; font-weight: 900; color: var(--cyan); line-height: 1;
}
.stat-card__desc {
  display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 6px;
}

/* ===== OBJECTIVES ===== */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.obj-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background 0.2s;
}
.obj-card:hover { background: rgba(255,255,255,0.09); }
.obj-card__icon { font-size: 2rem; margin-bottom: 16px; }
.obj-card h3 { font-size: 1rem; font-weight: 700; color: var(--cyan); margin-bottom: 12px; }
.obj-card p  { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

.areas-banner { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 40px; }
.areas-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.areas-tags span {
  background: rgba(0,180,216,0.18);
  border: 1px solid rgba(0,180,216,0.35);
  color: var(--cyan);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

.timeline__marker {
  display: flex; flex-direction: column; align-items: flex-end;
  padding-top: 28px;
}
.timeline__marker::after {
  content: '';
  display: block; width: 2px; flex: 1;
  background: var(--gray);
  margin-top: 12px; min-height: 40px;
}
.timeline__year {
  background: var(--cyan); color: var(--white);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: 100px;
  text-align: center;
}

.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.card h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.card h4 { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.25; }
.card p  { color: var(--mid); margin-bottom: 14px; font-size: 0.95rem; }
.card ul { padding-left: 20px; color: var(--mid); font-size: 0.95rem; }
.card ul li { margin-bottom: 6px; }
.card blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 20px;
  background: var(--gray);
  border-radius: 0 6px 6px 0;
  font-style: italic; font-size: 0.9rem; color: var(--mid);
  margin-top: 20px;
}

/* ===== GOVERNANCE ===== */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.gov-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 28px 24px;
}
.gov-card h3 { font-size: 1rem; font-weight: 800; color: var(--cyan); margin-bottom: 10px; }
.gov-card p  { font-size: 0.9rem; color: var(--mid); }

.governance-note {
  font-size: 0.88rem; color: var(--mid);
  background: var(--white); border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 20px 24px;
}

/* ===== CONTACT ===== */
.section--cyan h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.section--cyan p  { font-size: 1.05rem; margin-bottom: 40px; opacity: 0.9; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,0.15); border-radius: var(--radius);
  padding: 20px 24px;
}
.contact-info__icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-info__item div { display: flex; flex-direction: column; }
.contact-info__item strong { font-weight: 700; }
.contact-info__item span  { opacity: 0.85; font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
  background: #0a0e18;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer strong { color: rgba(255,255,255,0.8); }

/* ===== HERO BG IMAGE ===== */
.hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ===== TEAM PHOTO ===== */
.team-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.team-photo {
  width: 100%; display: block;
  height: 280px; object-fit: cover;
  object-position: center 30%;
}
.stat-card--overlay {
  background: var(--dark);
  padding: 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  grid-template-columns: repeat(4, 1fr);
}
.stat-card--overlay .stat-card__num { font-size: 1.6rem; }
.stat-card--overlay .stat-card__desc { font-size: 0.75rem; }

/* ===== PHOTO GRIDS ===== */
.photo-grid {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.photo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid--3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid--4 { grid-template-columns: repeat(4, 1fr); }

.photo-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  background: var(--gray);
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.95);
}
.photo-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox--open { display: flex; }

.lightbox__img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
  opacity: 0.7; transition: opacity 0.15s;
  padding: 4px 10px;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  font-size: 3rem; line-height: 1; cursor: pointer;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 600;
  background: rgba(0,0,0,0.4); padding: 4px 14px; border-radius: 100px;
}

.lightbox__img--in {
  animation: lb-in 0.2s ease;
}

/* ===== FOTO STRIP ===== */
.foto-strip {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}
.foto-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* hero: mitad derecha, centro vertical */
  .hero { background-position: 75% 50%; background-size: 350%; }

  /* burger visible */
  .nav__burger { display: flex; }

  /* menú colapsado por defecto */
  .nav nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav nav.nav-menu--open {
    max-height: 300px;
    padding: 12px 0 20px;
  }
  .nav nav a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav nav a:last-child { border-bottom: none; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .stat-card { grid-template-columns: 1fr 1fr; }
  .stat-card--overlay { grid-template-columns: 1fr 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 12px; }
  .timeline__marker { flex-direction: row; align-items: center; padding-top: 0; }
  .timeline__marker::after { display: none; }
  .hide-sm { display: none; }
  .photo-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .team-photo { height: 220px; }
}
