:root {
  --primary: #0c5fa8;
  --primary-dark: #073c6d;
  --accent: #14a6a0;
  --gold: #f2b544;
  --ink: #17324d;
  --muted: #66788a;
  --surface: #fff;
  --soft: #eef5fa;
  --shadow: 0 18px 50px rgba(23, 50, 77, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #eaf1f6;
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}
.site-shell {
  width: 95%;
  max-width: 1820px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 45px rgba(6, 49, 84, 0.12);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.portal-navbar {
  width: 95%;
  max-width: 1820px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(7, 60, 109, 0.97),
    rgba(12, 95, 168, 0.96)
  );
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}
.portal-navbar .container-fluid {
  padding-inline: clamp(1rem, 3vw, 3rem);
}
.navbar-brand {
  color: #fff !important;
}
.navbar-brand small {
  font-size: 0.72rem;
  opacity: 0.82;
}
.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.6rem 0.95rem !important;
}
.navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff !important;
}
.nav-link i {
  font-size: 1.12rem;
  margin-right: 0.38rem;
}
.hero-section {
  padding-top: 72px;
}
.hero-carousel,
.hero-carousel .carousel-item {
  min-height: clamp(540px, 71vh, 760px);
}
.hero-carousel .carousel-item {
  position: relative;
  overflow: hidden;
}
.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  animation: kenburns 8s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 34, 62, 0.9) 0%,
    rgba(5, 60, 103, 0.7) 46%,
    rgba(5, 60, 103, 0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
}
.min-vh-75 {
  min-height: clamp(540px, 71vh, 760px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 700;
}
.hero-badge i {
  font-size: 1.2rem;
  color: #ffe08a;
}
.hero-content h1,
.hero-content h2 {
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.35);
}
.hero-content .lead {
  max-width: 760px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.hero-cta i {
  font-size: 1.25rem;
}
.carousel-indicators [data-bs-target] {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 99px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 48%;
  background-color: rgba(4, 45, 77, 0.58);
  border-radius: 50%;
  backdrop-filter: blur(5px);
}
.research-ticker {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
  padding: 0.75rem 0;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 2rem;
  white-space: nowrap;
  font-weight: 700;
}
.ticker-item i {
  font-size: 1.25rem;
  color: #ffd66b;
}
.projects-section {
  background: linear-gradient(180deg, #fff, #f4f8fb);
}
.section-heading {
  max-width: 780px;
}
.section-kicker {
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: var(--primary);
}
.section-heading p,
.text-secondary {
  color: var(--muted) !important;
}
.project-card-wrapper {
  height: 520px;
  perspective: 1400px;
  outline: none;
}
.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.project-card-wrapper:hover .project-card,
.project-card-wrapper:focus .project-card,
.project-card-wrapper.is-flipped .project-card {
  transform: rotateY(180deg);
}
.project-card-face {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  backface-visibility: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 84, 139, 0.1);
}
.project-card-front {
  display: flex;
  flex-direction: column;
}
.project-card-back {
  transform: rotateY(180deg);
  padding: 1.55rem;
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(255, 255, 255, 0.18),
      transparent 26%
    ),
    linear-gradient(145deg, var(--primary-dark), var(--primary));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.researcher-photo {
  width: 100%;
  height: 225px;
  object-fit: cover;
  object-position: center top;
  background: #dfeaf2;
  display: block;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.project-card-wrapper:hover .researcher-photo {
  transform: scale(1.05);
  filter: saturate(1.08);
}
.status-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  background: #fff;
  color: #188555;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}
.card-body-content {
  padding: 1.25rem 1.25rem 0.7rem;
}
.project-category {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.card-body-content h3 {
  font-size: 1.08rem;
  line-height: 1.38;
  margin-bottom: 1rem;
}
.researcher-name,
.university {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  margin: 0.55rem 0;
  color: #476176;
}
.researcher-name i,
.university i {
  font-size: 1.08rem;
  color: var(--primary);
}
.flip-hint {
  margin: auto 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.6rem;
  font-weight: 800;
  font-size: 0.82rem;
}
.flip-hint i {
  font-size: 1rem;
}
.back-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.project-card-back h3 {
  font-size: 1.15rem;
}
.project-data-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.project-data-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.64rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.project-data-list i {
  font-size: 1.2rem;
  color: #ffd66b;
}
.project-data-list small {
  display: block;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
}
.btn-documents {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
  border-radius: 14px;
  padding: 0.78rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn-documents:hover {
  background: #ffe9ad;
  color: #553d00;
  transform: translateY(-2px);
}
.btn-documents i {
  font-size: 1.2rem;
  margin-right: 0.35rem;
}
.media-section {
  position: relative;
  background: #081d2f;
  color: #fff;
  overflow: hidden;
}
.media-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(20, 166, 160, 0.28),
      transparent 28%
    ),
    radial-gradient(circle at 90% 80%, rgba(12, 95, 168, 0.32), transparent 30%);
}
.media-wrap {
  position: relative;
  z-index: 2;
}
.video-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 390px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
  background: #123b5b;
}
.video-stage video,
.video-stage .video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-fallback {
  background:
    linear-gradient(120deg, rgba(3, 28, 48, 0.28), rgba(4, 73, 111, 0.05)),
    url("../../../img/postgrado/banner-investigacion-4.webp") center/cover no-repeat;
}
.video-overlay-card {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 3rem);
  right: 1rem;
  max-width: 610px;
  background: rgba(4, 30, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
}
.play-orbit {
  position: absolute;
  right: 2rem;
  top: 2rem;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: pulse 2.1s infinite;
}
.play-orbit i {
  font-size: 2rem;
}
.media-points {
  display: grid;
  gap: 1rem;
}
.media-point {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.media-point i {
  font-size: 1.65rem;
  color: #ffd66b;
}
.media-point strong {
  display: block;
}
.media-point span {
  font-size: 0.88rem;
  opacity: 0.72;
}
.info-section {
  background: #fff;
}
.info-stat {
  height: 100%;
  padding: 1.25rem;
  border-radius: 20px;
  background: #f2f7fb;
  border: 1px solid #e3edf4;
  text-align: center;
  transition: 0.3s;
}
.info-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(23, 50, 77, 0.12);
}
.info-stat i {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.55rem;
}
.info-stat strong,
.info-stat span {
  display: block;
}
.info-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}
.portal-footer {
  background: #061f34;
  color: #fff;
}
.document-modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}
.modal-kicker,
.summary-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: var(--primary);
}
.document-tabs {
  gap: 0.55rem;
}
.document-tabs .nav-link {
  border-radius: 12px;
  font-weight: 800;
  color: #49647a;
  background: #edf3f7;
}
.document-tabs .nav-link.active {
  background: var(--primary);
}
.document-tabs i {
  font-size: 1.05rem;
  margin-right: 0.35rem;
}
.project-summary-panel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f2f7fb;
  border-radius: 18px;
  padding: 1.25rem;
}
.summary-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #dbeeff;
  color: var(--primary);
  font-size: 1.55rem;
}
.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-weight: 800;
}
.pdf-toolbar i {
  font-size: 1.2rem;
}
.pdf-viewer {
  width: 100%;
  height: 62vh;
  border: 1px solid #d8e3eb;
  border-radius: 14px;
  background: #f6f8fa;
}
.mobile-pdf-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}
.back-to-top {
  position: fixed;
  right: 3.7%;
  bottom: 25px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 15px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 95, 168, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1040;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top i {
  font-size: 1.3rem;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes kenburns {
  to {
    transform: scale(1.09);
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
}
@media (max-width: 991.98px) {
  .site-shell,
  .portal-navbar {
    width: 100%;
  }
  .portal-navbar {
    left: 0;
    transform: none;
  }
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(3, 34, 62, 0.88),
      rgba(5, 60, 103, 0.55)
    );
  }
  .project-card-wrapper {
    height: 505px;
  }
  .media-points {
    margin-top: 1.5rem;
  }
}
@media (max-width: 767.98px) {
  .hero-carousel,
  .hero-carousel .carousel-item,
  .min-vh-75 {
    min-height: 620px;
  }
  .hero-banner-image {
    object-position: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content .lead {
    font-size: 1rem;
  }
  .hero-content h1,
  .hero-content h2 {
    font-size: 2.15rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  .project-card-wrapper {
    height: 500px;
  }
  .researcher-photo {
    height: 220px;
  }
  .document-tabs {
    flex-direction: column;
  }
  .document-tabs .nav-link {
    width: 100%;
    text-align: left;
  }
  .pdf-viewer {
    height: 55vh;
  }
  .video-stage {
    min-height: 470px;
  }
  .video-overlay-card {
    left: 1rem;
    bottom: 1rem;
  }
  .play-orbit {
    width: 60px;
    height: 60px;
    right: 1rem;
    top: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* V4: se recupera el diseño circular original de los investigadores */
.project-card-wrapper {
  height: 530px;
  perspective: 1600px;
}
.project-card {
  transition: transform 1s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.project-card-wrapper:hover .project-card,
.project-card-wrapper:focus .project-card,
.project-card-wrapper.is-flipped .project-card {
  transform: rotateY(540deg);
}
.project-card-face {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
}
.project-card-front {
  background: #fff;
}
.project-card-front::before {
  content: "";
  height: 125px;
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(130deg, var(--primary-dark), var(--primary));
}
.status-badge {
  top: 18px;
  right: 18px;
  color: #fff;
  background: rgba(36, 132, 106, 0.94);
  box-shadow: none;
}
.researcher-photo {
  width: 142px;
  height: 142px;
  min-width: 142px;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 50%;
  margin: 54px auto 14px;
  z-index: 1;
  border: 6px solid #fff;
  background: #e8f0f3;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  transition: transform 0.8s ease;
  display: block;
}
.project-card-wrapper:hover .researcher-photo {
  transform: rotate(360deg);
  filter: none;
}
.card-body-content {
  padding: 0 1.45rem;
  text-align: center;
}
.card-body-content h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  min-height: 74px;
  margin-bottom: 1rem;
}
.researcher-name,
.university {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.flip-hint {
  margin: auto auto 18px;
  background: transparent;
  padding: 0;
}
.project-card-back {
  padding: 1.7rem;
  background: linear-gradient(
    145deg,
    rgba(7, 60, 109, 0.98),
    rgba(12, 95, 168, 0.96)
  );
  justify-content: space-between;
}
.btn-documents {
  background: linear-gradient(135deg, var(--gold), #ffd16d);
  color: var(--primary-dark);
  border: 0;
}
.btn-documents:hover {
  background: #ffd16d;
  color: var(--primary-dark);
}

/* Video: el texto ocupa una zona más discreta y aparece/desaparece suavemente */
.video-overlay-card {
  max-width: 500px;
  padding: 1rem 1.15rem;
  right: auto;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.video-overlay-card.is-hidden {
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
}
.video-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffd66b;
}
.video-kicker i {
  font-size: 1.15rem;
  margin-right: 0.4rem;
}
.media-point i {
  min-width: 34px;
  text-align: center;
  font-size: 1.8rem;
}

@media (max-width: 767.98px) {
  .project-card-wrapper {
    height: 520px;
  }
  .project-card-wrapper:hover .project-card {
    transform: none;
  }
  .project-card-wrapper.is-flipped .project-card,
  .project-card-wrapper:focus .project-card {
    transform: rotateY(540deg);
  }
  .researcher-photo {
    width: 138px;
    height: 138px;
    min-width: 138px;
    margin-top: 55px;
    object-position: 50% 25%;
  }
  .video-overlay-card {
    max-width: calc(100% - 2rem);
    right: 1rem;
    padding: 0.9rem 1rem;
  }
  .video-overlay-card h2 {
    font-size: 1.15rem;
  }
  .video-overlay-card p {
    font-size: 0.84rem;
  }
}

/* V5 — Tema verde petróleo y oro áurico */
:root {
  --primary: #006666;
  --primary-dark: #003f3f;
  --primary-deep: #002c2c;
  --accent: #0b8b83;
  --gold: #efbf04;
  --gold-light: #ffe47a;
  --gold-deep: #b88700;
  --ink: #173a38;
  --soft: #edf8f6;
  --shadow: 0 18px 50px rgba(0, 76, 72, 0.16);
}
body {
  background: #e7f0ee;
}
.site-shell {
  box-shadow: 0 0 48px rgba(0, 71, 67, 0.18);
}
.portal-navbar {
  background: linear-gradient(
    90deg,
    rgba(0, 47, 47, 0.98),
    rgba(0, 102, 102, 0.97),
    rgba(0, 74, 70, 0.98)
  );
  border-bottom: 1px solid rgba(239, 191, 4, 0.38);
  box-shadow: 0 8px 30px rgba(0, 54, 51, 0.32);
}
.brand-icon {
  color: var(--gold-light);
  background: linear-gradient(
    145deg,
    rgba(239, 191, 4, 0.22),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 226, 112, 0.42);
  box-shadow:
    inset 0 0 18px rgba(239, 191, 4, 0.14),
    0 0 18px rgba(239, 191, 4, 0.12);
}
.navbar .nav-link:hover {
  background: rgba(239, 191, 4, 0.14);
  color: var(--gold-light) !important;
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 35, 35, 0.93) 0%,
    rgba(0, 82, 77, 0.72) 48%,
    rgba(0, 65, 61, 0.2) 100%
  );
}
.hero-badge {
  color: #fff8d8;
  background: linear-gradient(
    135deg,
    rgba(239, 191, 4, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border-color: rgba(255, 226, 112, 0.5);
  box-shadow: 0 0 22px rgba(239, 191, 4, 0.12);
}
.hero-badge i,
.ticker-item i,
.project-data-list i,
.media-point i {
  color: var(--gold-light);
}
.hero-content .btn-light {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 112, 0.75);
  background: linear-gradient(
    135deg,
    #fff9d9,
    var(--gold-light) 48%,
    #e6a900 100%
  );
  color: #28403d;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(239, 191, 4, 0.27);
}
.hero-content .btn-light::after,
.btn-documents::after,
.back-to-top::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -85%;
  width: 38%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.82),
    transparent
  );
  transform: skewX(-22deg);
  animation: goldShine 4.2s ease-in-out infinite;
}
.hero-content .btn-light:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}
.carousel-indicators [data-bs-target] {
  background-color: var(--gold-light);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 69, 65, 0.72);
  border: 1px solid rgba(239, 191, 4, 0.4);
}
.research-ticker {
  background: linear-gradient(
    90deg,
    var(--primary-deep),
    var(--primary),
    var(--primary-deep)
  );
  border-color: rgba(239, 191, 4, 0.28);
}
.projects-section {
  background: linear-gradient(180deg, #fff, #f0f8f6);
}
.section-kicker,
.project-category {
  color: var(--primary);
}
.section-heading h2 {
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary),
    var(--gold-deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.project-card-face {
  border-color: rgba(0, 102, 102, 0.14);
}
.project-card-front::before {
  background: linear-gradient(
    130deg,
    var(--primary-deep),
    var(--primary),
    #087f77
  );
}
.status-badge {
  color: #173a30;
  background: linear-gradient(135deg, #fff4b5, var(--gold) 55%, #ca9400);
  border: 1px solid rgba(255, 246, 190, 0.8);
  box-shadow: 0 8px 20px rgba(99, 71, 0, 0.22);
}
.researcher-photo {
  border-color: #fffdf3;
  box-shadow:
    0 0 0 3px rgba(239, 191, 4, 0.75),
    0 12px 26px rgba(0, 55, 52, 0.24),
    0 0 24px rgba(239, 191, 4, 0.18);
}
.researcher-name i,
.university i {
  color: var(--primary);
}
.flip-hint {
  color: var(--primary);
  font-weight: 900;
}
.flip-hint i {
  color: var(--gold-deep);
  filter: drop-shadow(0 0 5px rgba(239, 191, 4, 0.35));
}
.project-card-back {
  background:
    radial-gradient(
      circle at 85% 8%,
      rgba(255, 224, 103, 0.22),
      transparent 25%
    ),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
  border: 1px solid rgba(239, 191, 4, 0.22);
}
.back-icon {
  color: var(--gold-light);
  border: 1px solid rgba(255, 226, 112, 0.34);
  box-shadow:
    inset 0 0 20px rgba(239, 191, 4, 0.12),
    0 0 18px rgba(239, 191, 4, 0.12);
}
.btn-documents {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #fff6bf 0%,
    var(--gold-light) 22%,
    var(--gold) 55%,
    #c38d00 100%
  );
  color: #263f3b;
  border: 1px solid #ffe993;
  box-shadow: 0 11px 28px rgba(122, 85, 0, 0.3);
}
.btn-documents:hover {
  background: linear-gradient(135deg, #fffbdc, #ffd84d, #e8ad00);
  color: #163b37;
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(122, 85, 0, 0.4);
}
.media-section {
  background: #032e2c;
}
.media-section:before {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(0, 150, 139, 0.25),
      transparent 30%
    ),
    radial-gradient(circle at 90% 80%, rgba(239, 191, 4, 0.14), transparent 28%);
}
.video-stage {
  background: #06423e;
  border: 1px solid rgba(239, 191, 4, 0.24);
  box-shadow:
    0 25px 65px rgba(0, 34, 32, 0.48),
    0 0 28px rgba(239, 191, 4, 0.08);
}
.video-overlay-card {
  background: rgba(0, 46, 43, 0.78);
  border-color: rgba(255, 225, 105, 0.24);
}
.video-kicker {
  color: var(--gold-light);
}
.play-orbit {
  color: var(--gold-light);
  border-color: rgba(255, 226, 112, 0.5);
  box-shadow: 0 0 25px rgba(239, 191, 4, 0.18);
}
.media-point {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(239, 191, 4, 0.14);
}
.info-stat {
  background: #edf8f6;
  border-color: #d6ebe7;
}
.info-stat:hover {
  box-shadow: 0 16px 34px rgba(0, 84, 79, 0.14);
  border-color: rgba(239, 191, 4, 0.36);
}
.info-stat i {
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(239, 191, 4, 0.18));
}
.portal-footer {
  background: linear-gradient(135deg, #002d2c, #004d49);
  border-top: 1px solid rgba(239, 191, 4, 0.25);
}
.document-tabs .nav-link {
  background: #edf6f4;
  color: #375f5b;
}
.document-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 102, 102, 0.22);
}
.summary-icon {
  background: #e5f5f2;
  color: var(--primary);
  border: 1px solid rgba(239, 191, 4, 0.22);
}
.back-to-top {
  position: fixed;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  border: 1px solid rgba(239, 191, 4, 0.55);
  box-shadow:
    0 12px 28px rgba(0, 82, 77, 0.35),
    0 0 18px rgba(239, 191, 4, 0.14);
}
.back-to-top i {
  color: var(--gold-light);
}

@keyframes goldShine {
  0%,
  52% {
    left: -85%;
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  78% {
    left: 135%;
    opacity: 0;
  }
  100% {
    left: 135%;
    opacity: 0;
  }
}
@keyframes goldPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(239, 191, 4, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(239, 191, 4, 0.22);
  }
}
.brand-icon,
.back-icon,
.play-orbit {
  animation: goldPulse 3.2s ease-in-out infinite;
}

@media (max-width: 991.98px) {
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(0, 35, 35, 0.91),
      rgba(0, 82, 77, 0.6)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content .btn-light::after,
  .btn-documents::after,
  .back-to-top::after {
    display: none;
  }
}

/* V5.1 — Modal integrado al tema verde petróleo y oro áurico */
#documentsModal .modal-dialog {
  filter: drop-shadow(0 26px 48px rgba(0, 43, 41, 0.34));
}
#documentsModal .document-modal-content {
  position: relative;
  border: 1px solid rgba(239, 191, 4, 0.68);
  background: linear-gradient(180deg, #fffef7 0%, #f5fbf9 100%);
  box-shadow:
    0 0 0 3px rgba(0, 102, 102, 0.12),
    0 0 32px rgba(239, 191, 4, 0.18),
    0 30px 70px rgba(0, 44, 42, 0.28);
}
#documentsModal .document-modal-content::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--gold-deep),
    var(--gold-light),
    #fff6b5,
    var(--gold),
    var(--gold-deep)
  );
  background-size: 220% 100%;
  animation: modalGoldFlow 5s linear infinite;
}
#documentsModal .modal-header {
  position: relative;
  padding: 1.65rem 1.75rem 1.35rem;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(255, 226, 112, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-bottom: 1px solid rgba(239, 191, 4, 0.34) !important;
}
#documentsModal .modal-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}
#documentsModal .modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(239, 191, 4, 0.35);
}
#documentsModal .modal-kicker::before {
  content: "\F4E1";
  font-family: "bootstrap-icons";
  font-size: 1rem;
}
#documentsModal #modalProjectName,
#documentsModal #modalInvestigatorName {
  color: rgba(255, 255, 255, 0.78) !important;
}
#documentsModal .btn-close {
  opacity: 1;
  border-radius: 50%;
  padding: 0.72rem;
  background-color: var(--gold-light);
  background-size: 0.72rem;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 18px rgba(239, 191, 4, 0.28);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
#documentsModal .btn-close:hover {
  transform: rotate(90deg) scale(1.08);
  filter: brightness(1.08);
}
#documentsModal .modal-body {
  padding: 1.25rem 1.75rem 1.5rem;
}
#documentsModal .document-tabs {
  padding: 0.42rem;
  border: 1px solid rgba(0, 102, 102, 0.14);
  border-radius: 16px;
  background: #eaf6f3;
  box-shadow: inset 0 1px 7px rgba(0, 73, 69, 0.06);
}
#documentsModal .document-tabs .nav-link {
  position: relative;
  overflow: hidden;
  color: #315c57;
  background: transparent;
  border: 1px solid transparent;
  transition: 0.28s ease;
}
#documentsModal .document-tabs .nav-link:hover {
  color: var(--primary-dark);
  background: #fff;
  border-color: rgba(239, 191, 4, 0.4);
  transform: translateY(-1px);
}
#documentsModal .document-tabs .nav-link.active {
  color: #233e39;
  background: linear-gradient(
    135deg,
    #fff9cf 0%,
    var(--gold-light) 34%,
    var(--gold) 68%,
    #c99100 100%
  );
  border-color: #ffe47a;
  box-shadow:
    0 8px 20px rgba(135, 94, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
#documentsModal .document-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -45%;
  width: 24%;
  height: 230%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  transform: skewX(-24deg);
  animation: modalTabShine 4.4s ease-in-out infinite;
}
#documentsModal .document-tabs i {
  color: var(--gold-deep);
  filter: drop-shadow(0 0 4px rgba(239, 191, 4, 0.22));
}
#documentsModal .project-summary-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f3fbf8, #fffbea);
  border: 1px solid rgba(239, 191, 4, 0.42);
  box-shadow: 0 12px 28px rgba(0, 80, 75, 0.09);
}
#documentsModal .project-summary-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 191, 4, 0.18), transparent 68%);
}
#documentsModal .summary-icon {
  color: var(--primary-dark);
  background: linear-gradient(145deg, #fff8c8, var(--gold-light), var(--gold));
  border: 1px solid #ffe990;
  box-shadow:
    0 8px 22px rgba(123, 86, 0, 0.2),
    0 0 18px rgba(239, 191, 4, 0.15);
}
#documentsModal .summary-label {
  color: var(--gold-deep);
}
#documentsModal .project-summary-panel h3 {
  color: var(--primary-dark);
}
.document-modal-actions {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}
.btn-attach-documents {
  background: linear-gradient(135deg, #fff6a5, var(--gold-light), var(--gold));
  border: 1px solid #f2c318;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.65rem 1rem;
  text-transform: uppercase;
}
.btn-attach-documents:hover {
  background: var(--gold);
  color: var(--primary-deep);
}
.research-action-bar {
  align-items: center;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  border: 1px solid rgba(242, 181, 68, 0.55);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(0, 63, 58, 0.2);
  display: grid;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  grid-template-columns: repeat(4, 1fr);
  margin: -50px auto 0;
  max-width: 1540px;
  padding: 2rem clamp(1.2rem, 4vw, 4rem);
  position: relative;
  width: calc(100% - 6vw);
  z-index: 8;
}
.research-action-button {
  align-items: center;
  background: linear-gradient(135deg, #fff4ad, var(--gold));
  border: 1px solid #efbd22;
  border-radius: 999px;
  color: var(--primary-deep);
  display: inline-flex;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 900;
  gap: 0.5rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.research-action-button:hover,
.research-action-button:focus {
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
  color: var(--primary-deep);
  transform: translateY(-2px);
}
.guidance-modal .modal-content { border: 1px solid var(--gold); border-radius: 24px; overflow: hidden; }
.guidance-modal .modal-header { background: linear-gradient(120deg, var(--primary-deep), var(--primary)); color: #fff; padding: 1.5rem 1.8rem; }
.guidance-modal .modal-header span { color: #ffe36e; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.13em; }
.guidance-modal .modal-header h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); margin: 0.25rem 0 0; }
.guidance-modal .modal-body { background: #f7fbfa; padding: 1.6rem; }
.public-guidance-list { counter-reset: public-requirement; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.public-guidance-list li { background: #fff; border: 1px solid #d8e8e5; border-radius: 14px; line-height: 1.5; padding: 1rem 1rem 1rem 3.3rem; position: relative; }
.public-guidance-list:not(.public-guidance-list--checks) li::before { background: var(--gold); border-radius: 50%; color: var(--primary-deep); content: counter(public-requirement); counter-increment: public-requirement; display: grid; font-size: 0.75rem; font-weight: 900; height: 28px; left: 0.9rem; place-items: center; position: absolute; top: 0.9rem; width: 28px; }
.public-guidance-list--checks li::before { color: var(--primary); content: "✓"; font-size: 1.3rem; font-weight: 900; left: 1rem; position: absolute; top: 0.75rem; }
.guidance-primary-button { background: var(--gold); color: var(--primary-deep); font-weight: 900; }
@media (max-width: 991.98px) { .research-action-bar { grid-template-columns: repeat(2, 1fr); margin-top: -35px; } }
@media (max-width: 575.98px) { .research-action-bar { border-radius: 20px; grid-template-columns: 1fr; padding: 1.2rem; } .public-guidance-list { grid-template-columns: 1fr; } }
#documentsModal #modalProjectSummary {
  max-height: 6.4em;
  overflow-y: auto;
  padding-right: 0.5rem;
}
#documentsModal .pdf-toolbar {
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  color: #fff;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border: 1px solid rgba(239, 191, 4, 0.35);
  border-bottom: 0;
}
#documentsModal .pdf-toolbar > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#documentsModal .pdf-toolbar > span i {
  color: var(--gold-light);
  filter: drop-shadow(0 0 5px rgba(239, 191, 4, 0.32));
}
#documentsModal .pdf-toolbar .btn-outline-danger {
  color: #273f3a;
  background: linear-gradient(135deg, #fff8cb, var(--gold-light), var(--gold));
  border-color: #ffe88b;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(112, 78, 0, 0.2);
}
#documentsModal .pdf-toolbar .btn-outline-danger:hover {
  color: #173b36;
  background: linear-gradient(135deg, #fffde9, #ffd948, #dca300);
  transform: translateY(-2px);
}
#documentsModal .pdf-viewer {
  border: 2px solid rgba(239, 191, 4, 0.6);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 68, 64, 0.1);
}
#documentsModal .mobile-pdf-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: #4e5d54;
  background: #fff9db;
  border: 1px solid rgba(239, 191, 4, 0.36);
}
#documentsModal .mobile-pdf-note i {
  color: var(--gold-deep);
}
#documentsModal.modal.show {
  background: rgba(0, 34, 32, 0.24);
  backdrop-filter: blur(3px);
}
@keyframes modalGoldFlow {
  to {
    background-position: 220% 0;
  }
}
@keyframes modalTabShine {
  0%,
  58% {
    left: -45%;
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  82%,
  100% {
    left: 125%;
    opacity: 0;
  }
}
@media (max-width: 767.98px) {
  #documentsModal .modal-header {
    padding: 1.35rem 1rem 1.1rem;
  }
  #documentsModal .modal-body {
    padding: 1rem;
  }
  #documentsModal .document-tabs {
    padding: 0.35rem;
  }
  #documentsModal .pdf-toolbar {
    align-items: flex-start;
    gap: 0.65rem;
    flex-direction: column;
  }
  #documentsModal .pdf-toolbar .btn-outline-danger {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #documentsModal .document-modal-content::before,
  #documentsModal .document-tabs .nav-link.active::after {
    animation: none;
  }
}

/* ===== Recursos científicos: panel vertical sin alterar la galería ===== */
.scientific-links-section {
  background: linear-gradient(180deg, #f8fbfa 0%, #eef7f5 100%);
  position: relative;
  overflow: hidden;
}
.scientific-links-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  left: -180px;
  top: -160px;
  background: radial-gradient(circle, rgba(239, 191, 4, 0.13), transparent 68%);
}
.scientific-links-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 2.2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(0, 102, 102, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 55px rgba(0, 70, 66, 0.1);
  backdrop-filter: blur(8px);
}
.scientific-links-intro {
  padding: 1rem 1.3rem;
}
.scientific-links-intro h2 {
  color: var(--primary-dark);
  max-width: 650px;
}
.scientific-links-intro p {
  color: #5c706c;
  max-width: 680px;
  font-size: 1.04rem;
  line-height: 1.75;
}
.scientific-link-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: #315c57;
  background: #f1faf8;
  border: 1px solid rgba(0, 102, 102, 0.14);
}
.scientific-link-notice i {
  font-size: 1.35rem;
  color: var(--gold-deep);
}
.scientific-magazine-aside {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(
    155deg,
    var(--primary-deep),
    var(--primary-dark) 55%,
    #007e77
  );
  border: 1px solid rgba(239, 191, 4, 0.55);
  box-shadow:
    0 18px 42px rgba(0, 65, 61, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.scientific-magazine-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.11) 48%,
    transparent 56%
  );
  transform: translateX(-130%);
  animation: asideGoldSweep 8s ease-in-out infinite;
}
.aside-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  align-items: center;
  padding: 1rem 1.2rem;
  color: white;
  border-bottom: 1px solid rgba(239, 191, 4, 0.35);
  background: rgba(0, 40, 38, 0.34);
}
.aside-heading > i {
  grid-row: 1/3;
  font-size: 1.8rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 8px rgba(239, 191, 4, 0.35));
}
.aside-heading > span {
  font-weight: 900;
  letter-spacing: 0.02em;
}
.aside-heading > small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
}
.magazine-viewport {
  height: 390px;
  overflow: hidden;
  padding: 0.85rem;
}
.magazine-track {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: magazineRise 24s linear infinite;
  will-change: transform;
}
.magazine-viewport:hover .magazine-track,
.magazine-viewport:focus-within .magazine-track {
  animation-play-state: paused;
}
.magazine-link {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 112px;
  padding: 0.7rem;
  border-radius: 18px;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 10px 24px rgba(0, 28, 26, 0.16);
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}
.magazine-link:hover {
  color: white;
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(239, 191, 4, 0.65);
}
.magazine-link img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 230, 118, 0.45);
}
.magazine-link span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.magazine-link strong {
  font-size: 0.93rem;
  line-height: 1.2;
}
.magazine-link small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  line-height: 1.25;
}
.magazine-link > i {
  font-size: 1.35rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 6px rgba(239, 191, 4, 0.25));
}
@keyframes magazineRise {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 0.425rem));
  }
}
@keyframes asideGoldSweep {
  0%,
  58% {
    transform: translateX(-130%);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  88%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}
@media (max-width: 991.98px) {
  .scientific-links-shell {
    grid-template-columns: 1fr;
  }
  .scientific-links-intro {
    padding: 0.3rem;
  }
  .scientific-magazine-aside {
    max-width: 620px;
    width: 100%;
    margin: auto;
  }
  .magazine-viewport {
    height: 340px;
  }
}
@media (max-width: 575.98px) {
  .scientific-links-shell {
    padding: 1rem;
    border-radius: 20px;
  }
  .scientific-links-intro h2 {
    font-size: 1.65rem;
  }
  .magazine-viewport {
    height: 315px;
    padding: 0.7rem;
  }
  .magazine-link {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    min-height: 96px;
  }
  .magazine-link img {
    width: 62px;
    height: 82px;
  }
  .aside-heading > small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .magazine-track,
  .scientific-magazine-aside::after {
    animation: none;
  }
  .magazine-viewport {
    height: auto;
    max-height: 420px;
    overflow: auto;
  }
  .magazine-link[aria-hidden="true"] {
    display: none;
  }
}

/* ===== Publicación destacada: ocupa el espacio informativo sin alterar la web ===== */
.scientific-content-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}
.scientific-content-column .scientific-links-intro {
  padding: 0.35rem 1rem 0.1rem;
}
.featured-publication-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 102, 102, 0.15);
  box-shadow: 0 16px 38px rgba(0, 70, 66, 0.11);
}
.featured-publication-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-bottom: 2px solid rgba(239, 191, 4, 0.75);
}
.featured-publication-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.featured-publication-heading i {
  font-size: 1.35rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 7px rgba(239, 191, 4, 0.4));
}
.featured-publication-heading small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
  text-align: right;
}
.featured-publication-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  min-height: 230px;
  padding: 1.15rem;
  background: linear-gradient(140deg, #fff 0%, #fbfdfc 58%, #fff9d9 100%);
}
.featured-publication-card > img {
  width: 145px;
  height: 195px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(239, 191, 4, 0.58);
  box-shadow: 0 12px 28px rgba(38, 61, 55, 0.19);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.featured-publication-card:hover > img {
  transform: translateY(-4px);
  box-shadow:
    0 17px 34px rgba(38, 61, 55, 0.24),
    0 0 18px rgba(239, 191, 4, 0.16);
}
.featured-publication-body {
  min-width: 0;
}
.featured-source {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.featured-source i {
  color: var(--gold-deep);
  font-size: 1rem;
}
.featured-publication-body h3 {
  margin: 0 0 0.55rem;
  color: var(--primary-dark);
  font-size: 1.27rem;
  font-weight: 900;
}
.featured-publication-body p {
  margin: 0 0 0.9rem;
  color: #5c706c;
  line-height: 1.55;
  font-size: 0.92rem;
}
.featured-publication-body a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}
.featured-publication-body a i {
  color: var(--gold-deep);
  font-size: 1.12rem;
}
.featured-publication-body a:hover {
  gap: 0.72rem;
  color: var(--primary);
}
.featured-publication-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 102, 102, 0.1);
  background: #f8fcfb;
}
.featured-publication-footer .carousel-indicators {
  position: static;
  margin: 0;
  justify-content: flex-start;
  gap: 0.35rem;
}
.featured-publication-footer .carousel-indicators [data-bs-target] {
  width: 22px;
  height: 5px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background-color: rgba(0, 102, 102, 0.35);
  opacity: 1;
}
.featured-publication-footer .carousel-indicators .active {
  width: 38px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}
.featured-publication-footer .scientific-link-notice {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.74rem;
}
.featured-publication-footer .scientific-link-notice i {
  font-size: 1rem;
}
@media (max-width: 1199.98px) {
  .scientific-links-shell {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .featured-publication-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .featured-publication-card > img {
    width: 125px;
    height: 170px;
  }
}
@media (max-width: 991.98px) {
  .featured-publication-carousel {
    margin: 0;
  }
  .featured-publication-card {
    grid-template-columns: 145px minmax(0, 1fr);
  }
  .featured-publication-card > img {
    width: 145px;
    height: 195px;
  }
}
@media (max-width: 575.98px) {
  .featured-publication-heading {
    align-items: flex-start;
  }
  .featured-publication-heading small {
    display: none;
  }
  .featured-publication-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.85rem;
    min-height: 210px;
    padding: 0.9rem;
  }
  .featured-publication-card > img {
    width: 92px;
    height: 132px;
  }
  .featured-publication-body h3 {
    font-size: 1.05rem;
  }
  .featured-publication-body p {
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .featured-publication-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .featured-publication-footer .scientific-link-notice {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .featured-publication-card > img {
    transition: none;
  }
}

/* ===== Repositorio flotante y lista de investigaciones finalizadas ===== */
.repository-scientist {
  position: fixed;
  left: 2.1%;
  bottom: 15px;
  width: 158px;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 1041;
  cursor: pointer;
  filter: drop-shadow(0 14px 20px rgba(0, 55, 52, 0.24));
  transition: transform 0.3s ease;
}
.repository-scientist:hover {
  transform: translateY(-7px) scale(1.025);
}
.scientist-image-wrap {
  display: block;
  width: 126px;
  height: 154px;
  margin: auto;
  overflow: hidden;
  border-radius: 52% 52% 20% 20%;
  background: #fff;
  animation: scientistFloat 3.2s ease-in-out infinite;
}
.scientist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.repository-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: -8px;
  padding: 0.55rem 0.72rem;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border: 2px solid var(--gold);
  box-shadow: 0 10px 22px rgba(0, 68, 64, 0.25);
  text-align: left;
}
.repository-sign > i {
  color: var(--gold-light);
  font-size: 1.25rem;
}
.repository-sign span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.repository-sign strong {
  font-size: 0.78rem;
}
.repository-sign small {
  margin-top: 0.18rem;
  color: #fff3a7;
  font-size: 0.58rem;
  font-weight: 800;
}
.repository-badge {
  position: absolute;
  right: -2px;
  top: 18px;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #173b36;
  background: linear-gradient(145deg, #fff8b5, var(--gold-light), var(--gold));
  border: 2px solid #fff;
  font-weight: 950;
  box-shadow: 0 5px 14px rgba(116, 79, 0, 0.3);
  z-index: 2;
}
@keyframes scientistFloat {
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
.repository-modal-content {
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 48, 45, 0.28);
}
.repository-modal-header {
  position: relative;
  padding: 1.5rem 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-bottom: 3px solid var(--gold) !important;
}
.repository-modal-header .modal-kicker {
  color: var(--gold-light);
}
.repository-modal-header p {
  color: rgba(255, 255, 255, 0.75);
}
.repository-modal-header .btn-close {
  filter: invert(1) sepia(1) saturate(4);
  opacity: 0.9;
}
.repository-modal-body {
  background: linear-gradient(180deg, #fbfefd, #f5fbfa);
}
.repository-summary-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.repository-total,
.repository-last-update {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(0, 102, 102, 0.14);
  box-shadow: 0 8px 20px rgba(0, 72, 68, 0.06);
}
.repository-total > i,
.repository-last-update > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-dark);
  font-size: 1.3rem;
  background: linear-gradient(145deg, #fff7af, var(--gold-light), var(--gold));
}
.repository-total span,
.repository-last-update span {
  display: flex;
  flex-direction: column;
}
.repository-total strong {
  font-size: 1.35rem;
  color: var(--primary-dark);
}
.repository-total small,
.repository-last-update small {
  color: #657a76;
}
.repository-last-update strong {
  color: var(--primary-dark);
  font-size: 0.9rem;
}
.repository-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 175px 245px;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.repository-search .input-group-text {
  color: var(--gold-deep);
  background: #fff9dc;
  border-color: rgba(0, 102, 102, 0.18);
}
.repository-search .form-control,
.repository-filter {
  border-color: rgba(0, 102, 102, 0.18);
  box-shadow: none;
}
.repository-search .form-control:focus,
.repository-filter:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(239, 191, 4, 0.13);
}
.repository-list-head {
  grid-template-columns:
    54px minmax(280px, 1.5fr) minmax(230px, 1fr)
    115px 170px;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 13px 13px 0 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.repository-list {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding-top: 0.72rem;
}
.repository-row {
  display: grid;
  grid-template-columns:
    54px minmax(280px, 1.5fr) minmax(230px, 1fr)
    115px 170px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 102, 102, 0.13);
  box-shadow: 0 8px 22px rgba(0, 72, 68, 0.07);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}
.repository-row:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 191, 4, 0.72);
  box-shadow: 0 13px 28px rgba(0, 72, 68, 0.12);
}
.repository-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-dark);
  font-weight: 950;
  background: linear-gradient(145deg, #fff7b0, var(--gold-light), var(--gold));
  box-shadow: 0 6px 14px rgba(118, 81, 0, 0.16);
}
.repository-project {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.repository-topic-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  font-size: 1.05rem;
}
.repository-project h3 {
  margin: 0 0 0.28rem;
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.32;
  font-weight: 950;
}
.repository-project p {
  margin: 0;
  color: #687b77;
  font-size: 0.77rem;
  line-height: 1.42;
}
.repository-researcher {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: #60736f;
  font-size: 0.77rem;
}
.repository-researcher strong {
  color: #355953;
  font-size: 0.82rem;
}
.repository-researcher i {
  width: 17px;
  color: var(--gold-deep);
}
.repository-state {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.25rem;
}
.repository-year {
  font-weight: 950;
  color: var(--primary);
}
.repository-status {
  font-size: 0.72rem;
  font-weight: 900;
  color: #23765e;
}
.repository-status i {
  color: var(--gold-deep);
}
.repository-state small {
  color: #778a86;
  font-size: 0.7rem;
}
.repository-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.repository-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.48rem 0.45rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 900;
}
.btn-repository {
  color: #243e39;
  background: linear-gradient(135deg, #fff6a5, var(--gold-light), var(--gold));
  border: 1px solid #f8d63e;
}
.btn-repository:hover {
  color: #173b36;
  background: linear-gradient(135deg, #fffbdc, #ffd84e, #dca400);
}
.btn-repository-outline {
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(0, 102, 102, 0.34);
}
.btn-repository-outline:hover {
  color: #fff;
  background: var(--primary);
}
.repository-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #61736f;
}
.repository-empty i {
  font-size: 2.5rem;
  color: var(--gold-deep);
}
.repository-empty h3 {
  color: var(--primary-dark);
  margin-top: 0.7rem;
}
.repository-footer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 13px;
  background: #eef8f6;
  border: 1px solid rgba(0, 102, 102, 0.12);
}
.repository-footer-tools p {
  margin: 0;
  color: #58706b;
  font-size: 0.8rem;
}
.repository-footer-tools .page-link {
  color: var(--primary);
  border-color: rgba(0, 102, 102, 0.18);
}
.repository-footer-tools .page-item.active .page-link {
  color: #183d37;
  background: var(--gold);
  border-color: var(--gold);
}
.repository-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: #5f6f69;
  background: #fff9df;
  border: 1px solid rgba(239, 191, 4, 0.35);
  font-size: 0.76rem;
}
.repository-note i {
  color: var(--gold-deep);
}
@media (max-width: 1199.98px) {
  .repository-list-head,
  .repository-row {
    grid-template-columns:
      46px minmax(250px, 1.35fr) minmax(205px, 1fr)
      100px 145px;
    gap: 0.7rem;
  }
  .repository-actions {
    grid-template-columns: 1fr;
  }
  .repository-tools {
    grid-template-columns: minmax(0, 1fr) 160px 220px;
  }
}
@media (max-width: 991.98px) {
  .repository-scientist {
    width: 130px;
    left: 10px;
  }
  .scientist-image-wrap {
    width: 105px;
    height: 128px;
  }
  .repository-tools {
    grid-template-columns: 1fr 1fr;
  }
  .repository-search {
    grid-column: 1/-1;
  }
  .repository-row {
    grid-template-columns: 48px minmax(0, 1fr) 150px;
  }
  .repository-researcher {
    grid-column: 2/3;
  }
  .repository-state {
    grid-column: 3/4;
    grid-row: 1/3;
  }
  .repository-actions {
    grid-column: 2/4;
    grid-template-columns: repeat(2, minmax(0, 150px));
    justify-content: end;
  }
}
@media (max-width: 575.98px) {
  .repository-scientist {
    width: 92px;
    bottom: 9px;
  }
  .scientist-image-wrap {
    width: 76px;
    height: 92px;
  }
  .repository-sign {
    padding: 0.38rem 0.45rem;
    border-radius: 11px;
  }
  .repository-sign > i {
    font-size: 0.95rem;
  }
  .repository-sign strong {
    font-size: 0.62rem;
  }
  .repository-sign small {
    display: none;
  }
  .repository-badge {
    width: 27px;
    min-width: 27px;
    height: 27px;
    right: -2px;
    top: 8px;
    font-size: 0.72rem;
  }
  .repository-modal-header {
    padding: 1.15rem;
  }
  .repository-modal-header h2 {
    font-size: 1.2rem;
  }
  .repository-summary-bar {
    flex-direction: column;
  }
  .repository-last-update {
    display: none;
  }
  .repository-tools {
    grid-template-columns: 1fr;
  }
  .repository-search {
    grid-column: auto;
  }
  .repository-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem;
  }
  .repository-number {
    position: absolute;
    right: 1rem;
    width: 34px;
    height: 34px;
  }
  .repository-project {
    padding-right: 45px;
  }
  .repository-researcher,
  .repository-state,
  .repository-actions {
    display: flex;
    grid-column: auto;
    grid-row: auto;
  }
  .repository-state {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }
  .repository-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .repository-footer-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .repository-footer-tools nav {
    align-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scientist-image-wrap {
    animation: none !important;
  }
}

/* ===== V11: mascota flotante del repositorio ===== */
.repository-scientist {
  position: fixed;
  left: clamp(10px, 1.6vw, 28px);
  bottom: 10px;
  width: clamp(150px, 15vw, 220px);
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 1041;
  cursor: pointer;
  filter: drop-shadow(0 16px 22px rgba(0, 55, 52, 0.26));
  transform-origin: 50% 100%;
  animation: repositoryCharacterFloat 3.4s ease-in-out infinite;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}
.repository-scientist:hover,
.repository-scientist:focus-visible {
  animation-play-state: paused;
  transform: translateY(-9px) rotate(-1.5deg) scale(1.035);
  filter: drop-shadow(0 22px 28px rgba(0, 55, 52, 0.34));
  outline: none;
}
.repository-scientist .scientist-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  animation: repositoryCharacterBreath 2.8s ease-in-out infinite;
}
.repository-tooltip {
  position: absolute;
  left: 92%;
  top: 34%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  max-width: 210px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(239, 191, 4, 0.72);
  border-radius: 14px 14px 14px 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  box-shadow: 0 12px 24px rgba(0, 65, 61, 0.22);
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0;
  transform: translateX(-10px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.repository-tooltip i {
  color: var(--gold-light);
  font-size: 1rem;
}
.repository-scientist:hover .repository-tooltip,
.repository-scientist:focus-visible .repository-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.repository-live-count {
  position: absolute;
  right: 6%;
  bottom: 8%;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #123f3a;
  background: linear-gradient(145deg, #fff9c9, var(--gold-light), var(--gold));
  box-shadow: 0 6px 16px rgba(90, 65, 0, 0.32);
  font-weight: 950;
  animation: repositoryCountPulse 2.4s ease-in-out infinite;
}
@keyframes repositoryCharacterFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-9px) rotate(0.8deg);
  }
}
@keyframes repositoryCharacterBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.008);
  }
}
@keyframes repositoryCountPulse {
  0%,
  100% {
    box-shadow: 0 6px 16px rgba(90, 65, 0, 0.32);
  }
  50% {
    box-shadow: 0 6px 22px rgba(239, 191, 4, 0.72);
  }
}
@media (max-width: 767.98px) {
  .repository-scientist {
    width: 130px;
    left: 4px;
    bottom: 4px;
  }
  .repository-tooltip {
    display: none;
  }
  .repository-live-count {
    min-width: 29px;
    height: 29px;
    font-size: 0.78rem;
    right: 2%;
    bottom: 5%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .repository-scientist,
  .repository-scientist .scientist-image,
  .repository-live-count {
    animation: none !important;
  }
}
