*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #ff3b00;
  --black:  #000;
  --dark:   #0a0a0a;
  --white:  #f3f3f3;
  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--black);
  overflow-x: hidden;
  font-family: var(--fd);
}

/* ─────────────────────────────
   NAV
───────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 68px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 9999;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #000;
}

.logo-text {
  line-height: .85;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text .lb {
  display: block;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .2s;
}

.nav-links a:hover { opacity: .6; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────────────────────────
   HERO + EQUIPO (sección única)
───────────────────────────── */

#main {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding-top: 68px;
}

/* — Banda superior del hero — */
.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 50px 80px 0;
}

.hero-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-meta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #444;
  text-align: right;
}

/* — Tipográfico VN01 — */
.hero-title-wrap {
  padding: 10px 80px 0;
}

.hero-vn {
  font-size: clamp(100px, 20vw, 300px);
  font-weight: 900;
  line-height: .78;
  text-transform: uppercase;
  color: #111;
  letter-spacing: -.02em;
  font-family: var(--fd);
  user-select: none;
}

.hero-vn span { color: var(--orange); }

/* — Línea separadora — */
.hero-divider {
  height: 4px;
  background: var(--orange);
  margin: 36px 80px 0;
}

/* — Grid de cards — */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 3px;
  flex: 1;
}

/* — Card individual — */
.member-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.member-photo-wrap {
  position: relative;
  overflow: hidden;
}

.member-photo-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: grayscale(60%);
  transition: filter .4s ease, transform .5s ease;
}

.member-card:hover .member-photo-wrap img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Fallback sin foto */
.member-initials {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  font-size: clamp(50px, 8vw, 100px);
  font-weight: 900;
  color: #222;
  font-family: var(--fd);
  letter-spacing: -.02em;
  user-select: none;
}

.member-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.28) 55%, transparent 100%);
  transition: background .4s;
}

.member-card:hover .member-overlay {
  background: linear-gradient(to top, rgba(255,59,0,.88) 0%, rgba(0,0,0,.12) 60%, transparent 100%);
}

.member-index {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  color: rgba(255,255,255,.3);
  margin-bottom: 10px;
  transition: color .3s;
}

.member-card:hover .member-index { color: rgba(255,255,255,.75); }

.member-name {
  font-size: clamp(22px, 2.6vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: .88;
  font-family: var(--fd);
}

.member-career {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .3s;
}

.member-card:hover .member-career { color: rgba(255,255,255,.9); }

.member-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}

.member-card:hover .member-link {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────
   FOOTER / DATOS ACADÉMICOS
───────────────────────────── */

footer {
  background: var(--orange);
  padding: 56px 80px 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 3px solid rgba(0,0,0,.25);
  padding-bottom: 40px;
  margin-bottom: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col + .footer-col {
  padding-left: 48px;
  border-left: 1px solid rgba(0,0,0,.2);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(0,0,0,.4);
  margin-bottom: 12px;
}

.footer-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 6px;
}

.footer-key {
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(0,0,0,.5);
  min-width: 110px;
}

.footer-val {
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  line-height: 1.3;
}

.footer-members {
  margin-top: 4px;
}

.footer-members .footer-val {
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.footer-uni {
  font-size: clamp(13px, 1.5vw, 19px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  font-style: normal;
  color: #000;
}

.footer-tag {
  font-size: clamp(28px, 5vw, 70px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .82;
  color: rgba(0,0,0,.12);
  font-family: var(--fd);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.footer-disc {
  display: block;
  margin-top: 0;
  font-size: 10px;
  line-height: 1.7;
  text-transform: uppercase;
  opacity: .5;
  max-width: 480px;
}

/* ─────────────────────────────
   RESPONSIVE ≤ 900px
───────────────────────────── */

@media (max-width: 900px) {
  nav { padding: 0 18px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0;
    width: 100%;
    background: var(--orange);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 0;
    z-index: 9998;
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,.15); }
  .nav-links a { display: block; padding: 14px 0; font-size: 20px; }

  .hero-top  { padding: 36px 25px 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-meta { text-align: left; }
  .hero-title-wrap { padding: 8px 25px 0; }
  .hero-divider { margin: 24px 25px 0; }

  .equipo-grid { grid-template-columns: 1fr 1fr; }
  .member-name { font-size: 7vw; }

  footer { padding: 44px 25px 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-col + .footer-col { border-left: none; padding-left: 0; border-top: 1px solid rgba(0,0,0,.2); padding-top: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-key { min-width: 90px; }
}

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