/* Cátedra Sylvia Schmelkes — IBERO 360 application */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ─────────────────────────────────────────────
   TOP NAV (IBERO topbar + brand sub-line)
   ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 0.5px solid var(--gray-200);
}
.topbar-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 16px;
  border-right: 0.5px solid var(--gray-200);
  padding-right: 20px;
}
.brand-logo { height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.4px;
  color: var(--fg-1);
  max-width: 220px;
}
.brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 2px;
}
.topbar-nav {
  display: flex; align-items: center; gap: 28px;
  flex: 1; justify-content: center;
}
.topbar-nav a {
  font: 500 14px/1 var(--font-sans);
  color: var(--fg-1);
  letter-spacing: -0.1px;
  padding: 8px 0;
  position: relative;
  cursor: pointer;
}
.topbar-nav a:hover { color: var(--ibero-rojo-deep); }
.topbar-nav a.active { color: var(--ibero-rojo-deep); }
.topbar-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -28px;
  height: 2px; background: var(--ibero-rojo-deep);
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 48px;
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--gray-50); }
.icon-btn img { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .topbar-nav, .topbar-right .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-name { font-size: 14px; line-height: 17px; max-width: none; }
  .brand-name small { font-size: 9px; }
  .brand { border-right: 0; padding-right: 0; }
}

/* Quick nav (rojo bar, IBERO secondary nav style) */
.quick-nav {
  background: var(--gray-900);
  border-bottom: 0.5px solid var(--gray-200);
}
.quick-nav-row {
  display: flex; gap: 32px; padding: 12px 0;
  overflow-x: auto;
}
.quick-nav-row::-webkit-scrollbar { display: none; }
.quick-nav a {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.quick-nav a.active { color: #fff; }
.quick-nav a.active::after {
  content: ""; display: block;
  margin-top: 8px; height: 2px;
  background: var(--ibero-rojo);
}
.quick-nav a:hover { color: #fff; }

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border: 1px solid transparent;
  font: 500 16px/1 var(--font-sans); letter-spacing: -0.2px;
  cursor: pointer; transition: 0.15s ease;
  border-radius: 0;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ibero-rojo-deep); color: #fff;
  border-color: var(--ibero-rojo-deep);
}
.btn--primary:hover { background: var(--ibero-rojo-700); border-color: var(--ibero-rojo-700); }
.btn--white { background: #fff; color: var(--gray-900); }
.btn--white:hover { background: var(--gray-50); }
.btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--gray-900); }
.btn--outline { background: transparent; color: var(--gray-900); border-color: var(--gray-900); }
.btn--outline:hover { background: var(--gray-900); color: #fff; }
.btn--lg { font-size: 18px; padding: 16px 32px; }
.btn--sm { font-size: 14px; padding: 10px 20px; }

/* ─────────────────────────────────────────────
   HERO (full-bleed image + scrim + display)
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 640px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.65) 100%),
    url('img/header_index_hd.webp') center/cover no-repeat;
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 96px 0 80px;
}
.hero-eyebrow {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 3px; text-transform: uppercase;
  color: #fff;
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 32px;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 2px;
  background: var(--ibero-rojo);
}
.hero-content { max-width: 880px; position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px; line-height: 78px;
  letter-spacing: -3px;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: pretty;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  color: #fff;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 28px; line-height: 36px;
  letter-spacing: -0.8px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 40px;
  max-width: 620px;
}
.hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 0.5px solid rgba(255,255,255,0.3);
  max-width: 720px;
}
.hero-meta-item {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta-item .lbl {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-meta-item .val {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px; line-height: 22px;
  letter-spacing: -0.4px;
  color: #fff;
}

@media (max-width: 768px) {
  .hero { min-height: 520px; padding: 64px 0 56px; }
  .hero-title { font-size: 40px; line-height: 46px; letter-spacing: -1.5px; }
  .hero-subtitle { font-size: 20px; line-height: 26px; }
  .hero-meta { gap: 24px; }
}

/* ─────────────────────────────────────────────
   SECTION SCAFFOLD
   ───────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--soft { background: var(--gray-50); }
.section--dark { background: var(--gray-900); color: #fff; }
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--ibero-rojo-deep);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
}
.section-eyebrow::before {
  content: ""; width: 32px; height: 2px;
  background: var(--ibero-rojo-deep);
}
.section--dark .section-eyebrow { color: var(--accent-naranja); }
.section--dark .section-eyebrow::before { background: var(--accent-naranja); }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 48px; line-height: 56px;
  letter-spacing: -2px;
  margin: 0;
  color: var(--fg-1);
  text-wrap: pretty;
}
.section--dark .section-title { color: #fff; }
.section-sub {
  font: 400 18px/26px var(--font-sans);
  color: var(--fg-2); letter-spacing: -0.2px;
  margin: 20px 0 0; max-width: 640px;
}
.section--dark .section-sub { color: rgba(255,255,255,0.75); }
.section-foot {
  margin-top: 56px; display: flex; justify-content: center;
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 32px; line-height: 38px; letter-spacing: -1px; }
}

/* ─────────────────────────────────────────────
   ABOUT (intro a la cátedra) — editorial 2-col
   ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px;
  align-items: start;
}
.about-grid h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 56px; line-height: 62px; letter-spacing: -2.5px;
  margin: 0;
}
.about-grid h2 em {
  font-style: italic; font-weight: 300;
  color: var(--ibero-rojo-deep);
}
.about-body p {
  font: 400 18px/28px var(--font-sans);
  color: var(--fg-2); letter-spacing: -0.2px;
  margin: 0 0 20px;
}
.about-body p.lead {
  font: 500 20px/30px var(--font-sans);
  color: var(--fg-1);
  border-left: 2px solid var(--ibero-rojo-deep);
  padding-left: 20px;
  margin-bottom: 28px;
}
.about-body .cta-row { margin-top: 32px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid h2 { font-size: 40px; line-height: 46px; letter-spacing: -1.5px; }
}

/* ─────────────────────────────────────────────
   LÍNEAS DE INVESTIGACIÓN (5 cards, hard scrim)
   ───────────────────────────────────────────── */
.lines {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 0.5px solid var(--gray-200);
  border-bottom: 0.5px solid var(--gray-200);
}
.line {
  position: relative;
  aspect-ratio: 3/4;
  border-right: 0.5px solid var(--gray-200);
  background-size: cover; background-position: center;
  cursor: pointer;
  overflow: hidden;
  display: flex;
}
.line:last-child { border-right: 0; }
.line::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.30) 55%,
    rgba(0,0,0,0.85) 100%
  );
  transition: background 0.3s ease;
}
.line:hover::before {
  background: linear-gradient(
    180deg,
    rgba(207,6,34,0.20) 0%,
    rgba(207,6,34,0.45) 55%,
    rgba(0,0,0,0.90) 100%
  );
}
.line-content {
  position: relative; z-index: 1;
  align-self: flex-end;
  width: 100%;
  padding: 28px 24px 24px;
  color: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.line-tag {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 2.5px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
}
.line-tag::before {
  content: ""; width: 18px; height: 2px;
  background: var(--line-color, var(--ibero-rojo));
}
.line h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 28px;
  letter-spacing: -0.6px;
  margin: 0;
  color: #fff;
  text-wrap: balance;
}
.line-arrow {
  font: 500 13px/1 var(--font-sans);
  letter-spacing: 0.5px;
  color: #fff;
  margin-top: 6px;
  opacity: 0; transform: translateY(6px);
  transition: 0.25s ease;
}
.line:hover .line-arrow { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .lines { grid-template-columns: repeat(3, 1fr); }
  .line:nth-child(3) { border-right: 0; }
  .line:nth-child(4), .line:nth-child(5) { border-top: 0.5px solid var(--gray-200); }
}
@media (max-width: 640px) {
  .lines { grid-template-columns: 1fr 1fr; }
  .line { border-right: 0.5px solid var(--gray-200); aspect-ratio: 1; }
  .line:nth-child(2n) { border-right: 0; }
  .line:nth-child(n+3) { border-top: 0.5px solid var(--gray-200); }
  .line h3 { font-size: 20px; line-height: 24px; }
}

/* ─────────────────────────────────────────────
   DOCUMENTOS — cards cuadradas, IBERO style
   ───────────────────────────────────────────── */
.docs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.doc-card {
  background: #fff;
  border: 0.5px solid var(--gray-200);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: 0.2s ease;
}
.doc-card:hover { border-color: var(--gray-900); }
.doc-card-cover {
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}
.doc-card-cover::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.94;
}
.doc-card[data-tone="rojo"] .doc-card-cover::before { background: var(--ibero-rojo-deep); }
.doc-card[data-tone="naranja"] .doc-card-cover::before { background: var(--accent-naranja); }
.doc-card[data-tone="morado"] .doc-card-cover::before { background: var(--accent-morado); }
.doc-card[data-tone="ink"] .doc-card-cover::before { background: var(--gray-900); }
.doc-card-cover svg {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.92);
  width: 56px; height: 56px;
  margin-right: auto;
  margin-bottom: auto;
}
.doc-card-cover .doc-pill {
  position: relative; z-index: 1;
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.doc-card-body {
  padding: 24px; flex: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.doc-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 28px;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--fg-1);
  text-wrap: pretty;
}
.doc-card p {
  font: 400 14px/20px var(--font-sans);
  color: var(--fg-2); margin: 0;
}
.doc-card-meta {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--fg-3);
}
.doc-card-cta {
  margin-top: auto;
  padding: 16px 24px;
  border-top: 0.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-900);
}
.doc-card-cta .arrow { color: var(--ibero-rojo-deep); }

.carousel {
  position: relative;
}
.carousel-controls {
  display: flex; gap: 8px;
  margin-bottom: 32px; justify-content: flex-end;
}
.carousel-controls button {
  width: 48px; height: 48px; border-radius: 48px;
  border: 1px solid var(--gray-200); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: 0.15s ease;
}
.carousel-controls button:hover {
  border-color: var(--gray-900);
  background: var(--gray-900);
  color: #fff;
}
.carousel-controls button:disabled {
  opacity: 0.3; cursor: not-allowed;
}
.carousel-controls button svg { width: 18px; height: 18px; }

@media (max-width: 900px) { .docs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .docs { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────
   DIFUSIÓN — list-style editorial cards
   ───────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
}
.news-card {
  border: 0.5px solid var(--gray-200);
  background: #fff;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: 0.2s ease;
}
.news-card:hover { border-color: var(--gray-900); }
.news-card.is-feature {
  grid-row: span 2;
  border: 0.5px solid var(--gray-200);
}
.news-card-img {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  background-color: var(--gray-100);
}
.news-card.is-feature .news-card-img { aspect-ratio: 4/5; }
.news-card-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.news-card.is-feature .news-card-body { padding: 32px; gap: 14px; }
.news-card-tag {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ibero-rojo-deep);
}
.news-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 28px;
  letter-spacing: -0.5px;
  margin: 0; color: var(--fg-1);
  text-wrap: pretty;
}
.news-card.is-feature h3 {
  font-size: 36px; line-height: 42px; letter-spacing: -1.5px;
}
.news-card p {
  font: 400 14px/22px var(--font-sans);
  color: var(--fg-2); margin: 0;
}
.news-card-meta {
  font: 400 12px/1 var(--font-sans);
  color: var(--fg-3);
  margin-top: auto;
  padding-top: 12px;
  display: flex; align-items: center; gap: 10px;
}
.news-card-meta::before {
  content: ""; width: 16px; height: 1px;
  background: var(--fg-3);
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.is-feature { grid-row: span 1; grid-column: span 2; }
  .news-card.is-feature .news-card-img { aspect-ratio: 16/9; }
  .news-card.is-feature h3 { font-size: 28px; line-height: 34px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.is-feature { grid-column: span 1; }
}

/* ─────────────────────────────────────────────
   VINCULACIONES — dark band, logo strip
   ───────────────────────────────────────────── */
.vinculaciones-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid rgba(255,255,255,0.15);
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}
.vinc {
  padding: 48px 24px;
  border-right: 0.5px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.vinc:last-child { border-right: 0; }
.vinc:hover { background: rgba(255,255,255,0.04); }
.vinc-logo {
  height: 64px;
  display: flex; align-items: center;
  background: #fff;
  padding: 12px 16px;
  align-self: stretch;
  justify-content: center;
}
.vinc-logo img { max-height: 40px; width: auto; }
.vinc-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 18px; line-height: 24px;
  letter-spacing: -0.4px;
  color: #fff; margin: 0;
}
.vinc-arrow {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-naranja);
  margin-top: auto;
}
@media (max-width: 900px) {
  .vinculaciones-grid { grid-template-columns: 1fr 1fr; }
  .vinc:nth-child(2n) { border-right: 0; }
  .vinc:nth-child(n+3) { border-top: 0.5px solid rgba(255,255,255,0.15); }
}

/* ─────────────────────────────────────────────
   CTA banner (full red) + Footer
   ───────────────────────────────────────────── */
.cta-banner {
  background: var(--ibero-rojo-deep); color: #fff;
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}
.cta-banner-row {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  position: relative; z-index: 1;
}
.cta-banner h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 48px; line-height: 54px; letter-spacing: -2px;
  margin: 0; color: #fff; max-width: 720px;
  text-wrap: pretty;
}
.cta-banner p {
  font: 400 18px/26px var(--font-sans);
  color: rgba(255,255,255,0.88);
  margin: 16px 0 0; max-width: 560px;
}
@media (max-width: 800px) {
  .cta-banner { padding: 64px 0; }
  .cta-banner-row { flex-direction: column; align-items: flex-start; }
  .cta-banner h2 { font-size: 32px; line-height: 38px; letter-spacing: -1px; }
}

.footer {
  background: var(--gray-900); color: #fff; padding: 80px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px;
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 380px;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 16px;
}
.footer-logo { height: 36px; }
.footer-brand-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 18px; line-height: 22px;
  letter-spacing: -0.4px;
  color: #fff;
}
.footer-brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px; line-height: 14px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.footer-blurb {
  font: 400 14px/22px var(--font-sans);
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.footer-col h4 {
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col a {
  font: 400 14px/20px var(--font-sans);
  color: #fff; opacity: 0.85; cursor: pointer;
}
.footer-col a:hover { opacity: 1; color: var(--accent-naranja); }
.footer-col p {
  font: 400 14px/20px var(--font-sans);
  color: rgba(255,255,255,0.7);
  margin: 0 0 12px;
}
.footer-col p strong { color: #fff; font-weight: 600; }
.footer-bottom {
  padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font: 400 12px/18px var(--font-sans);
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 40px; height: 40px; border-radius: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.socials a:hover { background: var(--ibero-rojo); }
.socials img { width: 18px; height: 18px; filter: invert(1); }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
