﻿/* ============================================================
   API INFECTOLOGÍA – REDESIGN CSS
   Premium medical/scientific aesthetic
   ============================================================ */

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

:root {
  /* ── Palette ── */
  --navy:       #0B1F3A;
  --royal:      #1353A0;
  --sky:        #2B7FE1;
  --accent:     #00C2E0;
  --accent-2:   #05E2B4;
  --light-bg:   #F4F7FC;
  --white:      #FFFFFF;
  --mid-grey:   #8A9AB5;
  --dark-grey:  #3A4B65;
  --text:       #1C2B42;
  --border:     #DDE5F0;

  /* ── Typography ── */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ── Spacing ── */
  --section-pad: 100px;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(.4,0,.2,1);

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(19,83,160,.08);
  --shadow-md: 0 8px 30px rgba(19,83,160,.12);
  --shadow-lg: 0 20px 60px rgba(11,31,58,.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CANVAS BG ---- */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: .35;
}

/* ---- UTILITY ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mt-4 { margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--royal));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(43,127,225,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--royal), var(--navy));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(43,127,225,.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--sky);
  color: var(--sky);
}
.btn-outline:hover {
  background: var(--sky);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- SECTION COMMON ---- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.bg-light { background: var(--light-bg); }
.bg-dark  { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header.light .section-eyebrow,
.section-header.light .section-title {
  color: var(--white);
}

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-rule {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  margin: 0 auto 24px;
  border-radius: 4px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--mid-grey);
  font-size: 1.05rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: .4; }
}

.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp .8s ease forwards; }
.fade-in:nth-child(1) { animation-delay: .1s; }
.fade-in:nth-child(2) { animation-delay: .25s; }
.fade-in:nth-child(3) { animation-delay: .4s; }
.fade-in:nth-child(4) { animation-delay: .55s; }
.fade-in:nth-child(5) { animation-delay: .7s; }

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img { height: 62px; width: auto; object-fit: contain; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-abbr {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--royal);
}
.logo-full {
  font-size: .7rem;
  font-weight: 500;
  color: var(--mid-grey);
  letter-spacing: .04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark-grey);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--royal);
  background: rgba(43,127,225,.07);
}

.nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--royal));
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 16px;
}
.nav-cta:hover { opacity: .88; background: linear-gradient(135deg, var(--sky), var(--royal)); }

.nav-afiliarte {
  background: linear-gradient(135deg, #F8CF65, #D4962A);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}
.nav-afiliarte:hover {
  background: linear-gradient(135deg, #FAD97A, #DFA030) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(248,207,101,.45);
}

.chevron { font-size: .65rem; transition: var(--transition); }

/* ── Gold button (afiliación) ── */
.btn-gold {
  background: linear-gradient(135deg, #F8CF65, #D4962A);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(248,207,101,.42);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FAD97A, #DFA030);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(248,207,101,.55);
}

/* ── Afiliación CTA section ── */
.afiliacion-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 72px 0;
  position: relative;
  z-index: 1;
}
.afiliacion-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}
.afiliacion-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .65rem;
}
.afiliacion-text p {
  color: rgba(255,255,255,.55);
  font-size: .975rem;
  max-width: 52ch;
  line-height: 1.65;
  margin: 0 auto;
}
.afiliacion-banner .btn-gold {
  font-size: 1rem;
  padding: 15px 36px;
}
@media (max-width: 720px) {
  .afiliacion-banner .btn-gold { width: 100%; justify-content: center; }
}

.has-dropdown { position: relative; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  padding-top: 16px;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: var(--transition);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0px);
}

.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark-grey);
  border-radius: 8px;
  transition: var(--transition);
  text-align: center;
}
.dropdown a:hover {
  background: rgba(19, 83, 160, 0.15);
  color: var(--royal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 4px;
  transition: var(--transition);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: block;         /* ← NOT flex: children use position:absolute */
  padding: 0;
  background: var(--navy);
}
.hero::before { display: none; }

/* Track: explicit full height */
.hs-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: calc(100% - 90px);   /* leave room for stats bar */
}

/* Stats bar: anchored at bottom */
.hs-stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,14,26,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.07);
  height: 90px;
}
.hs-stat { text-align: center; padding: 0 52px; }
.hs-stat .stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 3px;
}
.hs-stat .stat-label {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.hs-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* Slides: fill the track absolutely */
.hs-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .85s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0;
}
.hs-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Image wrapper: fill slide */
.hs-img-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Image: fill wrapper with cover */
.hs-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  transition: transform 7s ease;
  will-change: transform;
}
.hs-slide.active .hs-img { transform: scale(1); }

/* Overlay */
.hs-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(7,14,26,.82) 0%,
    rgba(11,31,58,.56) 52%,
    rgba(11,31,58,.26) 100%
  );
  z-index: 1;
}

/* Content */
.hs-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  right: 0;
}

/* Content animations */
.hs-content .hero-badge,
.hs-content .hero-title,
.hs-content .hero-sub,
.hs-content .hero-actions { opacity: 0; transform: translateY(18px); }

.hs-slide.active .hs-content .hero-badge   { opacity:1; transform:translateY(0); transition: opacity .5s ease .1s,  transform .5s ease .1s; }
.hs-slide.active .hs-content .hero-title   { opacity:1; transform:translateY(0); transition: opacity .6s ease .25s, transform .6s ease .25s; }
.hs-slide.active .hs-content .hero-sub     { opacity:1; transform:translateY(0); transition: opacity .6s ease .4s,  transform .6s ease .4s; }
.hs-slide.active .hs-content .hero-actions { opacity:1; transform:translateY(0); transition: opacity .6s ease .55s, transform .6s ease .55s; }

.hs-content .hero-badge {
  padding: 8px 18px;
  border-radius: 16px;
  background: rgba(43,127,225,.2);
  border: 1px solid rgba(43,127,225,.4);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 20px;
  width: fit-content;
}
.hs-content .hero-title  {
  color: #fff;
  text-align: left;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.18;
}
.hs-content .hero-sub    {
  max-width: 540px;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
  text-align: left;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.65;
}
.hs-content .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

/* Progress bar */
.hs-progress {
  position: absolute;
  bottom: 90px; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.08);
  z-index: 11;
}
.hs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  width: 0%;
  transition: width linear;
}

/* Scroll dot */
.hero-scroll-indicator {
  position: absolute;
  bottom: 104px;
  right: 40px;
  z-index: 10;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  animation: scrollBounce 1.5s ease infinite;
}

/* Hero arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(11,31,58,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.hs-arrow svg { width: 18px; height: 18px; }
.hs-arrow:hover {
  background: rgba(43,127,225,.55);
  border-color: rgba(43,127,225,.7);
  transform: translateY(-50%) scale(1.08);
}
.hs-prev { left: 24px; display: none; }
.hs-next { right: 24px; display: none; }

/* Hero dots */
.hs-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hs-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .3s, width .3s, border-radius .3s;
}
.hs-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .hs-content { padding: 100px 32px 60px; }
  .hs-stat    { padding: 0 28px; }
}
@media (max-width: 680px) {
  .hero { height: 100svh; }
  .hs-content { padding: 88px 20px 56px; }
  .hs-content .hero-badge { font-size: .72rem; padding: 6px 14px; margin-bottom: 14px; }
  .hs-content .hero-title { font-size: 1.8rem; line-height: 1.22; margin-bottom: 14px; }
  .hs-content .hero-sub   { font-size: .9rem; margin-bottom: 20px; max-width: 100%; }
  .hs-content .hero-actions { gap: 10px; }
  .hs-content .hero-actions .btn { padding: 10px 20px; font-size: .85rem; }
  .hs-stat    { padding: 0 14px; }
  .hs-stat .stat-number { font-size: 1.55rem; }
  .hs-arrow { width: 36px; height: 36px; }
  .hs-arrow svg { width: 16px; height: 16px; }
  .hs-prev  { left: 12px; }
  .hs-next  { right: 12px; }
}
@media (max-width: 480px) {
  .hs-stat-div { display: none; }
  .hs-stats-bar { flex-wrap: wrap; gap: 6px; height: auto; padding: 12px 0; }
  .hs-track { height: calc(100% - 80px); }
  .hs-progress { bottom: 80px; }
}
@media (max-width: 420px) {
  .hs-content { padding: 80px 16px 48px; }
  .hs-content .hero-badge { font-size: .65rem; padding: 5px 11px; margin-bottom: 10px; }
  .hs-content .hero-title { font-size: 1.5rem; line-height: 1.28; margin-bottom: 12px; }
  .hs-content .hero-sub   { font-size: .82rem; margin-bottom: 16px; }
  .hs-content .hero-actions .btn { padding: 9px 16px; font-size: .78rem; }
  .hs-arrow { width: 30px; height: 30px; }
  .hs-arrow svg { width: 13px; height: 13px; }
  .hs-prev { left: 8px; }
  .hs-next { right: 8px; }
}

/* ============================================================
   SOBRE API
   ============================================================ */
.sobre-api { padding-top: 48px; }
.sobre-api .section-header { margin-bottom: 32px; }
.sobre-section-logo {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 0 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 36px;
}

.sobre-text .lead-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  text-align: justify;
}
.sobre-text p { font-size: 0.875rem; color: var(--dark-grey); margin-bottom: 20px; line-height: 1.8; text-align: justify; }

.sobre-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sobre-btn-group .btn {
  font-size: .8rem;
  padding: 10px 22px;
}

.historia-card {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, rgba(43,127,225,.05), rgba(0,194,224,.04));
  border: 1px solid rgba(43,127,225,.13);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
}
.historia-icon { font-size: 1.7rem; flex-shrink: 0; }
.historia-card h4 { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.historia-card p  { font-size: .88rem; color: var(--dark-grey); line-height: 1.7; margin: 0; }

/* ── Gallery ── */
.sobre-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Main spotlight */
.sg-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}

.sg-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.4,0,.2,1), opacity .35s ease;
  will-change: transform;
}
.sg-main:hover img { transform: scale(1.03); }

/* Gradient caption bar */
.sg-main-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(7,14,26,.75));
  padding: 28px 16px 12px;
  pointer-events: none;
}
.sg-main-caption {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
}

/* Image swap animation */
.sg-main img.fade-out { opacity: 0; transform: scale(1.04); }
.sg-main img.fade-in-start { opacity: 0; }

/* Thumbnail strip */
.sg-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.sg-thumb {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.sg-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sg-thumb.active {
  outline-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(43,127,225,.25);
}
.sg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .25s ease;
  filter: brightness(.75) saturate(.8);
}
.sg-thumb.active img,
.sg-thumb:hover img {
  filter: brightness(1) saturate(1);
}

/* Dim overlay on inactive thumbs */
.sg-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,.3);
  transition: opacity .25s ease;
}
.sg-thumb.active::after,
.sg-thumb:hover::after { opacity: 0; }

/* Counter */
.sg-counter-badge {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
  margin-top: 4px;
  display: block;
}
.sg-counter-badge #sg-cur { color: var(--accent); }

/* ── Lightbox (full-screen view) ── */
.sg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4,8,15,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sg-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.sg-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  object-fit: contain;
  transform: scale(.94);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.sg-lightbox.open img { transform: scale(1); }
.sg-lb-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.sg-lb-close:hover { background: rgba(255,255,255,.22); }
.sg-lb-cap {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  background: rgba(0,0,0,.4);
  padding: 6px 18px;
  border-radius: 16px;
  white-space: nowrap;
}

/* ── Feature pills ── */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(43,127,225,.07);
  border: 1px solid rgba(43,127,225,.15);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark-grey);
  transition: var(--transition);
}
.pill:hover {
  background: rgba(43,127,225,.13);
  border-color: rgba(43,127,225,.3);
}
.pill-icon { font-size: 1rem; }

/* ── Mission card wide ── */
.mision-card-wide {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  color: #fff;
  margin-top: 8px;
}
.mision-icon { font-size: 2.2rem; flex-shrink: 0; }
.mision-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mision-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.mision-divider {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.mision-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: .95;
}
.mision-text p { font-size: .9rem; line-height: 1.72; opacity: .82; margin: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .mision-card-wide { flex-direction: column; text-align: center; padding: 24px; }
  .mision-divider { width: 64px; height: 1px; }
}
@media (max-width: 540px) {
  .sg-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   COMITÉS
   ============================================================ */
.comites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comite-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.comite-card:hover {
  border-color: rgba(43,127,225,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.comite-icon { font-size: 2rem; margin-bottom: 14px; }
.comite-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.comite-card p { font-size: .9rem; color: var(--dark-grey); line-height: 1.7; }

/* ============================================================
   JUNTA DIRECTIVA
   ============================================================ */
.junta-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.junta-members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 28px;
  max-width: calc(4 * 180px + 3 * 28px);
  margin: 0 auto;
}

.junta-member-card {
  flex: 0 0 180px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  will-change: transform;
  opacity: 0;
  transition: transform 0.3s ease;
}
.junta-member-card:hover {
  transform: translateY(-8px);
}
@keyframes juntaSlideLeft {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes juntaSlideRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
.junta-member-card.junta-from-left {
  animation: juntaSlideLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.junta-member-card.junta-from-right {
  animation: juntaSlideRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5), 0 4px 20px rgba(0,0,0,0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(201,168,76,0.15), 0 4px 20px rgba(0,0,0,0.2); }
}

.junta-card-header {
  width: auto;
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: center;
}
.junta-photo-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #F8CF65;
  animation: ringPulse 2.8s ease-in-out infinite;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  flex-shrink: 0;
  position: relative;
}
.junta-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s ease;
  border-radius: 50%;
  display: block;
}
.junta-member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #F8CF65, #D4962A);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.junta-card-body {
  padding: 16px 8px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  transition: transform .35s ease;
}
.junta-member-name {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.junta-member-role {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9A7520;
  transition: color .35s ease, letter-spacing .35s ease;
}
.junta-member-card:hover .junta-photo-ring {
  box-shadow: 0 0 0 4px rgba(248,207,101,.5), 0 0 20px rgba(201,168,76,.4);
  border-color: #F8CF65;
}
.junta-member-card:hover .junta-member-photo {
  transform: scale(1.08);
}
.junta-member-card:hover .junta-card-body {
  transform: translateY(-4px);
}
.junta-member-card:hover .junta-member-role {
  color: #D4962A;
  letter-spacing: .12em;
}

.junta-contact-card {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--sky), var(--royal));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.1);
}
.junta-contact-icon { font-size: 2rem; flex-shrink: 0; }
.junta-contact-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.junta-contact-card p { font-size: .8rem; opacity: .88; margin-bottom: 0; line-height: 1.4; flex: 1; }
.junta-newsletter-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
}
.junta-newsletter-input {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: .85rem;
  outline: none;
  color: var(--navy);
  width: 220px;
}
.junta-newsletter-input::placeholder { color: #999; }
.junta-contact-card .btn-primary {
  background: var(--white);
  color: var(--royal);
  box-shadow: none;
  white-space: nowrap;
  justify-content: center;
}
.junta-contact-card .btn-primary:hover { background: var(--light-bg); }
.junta-newsletter-ok {
  margin-top: 12px;
  font-size: .85rem;
  opacity: .92;
}

/* ============================================================
   PUBLICACIONES
   ============================================================ */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.pub-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.pub-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: var(--radius);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.pub-card:hover .pub-card-icon {
  background: linear-gradient(135deg, var(--sky), var(--royal));
  box-shadow: 0 8px 24px rgba(43,127,225,.35);
  transform: scale(1.12) rotate(-4deg);
}
.pub-card-icon img {
  width: 48px; height: 48px;
  object-fit: contain;
  transition: transform .35s ease, filter .35s ease;
}
.pub-card:hover .pub-card-icon img {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}
.pub-card-icon-fallback { font-size: 2rem; transition: transform .35s ease; }
.pub-card:hover .pub-card-icon-fallback { transform: scale(1.15); }

.pub-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.pub-card p { font-size: .85rem; color: var(--mid-grey); line-height: 1.65; flex: 1; margin-bottom: 20px; }

.pub-card-cta {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--sky);
  transition: var(--transition);
}
.pub-card:hover .pub-card-cta { color: var(--royal); letter-spacing: .02em; }

/* ============================================================
   NOVEDADES
   ============================================================ */
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.novedad-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.novedad-thumb {
  margin: -28px -28px 14px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--light-bg);
  flex-shrink: 0;
}
.novedad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.novedad-card:hover .novedad-thumb img { transform: scale(1.05); }
.novedad-card:hover {
  border-color: rgba(43,127,225,.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.novedad-tag {
  display: inline-block;
  background: rgba(43,127,225,.08);
  color: var(--sky);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 16px;
  width: fit-content;
}

.novedad-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.novedad-card p {
  font-size: .88rem;
  color: var(--dark-grey);
  line-height: 1.7;
  flex: 1;
}

.novedad-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--sky);
  transition: var(--transition);
  margin-top: auto;
}
.novedad-link:hover { color: var(--royal); gap: 8px; }

.novedades-footer { text-align: center; }

/* ============================================================
   CONGRESOS — CINEMA BILLBOARD CAROUSEL
   ============================================================ */

/* ── Section shell ── */
.congresos-section {
  background: #08101F;
  position: relative;
  overflow: hidden;
}
.congresos-section .section-title  { color: #fff; }
.congresos-section .section-eyebrow { color: var(--accent); }

/* ── Ambient atmosphere ── */
.cinema-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cinema-light {
  position: absolute;
  top: 0;
  width: 340px;
  height: 100%;
  opacity: .1;
}
.cinema-light--left  { left:  -60px; background: radial-gradient(ellipse 60% 80% at 0%   40%, rgba(43,127,225,.9), transparent); }
.cinema-light--right { right: -60px; background: radial-gradient(ellipse 60% 80% at 100% 60%, rgba(0,194,224,.7),   transparent); }
.cinema-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px);
  opacity: .35;
}

/* ── Carousel wrapper ── */
.bc-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
  /* show peek of adjacent cards */
  padding: 0 60px;
}

/* ── Track: horizontally scrollable ── */
.bc-track {
  display: flex;
  gap: 28px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.bc-track.dragging { cursor: grabbing; transition: none; }

/* ── Each card: equal width ── */
.bc-card {
  flex: 0 0 calc(33.333% - 19px);   /* 3 visible on desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Frame ── */
.billboard-frame {
  width: 100%;
  background: linear-gradient(160deg, #1a2740 0%, #0d1a2e 100%);
  border-radius: 14px 14px 4px 4px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 10px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  transition: box-shadow .35s ease;
}
.billboard-frame::before,
.billboard-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0d1827;
  border: 2px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.billboard-frame::before { left: 14px; }
.billboard-frame::after  { right: 14px; }

.bc-card:hover .billboard-frame {
  box-shadow:
    0 0 0 1px rgba(43,127,225,.28),
    0 16px 50px rgba(0,0,0,.7),
    0 0 70px rgba(43,127,225,.1),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* ── Inner panel ── */
.billboard-inner {
  border-radius: 6px;
  overflow: hidden;
  background: #04080F;
}

/* ── FLYER IMG (reemplaza flyer-art con imagen real) ── */
.flyer-img {
  width: 100%;
  height: auto;
  display: block;
  line-height: 0;
}

/* ── FLYER ART ── */
.flyer-art {
  position: relative;
  aspect-ratio: 2/3;          /* ← same for every card */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
}

.flyer-peru    { background: linear-gradient(160deg, #0a1f6e 0%, #051230 40%, #0d2b4e 100%); }
.flyer-arg     { background: linear-gradient(160deg, #1565a0 0%, #0a3460 40%, #1a4a7a 100%); }
.flyer-coming  {
  background: linear-gradient(160deg, #0d1827 0%, #06101c 100%);
  border: 1px dashed rgba(255,255,255,.1);
  align-items: center;
  justify-content: center;
}

.flyer-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(43,127,225,.22), transparent 65%);
  pointer-events: none;
}
.flyer-glow--arg {
  background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(100,180,255,.18), transparent 65%);
}

.flyer-country-bg {
  position: absolute;
  bottom: 6px; right: -4px;
  font-size: 6.5rem;
  opacity: .07;
  pointer-events: none;
  line-height: 1;
}

.flyer-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 10px;
  position: relative;
  z-index: 1;
}
.flyer-assoc  {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.flyer-edition {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
}

.flyer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}
.flyer-api-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .28em;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
}
.flyer-api-logo--arg { color: rgba(255,255,255,.25); }

.flyer-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(43,127,225,.4);
}
.flyer-cohost {
  font-size: .62rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  background: rgba(0,194,224,.1);
  border: 1px solid rgba(0,194,224,.22);
  padding: 3px 9px;
  border-radius: 16px;
}

.flyer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 10px;
  position: relative;
  z-index: 1;
}
.flyer-date         { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.flyer-date-num     { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #fff; line-height: 1; }
.flyer-date-label   { font-size: .55rem; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.flyer-sep          { width: 1px; height: 28px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.flyer-venue        { display: flex; gap: 5px; align-items: flex-start; font-size: .6rem; color: rgba(255,255,255,.5); line-height: 1.45; }
.flyer-venue-icon   { flex-shrink: 0; }

/* Coming soon interior */
.coming-content     { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.coming-icon        { font-size: 2.6rem; opacity: .35; }
.coming-label       { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.coming-title       { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: rgba(255,255,255,.22); line-height: 1.1; margin: 0; }
.coming-sub         { font-size: .62rem; color: rgba(255,255,255,.22); }

/* ── Info strip ── */
.billboard-info {
  padding: 14px 14px 16px;
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.billboard-badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 16px;
  margin-bottom: 4px;
}
.billboard-badge.new {
  background: linear-gradient(135deg, var(--sky), var(--accent));
  color: #fff;
}
.billboard-meta h4  { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.billboard-meta p   { font-size: .68rem; color: rgba(255,255,255,.38); line-height: 1.55; }
.billboard-actions  { display: flex; gap: 8px; flex-wrap: wrap; }
.billboard-actions .btn { font-size: .75rem; padding: 8px 16px; }

/* ── Pole & base ── */
.billboard-pole {
  width: 12px;
  height: 44px;
  background: linear-gradient(180deg, #2a3a52 0%, #131f30 100%);
  box-shadow: inset -2px 0 4px rgba(0,0,0,.4), 2px 0 5px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.billboard-base {
  width: 52px;
  height: 9px;
  background: linear-gradient(180deg, #1f2e42 0%, #0f1c2a 100%);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  flex-shrink: 0;
}

/* ── Carousel arrows ── */
.bc-arrow {
  position: absolute;
  top: 40%;
  /* translate3d fuerza capa GPU propia → evita clip incorrecto de iOS Safari
     cuando un ancestor con overflow:hidden interactúa con stacking contexts */
  transform: translate3d(0, -50%, 0);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(11,31,58,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.bc-arrow svg { width: 18px; height: 18px; }
.bc-arrow:hover {
  background: rgba(43,127,225,.6);
  border-color: rgba(43,127,225,.7);
}
.bc-prev { left: 4px; }
.bc-next { right: 4px; }
.bc-arrow:hover { transform: translate3d(0, -50%, 0) scale(1.08); }

/* ── Dots ── */
.bc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.bc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  transition: background .3s, width .3s, border-radius .3s;
}
.bc-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* ── Becas ── */
.becas-banner {
  background: linear-gradient(135deg, rgba(0,194,224,.08), rgba(5,226,180,.06));
  border: 1px solid rgba(0,194,224,.18);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.becas-icon { font-size: 2.8rem; flex-shrink: 0; }
.becas-content h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.becas-content p  { font-size: .9rem; color: rgba(255,255,255,.62); line-height: 1.7; margin-bottom: 18px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bc-wrapper { padding: 0 48px; }
  .bc-card { flex: 0 0 calc(50% - 14px); }
}
@media (max-width: 640px) {
  .bc-wrapper { padding: 0 44px; }
  .bc-card { flex: 0 0 calc(100% - 0px); }
  .bc-arrow { width: 36px; height: 36px; }
  .becas-banner { flex-direction: column; text-align: center; padding: 24px; }
}


/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios-section { background: var(--white); }

.testimonios-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto 32px;
}

.testimonio-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  display: none;
}
.testimonio-card.active { display: block; animation: fadeInUp .5s ease; }

.testimonio-quote {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: .8;
  color: var(--sky);
  opacity: .3;
  margin-bottom: -16px;
}

.testimonio-card p {
  font-size: 1.05rem;
  color: var(--dark-grey);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--sky), var(--royal));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonio-author strong { display: block; color: var(--navy); font-size: .95rem; }
.testimonio-author span  { font-size: .82rem; color: var(--mid-grey); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--sky); transform: scale(1.3); }

/* ============================================================
   SOCIEDADES CARRUSEL
   ============================================================ */
.sc-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-viewport {
  overflow: hidden;
  flex: 1;
  /* position:relative aísla el contexto de clip de iOS Safari
     e impide que el overflow:hidden se propague a los hermanos flex */
  position: relative;
}
.sc-track {
  display: flex;
  gap: 16px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.sociedad-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex: 0 0 calc((100% - 64px) / 5);
  aspect-ratio: 3/2;
  overflow: hidden;
  transition: var(--transition);
}
.sociedad-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.sociedad-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: var(--transition);
}
.sociedad-card:hover img { filter: grayscale(0); }
.sc-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  /* Fuerza capa GPU propia para el botón: evita bug de iOS Safari donde
     overflow:hidden de un flex-item hermano (sc-viewport) clipea este elemento */
  transform: translateZ(0);
  position: relative;
  transition: var(--transition);
  color: var(--navy);
}
.sc-arrow svg { width: 18px; height: 18px; }
.sc-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-arrow:disabled { opacity: .3; pointer-events: none; }
.sc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.sc-dot.active { background: var(--accent); transform: scale(1.2); }

/* ============================================================
   MEMBRESÍAS
   ============================================================ */
.membresias-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.membresia-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  transition: var(--transition);
}
.membresia-card:hover {
  transform: translateY(-3px);
}
.membresia-card img {
  max-height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: .85;
  transition: var(--transition);
}
.membresia-card:hover img { opacity: 1; }
.membresia-card span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto-section {
  background: linear-gradient(rgba(5,12,28,0.85), rgba(11,31,58,0.85)), url('../images/MAPA_ACTUALIZADO-1536x661.png') center/cover no-repeat;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contacto-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.contacto-info > p {
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 24px;
  font-size: .8rem;
}

.contacto-items { display: flex; flex-direction: column; gap: 20px; }
.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(43,127,225,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.ci-icon svg { width: 18px; height: 18px; }
.contacto-item strong {
  display: block;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.contacto-item a {
  color: var(--accent);
  font-size: .95rem;
  transition: var(--transition);
}
.contacto-item a:hover { color: var(--accent-2); }

.suscripcion-card {
  background: rgba(11, 31, 58, 0.85);
  border: 1px solid rgba(43, 127, 225, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.suscripcion-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.suscripcion-card > p {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

.suscripcion-form { display: flex; flex-direction: column; gap: 8px; }

.form-input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-size: .84rem;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,.4); }
.form-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-note {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

.success-msg {
  background: rgba(5,226,180,.12);
  border: 1px solid rgba(5,226,180,.3);
  color: var(--accent-2);
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #070E1A;
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 60px; width: auto; margin-bottom: 16px; }

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.social-link:hover { color: var(--accent); }

.footer-nav h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .sociedad-card { flex: 0 0 calc((100% - 48px) / 4); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .sobre-grid  { grid-template-columns: 1fr; gap: 40px; }
  .comites-grid { grid-template-columns: repeat(2, 1fr); }
  .novedades-grid { grid-template-columns: repeat(2, 1fr); }
  .junta-members-grid { justify-content: center; }
  .junta-member-card { flex: 0 0 165px; }
  .junta-contact-card { flex-direction: column; text-align: center; }
  .junta-newsletter-form { flex-direction: column; width: 100%; }
  .junta-newsletter-input { width: 100%; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sociedad-card { flex: 0 0 calc((100% - 32px) / 3); }

  /* Mobile nav */
  .navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97); }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--light-bg);
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
}

@media (max-width: 680px) {
  :root { --section-pad: 56px; }

  .comites-grid { grid-template-columns: 1fr; }
  .novedades-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .sociedad-card { flex: 0 0 calc((100% - 16px) / 2); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .becas-banner { flex-direction: column; text-align: center; }
  .suscripcion-card, .contacto-info { padding: 24px; }
}

@media (max-width: 480px) {
  .junta-members-grid {
    max-width: 100%;
    gap: 24px 16px;
  }
  .junta-member-card { flex: 0 0 calc(50% - 8px); }
  .junta-photo-ring { width: 120px; height: 120px; }
  .junta-newsletter-input { width: 100%; }
}

@media (max-width: 420px) {
  .pub-grid { grid-template-columns: 1fr; }
  .sociedad-card { flex: 0 0 100%; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #bg-canvas { display: none; }
}

/* ============================================================
   NOVEDADES PAGE
   ============================================================ */

/* Page hero (compact) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1353A0 60%, #1a65b8 100%);
  padding: 150px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.page-breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.page-breadcrumb a:hover { color: rgba(255,255,255,.9); }
.page-breadcrumb span { opacity: .4; }
.page-hero .section-eyebrow { color: var(--accent); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 12px 0 16px;
}
.page-hero-desc {
  max-width: 560px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Filter bar */
.nv-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 200;
  padding: 0;
}
.nv-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
}
.nv-filter-scroll::-webkit-scrollbar { display: none; }
.nv-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 600;
  color: var(--dark-grey);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.nv-filter:hover  { border-color: var(--sky); color: var(--sky); }
.nv-filter.active { background: var(--sky); border-color: var(--sky); color: var(--white); }
.nv-filter-count  { font-size: .7rem; opacity: .7; }

/* Sections */
.nv-sections { padding: 72px 0 96px; }
.nv-section   { margin-bottom: 72px; }
.nv-section.hidden { display: none; }

.nv-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.nv-section-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(43,127,225,.1), rgba(0,194,224,.08));
  border: 1px solid rgba(43,127,225,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.nv-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.nv-section-count {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mid-grey);
  background: var(--light-bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 16px;
}

/* News cards grid */
.nv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.nv-card:hover {
  border-color: rgba(43,127,225,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.nv-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--light-bg);
  flex-shrink: 0;
}
.nv-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.nv-card:hover .nv-card-thumb img { transform: scale(1.05); }

.nv-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(7,14,26,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 16px;
}

.nv-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nv-card-body h3 {
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
}
.nv-card-body p {
  font-size: .83rem;
  color: var(--dark-grey);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}
.nv-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--sky);
  transition: var(--transition);
  margin-top: auto;
}
.nv-card-link:hover { color: var(--royal); gap: 8px; }

/* Novedades page responsive */
@media (max-width: 960px) {
  .nv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .page-hero { padding: 130px 0 56px; }
  .nv-grid { grid-template-columns: 1fr; }
  .nv-filter-bar { top: 60px; }
}