/* =========================================================
   Instituto Vantage — recreación de layout inspirada en
   mcgovern.mit.edu (paleta, tipografía y estructura propias)
   ========================================================= */

:root{
  --navy: #262c34;
  --navy-soft: #333a44;
  --red: #e4495a;
  --red-dark: #b63a48;
  --brand-red: #800404;
  --text: #3e434a;
  --gray-bg: #f4f5f6;
  --white: #ffffff;
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 118px;
  --header-h-nav: 52px;
  --max: 1180px;
  --gutter: 24px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-weight: 200; }
p{ margin: 0 0 1em; }
button{ font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input{ font-family: inherit; }

.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; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 18px; z-index: 999;
}
.skip-link:focus{ left: 12px; top: 12px; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* buttons */
.btn{
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid currentColor;
  transition: background .2s ease, color .2s ease;
}
.btn-outline{ color: #fff; }
.btn-outline:hover{ background: rgba(255,255,255,.15); }
.btn-outline-dark{ color: var(--navy); }
.btn-outline-dark:hover{ background: var(--navy); color: #fff; }
.btn-solid{
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.btn-solid:hover{ background: var(--red-dark); border-color: var(--red-dark); }

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow-light{ color: #f3adb5; }

.link-arrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--red-dark);
  border-bottom: 2px solid transparent;
}
.link-arrow:hover{ border-color: var(--red-dark); }
.link-arrow span{ transition: transform .2s ease; }
.link-arrow:hover span{ transform: translateX(4px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent;
  box-shadow: none;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  background: #14181d;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.header-top-inner{
  display: flex; align-items: center; gap: 20px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo{ display: flex; align-items: center; gap: 12px; color: #fff; margin-right: auto; }
.logo-mark{ height: 32px; width: auto; flex-shrink: 0; }
.logo-text{ display: flex; flex-direction: column; gap: 4px; }
.logo-name{
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--red);
}
.logo-uni{
  font-size: 9px;
  font-weight: 200;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}

.header-utility{ display: none; }
.header-utility a{ font-size: 14px; font-weight: 700; color: #fff; }
.header-utility a:hover{ color: var(--red); }

.header-search{ display: none; align-items: center; border-bottom: 1px solid rgba(255,255,255,.4); }
.header-search input{ border: none; outline: none; padding: 6px 4px; width: 130px; font-size: 14px; background: transparent; color: #fff; }
.header-search input::placeholder{ color: rgba(255,255,255,.6); }
.header-search button{ color: #fff; padding: 4px; }

.login-link{ display: none; font-size: 14px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 8px 14px; }
.login-link:hover{ border-color: var(--red); color: var(--red); }

.partner-logo{ display: none; border-left: 1px solid rgba(255,255,255,.25); padding-left: 16px; align-items: center; }
.partner-logo img{ height: 40px; width: auto; display: block; }

.menu-toggle{
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px; margin-left: auto;
}
.menu-toggle span{ width: 26px; height: 2px; background: #fff; display: block; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle-label{ font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-top: 2px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.primary-nav{
  display: none;
  background: transparent;
}
.primary-nav.open{
  display: block;
  background: #14181d;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.nav-list{ display: flex; flex-direction: column; }
.nav-list > li{ border-top: 1px solid rgba(255,255,255,.08); position: relative; }
.nav-list > li > a{
  display: block; padding: 14px 0; color: #fff; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em;
}
.has-dropdown{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.has-dropdown > a{ flex: 1; }
.dropdown-toggle{
  color: #fff; width: 40px; height: 40px; position: relative; flex-shrink: 0;
}
.dropdown-toggle::before, .dropdown-toggle::after{
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
  transform: translate(-50%,-50%);
}
.dropdown-toggle::before{ width: 12px; height: 2px; }
.dropdown-toggle::after{ width: 2px; height: 12px; transition: transform .2s ease; }
.dropdown-toggle[aria-expanded="true"]::after{ transform: translate(-50%,-50%) rotate(90deg); }

.dropdown{
  display: none;
  width: 100%;
  padding: 4px 0 14px 14px;
}
.dropdown.open{ display: block; }
.dropdown li a{
  display: block; padding: 8px 0; color: rgba(255,255,255,.75); font-size: 14px;
}
.dropdown li a:hover{ color: var(--red); }

@media (min-width: 960px){
  .header-utility{ display: flex; gap: 18px; margin-right: 18px; }
  .header-search{ display: flex; margin-right: 18px; }
  .login-link{ display: inline-block; margin-right: 18px; }
  .partner-logo{ display: inline-flex; align-items: center; }
  .menu-toggle{ display: none; }
  .logo-mark{ height: 42px; }
  .logo-name{ font-size: 11.5px; }
  .logo-uni{ font-size: 11px; }

  .primary-nav{ display: block; }
  .nav-list{ flex-direction: row; justify-content: center; }
  .nav-list > li{ border-top: none; position: static; }
  .nav-list > li > a{ padding: 16px 18px; font-size: 14px; }
  .has-dropdown{ flex-wrap: nowrap; }
  .dropdown-toggle{ display: none; }

  .dropdown{
    display: block;
    position: absolute; top: 100%; left: 0;
    background: var(--navy-soft);
    min-width: 260px;
    padding: 18px 22px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .dropdown-wide{ min-width: 300px; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown{
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .dropdown li a{ padding: 7px 0; white-space: nowrap; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  background: linear-gradient(135deg, #1c2129, var(--navy) 55%, #1a2530);
  color: #fff;
  overflow: hidden;
  padding: 180px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg{ position: absolute; inset: 0; }
.hero-video-layer{ position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.hero-video{
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.hero-video.is-visible{ opacity: 1; }
.hero-overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,17,.85) 0, rgba(10,13,17,.35) 220px, rgba(0,0,0,0) 380px),
    linear-gradient(135deg, rgba(28,33,41,.68), rgba(38,44,52,.5) 55%, rgba(26,37,48,.7));
}
.hero-network{ position: relative; width: 100%; height: 100%; opacity: .8; }
@media (prefers-reduced-motion: reduce){
  .hero-video-layer{ display: none; }
}
.hero-inner{ position: relative; max-width: 760px; }
.hero h1{
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: 26px;
}
.hero-lead{ font-size: 20px; font-weight: 600; max-width: 620px; }
.hero-body{ font-size: 16px; max-width: 620px; color: rgba(255,255,255,.85); }
.hero .btn{ margin-top: 16px; }

.scroll-cue{
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: rgba(255,255,255,.8);
}
.scroll-dot{ animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot{
  0%{ transform: translateY(0); opacity: 1; }
  60%{ transform: translateY(14px); opacity: 0; }
  61%{ transform: translateY(0); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}

/* =========================================================
   MISSION
   ========================================================= */
.mission{ background: var(--red); color: #fff; padding: 80px 0; }
.mission-inner{ max-width: 820px; margin: 0 auto 56px; text-align: center; }
.mission h2{ font-size: clamp(24px, 3.2vw, 34px); font-weight: 300; margin-bottom: 20px; }
.mission h2:not(:first-child){ margin-top: 36px; }
.mission p{ font-size: 18px; color: rgba(255,255,255,.92); margin-bottom: 0; }
.values-grid{ display: grid; gap: 20px; grid-template-columns: 1fr; }
.value-card{
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 22px 24px;
}
.value-card h3{ font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.value-card p{ font-size: 15px; margin: 0; color: rgba(255,255,255,.88); }
@media (min-width: 700px){ .values-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){ .values-grid{ grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   SPOTLIGHT
   ========================================================= */
.spotlight{ padding: 80px 0; }
.spotlight-inner{ display: grid; gap: 40px; align-items: center; }
.spotlight-media img{ border-radius: 4px; aspect-ratio: 1/1; object-fit: cover; }
.spotlight-copy h3{ font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; margin-bottom: 18px; color: var(--navy); }
.spotlight-copy p{ font-size: 16px; }
@media (min-width: 780px){
  .spotlight-inner{ grid-template-columns: 380px 1fr; }
}

/* =========================================================
   FEATURED RESEARCHER
   ========================================================= */
.featured-researcher{ position: relative; color: #fff; padding: 100px 0; overflow: hidden; }
.featured-bg{ position: absolute; inset: 0; }
.featured-bg img{ width: 100%; height: 100%; object-fit: cover; }
.featured-bg::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,24,29,.92) 40%, rgba(20,24,29,.55));
}
.featured-inner{ position: relative; max-width: 620px; }
.featured-inner h3{ font-size: clamp(32px, 5vw, 52px); font-weight: 200; margin-bottom: 18px; }
.featured-lead{ font-size: 19px; font-weight: 600; }
.featured-inner .btn{ margin-top: 18px; }

/* =========================================================
   RESEARCH AREAS
   ========================================================= */
.areas{ background: var(--navy); color: #fff; padding: 84px 0; }
.section-title{ text-align: center; font-size: clamp(24px, 3vw, 32px); font-weight: 300; margin-bottom: 50px; }
.section-title-dark{ color: var(--navy); }
.areas-grid{ display: grid; gap: 46px; }
.areas-col h3{
  font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  color: var(--red); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.15);
}
.pill-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a, .pill-list span{
  display: inline-block; padding: 9px 16px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; font-size: 14px; transition: background .2s ease, border-color .2s ease;
}
.pill-list a:hover{ background: var(--red); border-color: var(--red); }
.pill-list span{ color: rgba(255,255,255,.8); }
.areas-cta{ text-align: center; margin-top: 48px; }
@media (min-width: 780px){ .areas-grid{ grid-template-columns: 1fr 1fr; } }

/* =========================================================
   NEWS
   ========================================================= */
.news{ background: var(--gray-bg); padding: 84px 0; }
.news-grid{ display: grid; gap: 30px; }
.news-card{ background: #fff; box-shadow: 0 4px 18px rgba(38,44,52,.08); }
.news-media img{ aspect-ratio: 1/1; object-fit: cover; }
.news-body{ padding: 22px; }
.news-date{ font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--red-dark); font-weight: 700; margin-bottom: 8px; }
.news-body h3{ font-size: 18px; font-weight: 700; line-height: 1.35; }
.news-body h3 a:hover{ color: var(--red-dark); }
@media (min-width: 700px){ .news-grid{ grid-template-columns: repeat(3, 1fr); } }

.links-grid{ display: grid; gap: 16px; grid-template-columns: 1fr; }
.link-card{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; padding: 20px 24px; font-weight: 700; font-size: 15px;
  color: var(--navy); box-shadow: 0 4px 18px rgba(38,44,52,.08);
  transition: background .2s ease, color .2s ease;
}
.link-card span{ color: var(--red-dark); flex-shrink: 0; transition: transform .2s ease; }
.link-card:hover{ background: var(--navy); color: #fff; }
.link-card:hover span{ transform: translateX(4px); }
@media (min-width: 700px){ .links-grid{ grid-template-columns: repeat(2, 1fr); } }

.contact-detail{ font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 8px; }
.contact-detail a:hover{ text-decoration: underline; }

/* =========================================================
   NEWSLETTER CTA
   ========================================================= */
.newsletter{ background: var(--red-dark); color: #fff; padding: 60px 0; }
.newsletter-inner{ display: grid; gap: 26px; align-items: center; }
.newsletter h2{ font-size: 26px; font-weight: 300; margin-bottom: 10px; }
.newsletter p{ color: rgba(255,255,255,.85); }
.newsletter-form{ display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.newsletter-form .btn-solid{ background: #fff; color: var(--navy); border-color: #fff; }
.newsletter-form .btn-solid:hover{ background: var(--navy); color: #fff; }
@media (min-width: 780px){ .newsletter-inner{ grid-template-columns: 1fr auto; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: #1b2027; color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-grid{ display: grid; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4{ color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; font-weight: 800; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover{ color: var(--red); }
.footer-about address{ font-style: normal; margin: 18px 0 8px; line-height: 1.6; }
.logo-footer{ margin-bottom: 4px; }
.social-list{ display: flex; flex-direction: row; gap: 14px; margin-bottom: 22px; }
.social-list a{ display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.social-list a:hover{ background: var(--red); border-color: var(--red); color: #fff; }
.newsletter-link{ color: #fff; }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 13px; }
.back-to-top{ border: 1px solid rgba(255,255,255,.3); border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.back-to-top:hover{ background: var(--red); border-color: var(--red); }
@media (min-width: 700px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .scroll-dot{ animation: none; }
  html{ scroll-behavior: auto; }
}
