/* ============================================================
   EHU Investment Club – Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('bbpress.css');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-serif:  'Playfair Display', Georgia, serif;
  --navy-dark:   #0d1b2e;
  --navy:        #16213E;
  --navy-mid:    #1a2d4e;
  --navy-light:  #243554;
  --blue-accent: #2563EB;
  --blue-bright: #3b82f6;
  --blue-light:  #60a5fa;
  --gray-muted:  #AEB8C7;
  --gray-text:   #374151;
  --gray-light:  #6B7280;
  --gray-bg:     #f8f9fa;
  --white:       #ffffff;
  --border:      rgba(174,184,199,0.2);
  --shadow:      0 4px 24px rgba(13,27,46,0.10);
  --shadow-lg:   0 8px 48px rgba(13,27,46,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--gray-text); }

.text-white  { color: var(--white) !important; }
.text-muted  { color: var(--gray-muted) !important; }
.text-navy   { color: var(--navy) !important; }
.text-accent { color: var(--blue-bright) !important; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 120px 0; }
.section--dark { background: var(--navy); }
.section--dark-deep { background: var(--navy-dark); }
.section--gray { background: var(--gray-bg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ── Label / eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--gray-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--blue-bright);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-accent); transform: translateY(-1px); }

.btn--outline-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-mid); transform: translateY(-1px); }

.btn--sm { padding: 9px 20px; font-size: 0.8rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(13,27,46,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: 88px;
  gap: 40px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--navy-mid);
  border: 1px solid rgba(174,184,199,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.logo-mark__ehu {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-mark__line {
  width: 80%;
  height: 1px;
  background: var(--gray-muted);
}
.logo-mark__sub {
  font-size: 0.42rem;
  font-weight: 500;
  color: var(--gray-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text__ehu {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.logo-text__club {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--gray-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.825rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  border-radius: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link svg { width: 12px; height: 12px; opacity: 0.7; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.7);
  border-radius: 5px;
  transition: all 0.15s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.navbar__cta { margin-left: 0; }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-dark);
  padding: 90px 24px 32px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .mobile-sub a {
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--gray-muted);
  border-bottom: none;
}

@media (max-width: 1024px) {
  .navbar__nav, .navbar__cta { display: none !important; }
  .navbar__toggle { display: flex !important; }
}

/* ── Hero ── */
.hero, .hero-home {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero--medium { min-height: 60vh; padding-bottom: 64px; }
.hero--short  { min-height: 48vh; padding-bottom: 56px; }

.hero__bg, .hero-home__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1590283603385-17ffb3a7f29f?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6);
  transform: scale(1.02);
}
.hero__overlay, .hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,46,0.92) 0%,
    rgba(13,27,46,0.72) 50%,
    rgba(13,27,46,0.9) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__content h1 { color: var(--white); max-width: 720px; }
.hero__content p { color: rgba(255,255,255,0.75); max-width: 560px; margin-top: 20px; font-size: 1.05rem; }
.hero__actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Section headers ── */
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-light); max-width: 560px; font-size: 1.05rem; }
.section-header--center p { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card__img { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 24px; }
.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 10px;
}
.card__title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.card__text { font-size: 0.9rem; color: var(--gray-light); margin-bottom: 16px; }
.card__meta { font-size: 0.78rem; color: var(--gray-muted); display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Area cards (Full background image with text overlay) ── */
.area-card, .area-big-card {
  position: relative;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: var(--navy-dark);
}
.area-card:hover, .area-big-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.area-card__img, .area-big-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
  z-index: 1;
}
.area-card:hover .area-card__img, .area-big-card:hover .area-big-card__img {
  transform: scale(1.1);
  opacity: 0.7;
}
.area-card::after, .area-big-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 27, 46, 0.98) 0%,
    rgba(13, 27, 46, 0.78) 55%,
    rgba(13, 27, 46, 0.25) 100%
  );
  z-index: 2;
  transition: opacity 0.3s ease;
}
.area-card__body, .area-big-card__body {
  position: relative;
  z-index: 3;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.area-card__icon, .area-big-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
  font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.area-card__title, .area-big-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.area-card__text, .area-big-card__text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item__number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label { font-size: 0.85rem; color: var(--gray-muted); font-weight: 400; }

/* ── Team member cards ── */
.member-card {
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.member-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.member-card__photo { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.member-card__body { padding: 20px; }
.member-card__name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.member-card__role { font-size: 0.78rem; font-weight: 600; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.member-card__bio { font-size: 0.82rem; color: var(--gray-light); line-height: 1.5; }
.member-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-bright);
}
.member-card__linkedin:hover { color: var(--blue-accent); }

/* ── Event items ── */
.event-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.event-item:last-child { border-bottom: none; }
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 8px;
  min-width: 64px;
}
.event-date__day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date__month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-muted); margin-top: 3px; }
.event-info__tag { font-size: 0.7rem; font-weight: 600; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.event-info__title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.event-info__meta { font-size: 0.8rem; color: var(--gray-light); display: flex; gap: 14px; flex-wrap: wrap; }
.event-info__meta span { display: flex; align-items: center; gap: 4px; }

/* ── Logo grid (partners) ── */
.logo-grid, .logo-grid-main {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.logo-item, .logo-cell, .partner-cell {
  background: rgba(13, 27, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.logo-item:hover, .logo-cell:hover, .partner-cell:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.partner-logo-img, .logo-cell-img {
  max-height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(0.9);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.logo-item:hover .partner-logo-img, 
.logo-cell:hover .logo-cell-img,
.partner-cell:hover .partner-logo-img {
  filter: brightness(0) invert(1);
  opacity: 1;
  transform: scale(1.06);
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1024px) {
  .logo-grid, .logo-grid-main, .partner-logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .logo-grid, .logo-grid-main, .partner-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .logo-grid, .logo-grid-main, .partner-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ── News card ── */
.news-card { border-radius: 8px; overflow: hidden; background: var(--white); border: 1px solid rgba(0,0,0,0.06); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card__img { width: 100%; height: 210px; object-fit: cover; }
.news-card__body { padding: 22px; }
.news-card__category { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 8px; }
.news-card__title { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 10px; }
.news-card__excerpt { font-size: 0.875rem; color: var(--gray-light); margin-bottom: 14px; line-height: 1.55; }
.news-card__meta { font-size: 0.75rem; color: var(--gray-muted); display: flex; justify-content: space-between; }
.news-card__read-more { font-size: 0.8rem; font-weight: 600; color: var(--blue-bright); display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; }
.news-card__read-more:hover { color: var(--blue-accent); }

/* ── CTA Banner ── */
.cta-banner {
  min-height: 380px;
  display: flex;
  align-items: flex-start;
  padding: 96px 0 60px 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: brightness(0.4);
  z-index: 1;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9, 18, 32, 0.94) 0%,
    rgba(9, 18, 32, 0.9) 50%,
    rgba(9, 18, 32, 0.88) 100%
  );
  z-index: 2;
}
.cta-banner > .container {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-banner > .container > span,
.cta-banner > .container > h2,
.cta-banner > .container > p,
.cta-banner > .container > a {
  max-width: 750px;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  max-width: 700px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  font-weight: 700;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.footer > .container:first-of-type {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  padding: 32px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.footer > div:last-of-type {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  padding: 0 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.footer > div:last-of-type .container {
  display: contents;
}

.footer__header {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  margin-bottom: 0;
  padding-bottom: 0;
  grid-column: 1;
}
.footer__upv-logo {
  flex-shrink: 0;
}
.footer__upv-img {
  max-width: 140px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  filter: brightness(0) invert(1);
}
.footer__upv-img:hover {
  opacity: 1;
}
.footer__grid {
  display: contents;
}
.footer__brand {
  flex-shrink: 0;
}
.footer__brand-logo {
  margin-bottom: 20px;
}
.footer__brand-logo .logo-img {
  height: 68px !important;
}
.footer__tagline { font-size: 0.7rem; color: var(--gray-muted); line-height: 1.5; max-width: 150px; margin-bottom: 12px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-muted);
  font-size: 0.7rem;
  transition: all 0.2s;
}
.footer__social a:hover { border-color: var(--blue-bright); color: var(--blue-bright); background: rgba(59,130,246,0.1); }
.footer__col h5 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-muted); margin-bottom: 10px; }
.footer__col {
  grid-column: auto;
}
.footer__col:nth-child(1) { grid-column: 2; }
.footer__col:nth-child(2) { grid-column: 3; }
.footer__col:nth-child(3) { grid-column: 4; }
.footer__col:nth-child(4) { grid-column: 5; text-align: center; }
.footer__col:last-child .footer__upv-logo {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.footer__col ul li { margin-bottom: 6px; }
.footer__col ul a { font-size: 0.75rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__col ul a:hover { color: var(--white); }
.footer__contact-item { display: flex; gap: 8px; margin-bottom: 6px; }
.footer__contact-item i { color: var(--gray-muted); font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }
.footer__contact-item span, .footer__contact-item a { font-size: 0.7rem; color: rgba(255,255,255,0.55); line-height: 1.4; text-decoration: none; transition: color 0.15s; }
.footer__contact-item a:hover { color: var(--white); }
.footer__bottom {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer__bottom p a { color: var(--blue-light); text-decoration: none; font-weight: 500; transition: color 0.15s ease; }
.footer__bottom p a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom-right { display: flex; gap: 24px; }
.footer__bottom-right a { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer__bottom-right a:hover { color: rgba(255,255,255,0.7); }
.footer__sponsor h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-muted); margin-bottom: 18px; }
.footer__sponsor-logos { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__sponsor-img { max-width: 160px; width: 100%; filter: brightness(0) invert(1); opacity: 0.75; }
.footer__sponsor-img:hover { opacity: 1; }
.footer__sponsor-img-white { max-width: 170px; width: 100%; height: auto; opacity: 0.9; transition: opacity 0.2s ease; filter: brightness(0) invert(1); }
.footer__sponsor-img-white:hover { opacity: 1; }

/* ── Split section ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse { }
.split__img { border-radius: 8px; overflow: hidden; }
.split__img img { width: 100%; height: 480px; object-fit: cover; }
.split__content h2 { margin-bottom: 20px; }
.split__content p { color: var(--gray-light); margin-bottom: 18px; }
.split__content .btn { margin-top: 16px; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(174,184,199,0.25);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-bright);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
.timeline-item__year { font-size: 0.7rem; font-weight: 700; color: var(--blue-bright); letter-spacing: 0.12em; margin-bottom: 6px; }
.timeline-item__title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.timeline-item__text { font-size: 0.875rem; color: var(--gray-text); line-height: 1.55; }

/* ── Organigrama ── */
.org-chart { text-align: center; }
.org-node {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}
.org-node__title { font-size: 0.8rem; font-weight: 700; color: var(--white); }
.org-node__name { font-size: 0.72rem; color: var(--gray-muted); margin-top: 2px; }
.org-level { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.org-connector { display: flex; justify-content: center; margin: 12px 0; }
.org-connector--line {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.15);
}

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.825rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--gray-light); margin-top: 5px; }

/* Checkbox / radio */
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.form-check input { width: 17px; height: 17px; accent-color: var(--blue-bright); cursor: pointer; }
.form-check label { font-size: 0.875rem; color: var(--gray-text); cursor: pointer; }

/* Step indicator */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 48px; }
.step { display: flex; align-items: center; gap: 10px; }
.step__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--gray-light);
}
.step.active .step__num { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--white); }
.step.done .step__num { background: var(--navy); border-color: var(--navy); color: var(--white); }
.step__label { font-size: 0.78rem; font-weight: 500; color: var(--gray-light); }
.step.active .step__label { color: var(--navy); font-weight: 700; }
.step-connector { flex: 1; height: 1px; background: rgba(0,0,0,0.1); margin: 0 10px; }

/* ── Calendar ── */
.calendar-widget { background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: 10px; overflow: hidden; }
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: var(--navy);
  color: var(--white);
}
.calendar-header h4 { color: var(--white); font-size: 1rem; }
.calendar-header button { background: none; color: rgba(255,255,255,0.6); font-size: 1rem; padding: 4px 8px; border-radius: 4px; transition: all 0.15s; }
.calendar-header button:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.calendar-days-header { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-days-header span { text-align: center; padding: 10px 0; font-size: 0.72rem; font-weight: 600; color: var(--gray-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.cal-day:hover { background: rgba(59,130,246,0.12); color: var(--blue-bright); }
.cal-day.today { background: var(--blue-bright); color: var(--white); font-weight: 700; }
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dot, var(--blue-bright));
}
.cal-day.today::after { background: var(--white); }
.cal-day.other-month { color: var(--gray-muted); opacity: 0.4; }

/* ── FAQ Accordion ── */
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.07); }
.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.accordion-trigger:hover { color: var(--blue-bright); }
.accordion-trigger i { font-size: 0.85rem; transition: transform 0.25s; color: var(--gray-muted); }
.accordion-trigger.open i { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-body.open { max-height: 500px; }
.accordion-body p { padding: 0 0 20px; color: var(--gray-light); font-size: 0.9rem; line-height: 1.65; }

/* ── Forum ── */
.forum-thread {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.15s;
}
.forum-thread:hover { background: rgba(59,130,246,0.03); margin: 0 -12px; padding: 18px 12px; border-radius: 6px; }
.forum-thread__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.forum-thread__content { flex: 1; min-width: 0; }
.forum-thread__category { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 4px; }
.forum-thread__title { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-thread__meta { font-size: 0.75rem; color: var(--gray-muted); }
.forum-thread__stats { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 48px; }
.forum-thread__stats span { font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.forum-thread__stats small { font-size: 0.65rem; color: var(--gray-muted); text-transform: uppercase; }

/* ── Resource items ── */
.resource-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.resource-item:hover { border-color: var(--blue-bright); box-shadow: 0 4px 16px rgba(59,130,246,0.08); }
.resource-item__icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright);
  font-size: 1rem;
  flex-shrink: 0;
}
.resource-item__name { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.resource-item__type { font-size: 0.75rem; color: var(--gray-muted); margin-top: 2px; }
.resource-item__action { margin-left: auto; color: var(--blue-bright); font-size: 0.9rem; }

/* ── Rankings table ── */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.rank-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.rank-table tr:hover td { background: rgba(255,255,255,0.03); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 700;
}
.rank-badge--1 { background: #d4af37; color: #fff; }
.rank-badge--2 { background: #a8a9ad; color: #fff; }
.rank-badge--3 { background: #cd7f32; color: #fff; }
.rank-badge--n { background: rgba(255,255,255,0.1); color: var(--gray-muted); }
.positive { color: #22c55e; font-weight: 600; }
.negative { color: #ef4444; font-weight: 600; }

/* ── Tag / badge ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.tag--blue { background: rgba(59,130,246,0.1); color: var(--blue-bright); }
.tag--navy { background: rgba(22,33,62,0.08); color: var(--navy); }
.tag--green { background: rgba(34,197,94,0.1); color: #16a34a; }

/* ── Map placeholder ── */
.map-placeholder {
  width: 100%;
  height: 360px;
  background: #e8ecf0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-text);
  transition: all 0.15s;
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── Info box ── */
.info-box {
  padding: 24px;
  background: rgba(37,99,235,0.06);
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}
.info-box p { font-size: 0.9rem; color: var(--navy); line-height: 1.6; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a { font-size: 0.8rem; color: var(--gray-muted); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { font-size: 0.8rem; color: var(--gray-muted); }
.breadcrumb i { font-size: 0.65rem; color: var(--gray-muted); }

/* ── Icon features ── */
.feature-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.09);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-icon--dark { background: rgba(255,255,255,0.08); color: var(--gray-muted); }
.feature-content h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-content p { font-size: 0.875rem; color: var(--gray-light); line-height: 1.55; }

/* ── Process steps ── */
.process-steps { position: relative; }
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
}
.process-step__num {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-step__content h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.process-step__content p { font-size: 0.875rem; color: var(--gray-muted); }

/* ── Photo gallery ── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.photo-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
.photo-gallery img:first-child { grid-column: span 2; height: 404px; }

/* ── Pill navigation (tabs) ── */
.pill-nav { display: flex; gap: 4px; background: rgba(0,0,0,0.05); border-radius: 10px; padding: 4px; margin-bottom: 36px; }
.pill-nav button {
  flex: 1;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: all 0.2s;
}
.pill-nav button.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.1); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer > .container:first-of-type,
  .footer > div:last-of-type { grid-template-columns: repeat(3, 1fr); }
  .footer__header { grid-column: 1 / -1; }
  .footer__col:nth-child(1) { grid-column: 1; }
  .footer__col:nth-child(2) { grid-column: 2; }
  .footer__col:nth-child(3) { grid-column: 3; }
  .footer__col:nth-child(4) { grid-column: 1; text-align: left; }
  .photo-gallery { grid-template-columns: repeat(3, 1fr); }
  .photo-gallery img:first-child { grid-column: span 2; height: 300px; }
  .logo-item { flex: 0 0 25%; }
}

@media (max-width: 768px) {
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .grid-2, .split, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .split__img img { height: 280px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .event-item { grid-template-columns: 56px 1fr; }
  .event-item .btn { display: none; }
  .footer__header { flex-direction: column; gap: 24px; align-items: flex-start; grid-column: 1 / -1; }
  .footer > .container:first-of-type,
  .footer > div:last-of-type { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .footer__col:nth-child(1) { grid-column: 1; }
  .footer__col:nth-child(2) { grid-column: 2; }
  .footer__col:nth-child(3) { grid-column: 1; }
  .footer__col:nth-child(4) { grid-column: 2; text-align: left; }
  .footer__col:last-child .footer__upv-logo { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { min-height: 75vh; }
  .section { padding: 56px 0; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery img:first-child { grid-column: span 2; height: 220px; }
  .logo-item { flex: 0 0 33.33%; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .step-indicator { gap: 0; }
  .step__label { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 16px; }
  .footer > .container:first-of-type,
  .footer > div:last-of-type { grid-template-columns: 1fr; }
  .footer__col:nth-child(1),
  .footer__col:nth-child(2),
  .footer__col:nth-child(3),
  .footer__col:nth-child(4) { grid-column: 1; }
  .logo-item { flex: 0 0 50%; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
}

/* ── Front page: events layout ── */
.events-layout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; }
@media (max-width: 900px) {
  .events-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Hero stat strip (4 cols → 2 on phones) ── */
@media (max-width: 560px) {
  .hero-stat-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-stat-strip > div:nth-child(2) { border-right: none !important; }
  .hero-stat-strip > div:nth-child(1), .hero-stat-strip > div:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ── Utility ── */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.pt-80 { padding-top: 80px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.hidden { display: none; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Custom Index Sections (Matching Design Specs)
   ============================================================ */

/* ── 1. Stats Counter Box ── */
.stats-banner-section {
  padding: 60px 0;
  background: #fafbfc;
  position: relative;
  overflow: hidden;
}
.stats-banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../images/biblioteca_sarriko.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.85);
  z-index: 0;
}
.stats-banner-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 251, 252, 0.95) 0%,
    rgba(250, 251, 252, 0.92) 50%,
    rgba(250, 251, 252, 0.88) 100%
  );
  z-index: 1;
}

.stats-banner-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 36px 12px;
  position: relative;
  z-index: 3;
}

.stat-banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid #f1f5f9;
}

.stat-banner-item:last-child {
  border-right: none;
}

.stat-banner-item__icon {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-banner-item__icon svg {
  width: 30px;
  height: 30px;
  stroke: #475569;
  stroke-width: 1.5;
  fill: none;
}

.stat-banner-item__number {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-banner-item__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .stats-banner-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 0;
  }
  .stat-banner-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .stats-banner-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .stat-banner-item {
    border-right: none;
  }
}

/* ── 2. Nuestras Áreas Section ── */
.areas-section-custom {
  padding: 70px 0 100px;
  background: #ffffff;
}

.areas-header-custom {
  margin-bottom: 40px;
  text-align: left;
}

.areas-eyebrow-custom {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2b5c8f;
  margin-bottom: 14px;
}

.areas-title-custom {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.areas-grid-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-card-custom {
  position: relative;
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #091526;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.area-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.area-card-custom__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.area-card-custom:hover .area-card-custom__bg {
  transform: scale(1.06);
  opacity: 0.48;
}

.area-card-custom__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 16, 32, 0.98) 0%,
    rgba(6, 16, 32, 0.82) 48%,
    rgba(6, 16, 32, 0.35) 100%
  );
  z-index: 1;
}

.area-card-custom__body {
  position: relative;
  z-index: 2;
  padding: 40px 30px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  flex: 1;
}

.area-card-custom__icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.area-card-custom__icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 1.6;
  fill: none;
}

.area-card-custom__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
  min-height: 74px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.area-card-custom__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 28px;
  font-weight: 300;
  min-height: 80px;
  flex-shrink: 0;
}

.area-card-custom__btn {
  display: inline-block;
  padding: 10px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: auto;
}

.area-card-custom__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

@media (max-width: 900px) {
  .areas-grid-custom {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
  }
}

/* ── 3. Partner Logos Section (Matching Screenshot) ── */
.partner-row-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.partner-row-block {
  margin-bottom: 48px;
}

.partner-row-block:last-child {
  margin-bottom: 0;
}

.partner-row-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b5c8f;
  margin-bottom: 20px;
}

.partner-row-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 0;
}

.partner-row-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  flex: 1;
  width: 100%;
  transition: transform 0.1s linear;
}

.partner-row-cards.partner-marquee {
  display: flex;
  grid-template-columns: none;
  width: max-content;
  animation: partnerScroll 35s linear infinite;
}

.partner-row-cards.partner-marquee:hover {
  animation-play-state: paused;
}

.partner-row-cards.partner-marquee .partner-card-light {
  width: 160px;
  flex-shrink: 0;
}

@keyframes partnerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 8px));
  }
}

.partner-card-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.partner-card-light:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.partner-card-light img {
  max-height: 38px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.85);
  transition: all 0.25s ease;
}

.partner-card-light img[src*="ETX-Capital-Lgo"] {
  transform: scale(1.6);
}

.partner-card-light:hover img {
  filter: grayscale(0) opacity(1);
}

.partner-card-light:hover img[src*="ETX-Capital-Lgo"] {
  transform: scale(1.6);
}

.partner-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.partner-arrow-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

@media (max-width: 1024px) {
  .partner-row-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .partner-row-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 4. Article Modal System ── */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 36, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.article-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-modal-overlay.open .article-modal-card {
  transform: translateY(0);
}

.article-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 27, 46, 0.65);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.article-modal-close:hover {
  background: rgba(13, 27, 46, 0.95);
  transform: scale(1.08);
}

.article-modal-hero {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
  background: #0d1b2e;
}

.article-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.article-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 46, 0.9) 0%, rgba(13, 27, 46, 0.3) 60%, transparent 100%);
}

.article-modal-body {
  padding: 40px;
  color: #334155;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

.article-modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 18px;
}

.article-modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
}

.article-modal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-modal-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  margin: 28px 0 12px;
}

.article-modal-content p {
  font-size: 0.96rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.75;
}

.article-modal-content .article-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.article-modal-content .article-quote {
  border-left: 3px solid #2563eb;
  padding: 16px 24px;
  background: #f8fafc;
  margin: 24px 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: #1e293b;
  border-radius: 0 8px 8px 0;
}

.article-modal-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .article-modal-body {
    padding: 24px;
  }
  .article-modal-hero {
    height: 220px;
  }
}

/* Regla especial para evitar recortar la infografía de valoración DCF */
.article-modal-card[data-current-article="dcf-valuation"] .article-modal-hero img {
  object-fit: contain;
  background: #ffffff;
}

/* ── bbPress: Ocultar únicamente la paginación superior (mantener solo la paginación inferior) ── */
#bbp-user-wrapper .bbp-user-section > div.bbp-pagination:first-of-type,
#bbp-user-wrapper .bbp-user-section > div.bbp-pagination:nth-of-type(1),
#bbp-user-topics-started .bbp-user-section > div.bbp-pagination:first-of-type,
#bbp-user-topics-started .bbp-user-section > div.bbp-pagination:nth-of-type(1),
#bbp-user-replies-created .bbp-user-section > div.bbp-pagination:first-of-type,
.bbp-user-section > div.bbp-pagination:first-of-type,
.bbp-user-section > div.bbp-pagination:first-child,
.bbp-user-section > div.bbp-pagination:nth-of-type(1),
div.bbp-pagination:has(+ ul),
div.bbp-pagination:has(+ table),
div.bbp-pagination:has(+ .bbp-topics),
div.bbp-pagination:has(+ .bbp-replies),
div.bbp-pagination:has(+ #bbp-forum-0),
#bbp-user-body div.bbp-pagination:first-child,
#bbp-user-body div.bbp-pagination:first-of-type,
#bbpress-forums > div.bbp-pagination:first-child,
#bbpress-forums > div.bbp-pagination:first-of-type,
.bbpress-page-wrapper div.bbp-pagination:first-child,
.bbpress-page-wrapper div.bbp-pagination:first-of-type,
div.bbp-pagination:first-of-type:not(:only-of-type),
div.bbp-pagination:first-of-type:not(:last-of-type) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

#bbp-user-wrapper .bbp-user-section > div.bbp-pagination:first-of-type *,
#bbp-user-topics-started .bbp-user-section > div.bbp-pagination:first-of-type *,
.bbp-user-section > div.bbp-pagination:first-of-type *,
div.bbp-pagination:has(+ ul) *,
#bbpress-forums > div.bbp-pagination:first-of-type * {
    display: none !important;
}

/* Forzar que la paginación inferior siempre se muestre adecuadamente */
#bbp-user-wrapper .bbp-user-section > div.bbp-pagination:last-of-type,
#bbp-user-topics-started .bbp-user-section > div.bbp-pagination:last-of-type,
#bbp-user-replies-created .bbp-user-section > div.bbp-pagination:last-of-type,
.bbp-user-section > div.bbp-pagination:last-of-type,
.bbp-user-section > div.bbp-pagination:nth-of-type(2),
#bbpress-forums > div.bbp-pagination:last-of-type {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* ── Título a la izquierda, botón de favoritos a la derecha ── */
ul.topic li.bbp-topic-title,
#bbpress-forums ul.topic li.bbp-topic-title,
.bbpress-page-wrapper ul.topic li.bbp-topic-title {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 16px !important;
}

/* 1. Título del tema a la izquierda */
ul.topic li.bbp-topic-title a.bbp-topic-permalink,
#bbpress-forums ul.topic li.bbp-topic-title a.bbp-topic-permalink,
.bbpress-page-wrapper ul.topic li.bbp-topic-title a.bbp-topic-permalink {
    display: inline-flex !important;
    align-items: center !important;
    order: 1 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #16213e !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    flex: 1 1 auto !important;
}

/* 2. Botón de favoritos a la derecha alineado con el título */
.bbp-row-actions,
#favorite-toggle,
span.is-favorite,
span.user-favorite,
#bbpress-forums ul.topic li.bbp-topic-title .bbp-row-actions {
    display: inline-flex !important;
    align-items: center !important;
    order: 2 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* 3. Metadatos del autor y foro */
ul.topic li.bbp-topic-title p.bbp-topic-meta,
#bbpress-forums ul.topic li.bbp-topic-title p.bbp-topic-meta,
.bbpress-page-wrapper ul.topic li.bbp-topic-title p.bbp-topic-meta {
    width: 100% !important;
    order: 3 !important;
    margin: 4px 0 0 0 !important;
    font-size: 0.77rem !important;
    color: #94a3b8 !important;
}

/* ── Centrado vertical estricto de todas las columnas (Voces, Respuestas, Última publicación) ── */
ul.topic li.bbp-topic-voice-count,
#bbpress-forums ul.topic li.bbp-topic-voice-count,
.bbpress-page-wrapper ul.topic li.bbp-topic-voice-count,
ul.topic li.bbp-topic-reply-count,
#bbpress-forums ul.topic li.bbp-topic-reply-count,
.bbpress-page-wrapper ul.topic li.bbp-topic-reply-count {
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto 0 !important;
    height: 100% !important;
    padding: 0 8px !important;
}

ul.topic li.bbp-topic-freshness,
#bbpress-forums ul.topic li.bbp-topic-freshness,
.bbpress-page-wrapper ul.topic li.bbp-topic-freshness {
    align-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    margin: auto 0 !important;
    height: 100% !important;
    padding: 0 20px 0 8px !important;
}

/* ── Footer responsive (tablet / móvil) ── */
@media (max-width: 900px) {
  .footer__header { grid-column: 1 / -1; width: 100%; }
  .footer__tagline { max-width: 340px; font-size: 0.8rem; }
  .footer__brand-logo .logo-img { height: 60px !important; }
  .footer__col h5 { margin-bottom: 12px; }
  .footer__col ul li { margin-bottom: 10px; }
  .footer__col ul a, .footer__contact-item span, .footer__contact-item a { font-size: 0.82rem; }
  .footer__col:nth-child(4) .footer__upv-logo { justify-content: flex-start; }
  .footer__bottom { align-items: center; text-align: center; padding-left: 16px; padding-right: 16px; }
  .footer__bottom p { line-height: 1.5; }
  .footer__bottom-right { justify-content: center; flex-wrap: wrap; gap: 8px 20px; width: 100%; }
}
@media (max-width: 480px) {
  .footer__tagline { max-width: none; }
}

/* ── Entrada individual (single.php) ───────────────────────── */
.single-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.single-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; color: rgba(255,255,255,0.78); font-size: 0.88rem; }
.single-meta span { display: inline-flex; align-items: center; gap: 8px; }
.single-wrap { max-width: 760px; margin: 0 auto; }
.single-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--blue-bright); margin-bottom: 28px; }
.single-back:hover { text-decoration: underline; }
.single-figure { margin: 0 0 40px; border-radius: 12px; overflow: hidden; background: var(--navy-dark); box-shadow: 0 12px 40px rgba(13,27,46,0.12); }
.single-figure img { display: block; width: 100%; height: clamp(240px, 42vw, 440px); object-fit: cover; object-position: center 35%; }
.single-content { font-size: 1.08rem; line-height: 1.85; color: #374151; }
.single-content > p { margin: 0 0 1.4em; }
.single-content .article-lead { font-size: 1.28rem; line-height: 1.6; color: var(--navy); font-weight: 500; padding-bottom: 1.2em; margin-bottom: 1.6em; border-bottom: 1px solid #e5e7eb; }
.single-content h2, .single-content h3 { color: var(--navy); font-weight: 700; line-height: 1.3; margin: 2em 0 0.7em; }
.single-content h2 { font-size: 1.6rem; }
.single-content h3 { font-size: 1.3rem; }
.single-content ul, .single-content ol { margin: 0 0 1.4em 1.3em; }
.single-content li { margin-bottom: 0.5em; }
.single-content a { color: var(--blue-bright); text-decoration: underline; }
.single-content img { max-width: 100%; height: auto; border-radius: 8px; }
.single-content blockquote, .single-content .article-quote { margin: 2em 0; padding: 22px 28px; background: #f1f5f9; border-left: 4px solid var(--blue-bright); border-radius: 0 10px 10px 0; font-size: 1.12rem; font-style: italic; color: var(--navy); }
.single-content blockquote p { margin: 0; }
.single-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.single-nav a { display: block; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.single-nav a:hover { border-color: var(--blue-bright); box-shadow: 0 8px 24px rgba(13,27,46,0.08); transform: translateY(-2px); }
.single-nav small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 6px; }
.single-nav strong { display: block; color: var(--navy); font-size: 0.98rem; line-height: 1.35; }
.single-nav .is-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .single-nav { grid-template-columns: 1fr; } .single-nav .is-next { grid-column: 1; text-align: left; } .single-content { font-size: 1rem; } }
