:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --text: #222222;
  --muted: #5a5a5a;
  --line: rgba(0, 85, 250, 0.1);
  --primary: #0055fa;
  --primary-deep: #0055fa;
  --secondary: #4c4c4c;
  --secondary-deep: #363636;
  --secondary-light: #929292;
  --accent: #fff500;
  --shadow: 0 4px 20px rgba(0, 85, 250, 0.1);
  --radius: 8px;
  --radius-sm: 4px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  transform: translateY(-140%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 85, 250, 0.22);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translate3d(42px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translate3d(-42px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes softZoom {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tiltRise {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(8deg) translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translate3d(0, 0, 0);
  }
}

@keyframes sweepUp {
  from {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.98);
    letter-spacing: 0.02em;
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    letter-spacing: 0;
  }
}

@keyframes floatBob {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes softPulse {

  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes topbarReveal {
  from {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes topbarUnderlineSweep {
  from {
    transform: scaleX(0);
    opacity: 0.3;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes heroPanelEnter {
  from {
    opacity: 0;
    transform: translate3d(-28px, 24px, 0) scale(0.97);
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.12);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 24px 54px rgba(17, 17, 17, 0.22);
  }
}

@keyframes heroVisualEnter {
  from {
    opacity: 0;
    transform: translate3d(40px, 24px, 0) scale(0.93);
    filter: saturate(0.86);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
}

.reveal {
  opacity: 0;
  will-change: transform, opacity;
  content-visibility: visible;
}

.reveal.is-visible {
  opacity: 1;
}

.anim-fade-up.is-visible {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-slide-left.is-visible {
  animation: slideLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-slide-right.is-visible {
  animation: slideRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-zoom.is-visible {
  animation: softZoom 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-tilt.is-visible {
  animation: tiltRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-sweep-up.is-visible {
  animation: sweepUp 1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, var(--secondary-deep) 0%, var(--secondary) 52%, var(--secondary-light) 100%);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  color: #ffffff;
  font-size: 0.92rem;
}

.topbar-inner a {
  color: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.08rem;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.topbar-back::before {
  content: "\2190";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
}

.topbar-inner a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.24rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18));
  transform-origin: center;
}

.topbar-inner a:hover::after,
.topbar-inner a:focus-visible::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #fff500, rgba(255, 255, 255, 0.35));
}

.home-page .topbar-inner a {
  animation: topbarReveal 0.74s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page .topbar-inner a::after {
  animation: topbarUnderlineSweep 0.76s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.topbar-back {
  animation-delay: 0.06s;
}

.topbar-back::after {
  animation-delay: 0.22s;
}

.topbar-inner>a:last-child {
  animation-delay: 0.18s;
}

.topbar-inner>a:last-child::after {
  animation-delay: 0.34s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav a.is-current::after {
  transform: scaleX(1);
}

.main-nav a.nav-lab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.nav-new-badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.35rem;
  padding: 0.28rem 0.5rem 0.24rem;
  border: 2px solid #1f2937;
  border-radius: 0;
  background: #ffd84d;
  box-shadow:
    3px 3px 0 #111827,
    0 0 0 2px rgba(255, 255, 255, 0.92) inset;
  color: #111827;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(-0.08rem) rotate(-2deg);
  animation: navNewBadgePop 1.75s steps(2, end) infinite;
}

.nav-new-badge::before,
.nav-new-badge::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 7px;
  height: 7px;
  background: #00d5ff;
  box-shadow:
    10px -8px 0 #ffffff,
    16px 7px 0 #ff3b8d,
    -9px 8px 0 #21d66b;
  image-rendering: pixelated;
  animation: navNewBadgeSpark 1.15s steps(3, end) infinite;
}

.nav-new-badge::before {
  top: -9px;
  right: -8px;
}

.nav-new-badge::after {
  left: -8px;
  bottom: -8px;
  animation-delay: 0.22s;
}

@keyframes navNewBadgePop {
  0%,
  100% {
    transform: translateY(-0.08rem) rotate(-2deg) scale(1);
  }

  45% {
    transform: translateY(-0.16rem) rotate(2deg) scale(1.06);
  }

  70% {
    transform: translateY(-0.08rem) rotate(-2deg) scale(0.98);
  }
}

@keyframes navNewBadgeSpark {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(0, 0) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translate(2px, -2px) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-new-badge,
  .nav-new-badge::before,
  .nav-new-badge::after {
    animation: none;
  }
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(95, 95, 95, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 26px rgba(35, 35, 35, 0.1);
}

.menu-toggle[aria-expanded="true"] {
  transform: translateY(1px);
  border-color: rgba(95, 95, 95, 0.22);
  background: rgba(255, 255, 255, 0.98);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: 680px;
  padding: 0;
  color: #fff;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(0, 85, 250, 0.9) 0%, rgba(0, 85, 250, 0.78) 38%, rgba(93, 93, 93, 0.68) 100%),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg") center center / cover no-repeat;
}

.hero-backdrop {
  display: none;
  position: sticky;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  background:
    linear-gradient(90deg, rgba(0, 85, 250, 0.9) 0%, rgba(0, 85, 250, 0.78) 38%, rgba(93, 93, 93, 0.68) 100%),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg") center center / cover no-repeat;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  pointer-events: none;
  contain: paint;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.18));
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 12%, rgba(255, 255, 255, 0.11), transparent 19%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0%, transparent 18%, transparent 82%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(180deg, rgba(19, 19, 19, 0.15), rgba(19, 19, 19, 0.25));
  mix-blend-mode: screen;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: clamp(520px, 78svh, 760px);
  padding: 4.75rem 0 6rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--secondary-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.lead {
  margin: 1.4rem 0 0;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero .lead {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translate3d(-260%, 0, 0) skewX(-18deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translate3d(320%, 0, 0) skewX(-18deg);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 28px rgba(95, 95, 95, 0.25);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 44, 44, 0.1);
}

.hero .button-primary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.hero .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
  opacity: 1;
  text-align: center;
  margin: 0 auto;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-width: 0;
}

.hero-card {
  position: relative;
  margin-left: auto;
  width: min(100%, 560px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(2.5rem);
  overflow: hidden;
  opacity: 1;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 8% 5% 8%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 66%);
  filter: blur(18px);
  opacity: 0.65;
  animation: softPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-card::before {
  display: none;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.section {
  padding: 5.5rem 0;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.breadcrumbs {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.05;
}

.section-alt {
  background: var(--bg-soft);
}

.section-split {
  padding-top: 3rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading .eyebrow,
.page-hero .eyebrow {
  position: relative;
  width: fit-content;
}

.section-heading .eyebrow::after,
.page-hero .eyebrow::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 85, 250, 0.85), rgba(146, 146, 146, 0.6), transparent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-heading .eyebrow.reveal.is-visible::after,
.page-hero .eyebrow.reveal.is-visible::after {
  transform: scaleX(1);
}

.section-heading.compact {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-copy p,
.panel p,
.focus-card p,
.link-card span {
  color: var(--muted);
  line-height: 1.85;
}

.objective-grid,
.focus-grid,
.link-grid,
.logo-grid,
.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.objective-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.focus-card,
.link-card,
.logo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.34s ease, background-color 0.34s ease;
}

.panel::after,
.focus-card::after,
.link-card::after,
.logo-card::after,
.research-card::after,
.project-card::after,
.pub-item::after,
.form-panel::after,
.collab-card::after,
.footer-grid section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translate3d(-280%, 0, 0) skewX(-18deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.panel:hover,
.focus-card:hover,
.link-card:hover,
.logo-card:hover,
.research-card:hover,
.project-card:hover,
.pub-item:hover,
.form-panel:hover,
.collab-card:hover,
.footer-grid section:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 54px rgba(31, 31, 31, 0.12);
}

.panel:hover::after,
.focus-card:hover::after,
.link-card:hover::after,
.logo-card:hover::after,
.research-card:hover::after,
.project-card:hover::after,
.pub-item:hover::after,
.form-panel:hover::after,
.collab-card:hover::after,
.footer-grid section:hover::after {
  transform: translate3d(340%, 0, 0) skewX(-18deg);
}

.panel {
  padding: 1.6rem;
}

.panel-index {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(0, 85, 250, 0.1);
  color: var(--primary);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.objective-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card {
  padding: 2rem;
}

.focus-card h3 {
  margin: 0 0 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
}

.focus-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  min-height: 220px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-card strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(95, 95, 95, 0.22);
}

.section-collab .section-heading {
  align-items: flex-start;
}

.inline-button {
  margin-top: 0.8rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.logo-grid>* {
  flex: 1 1 200px;
  max-width: 280px;
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Investigadores grid and cards */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.research-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(76, 76, 76, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 1) 100%);
  box-shadow: 0 24px 48px rgba(28, 28, 28, 0.08);
  border: 1px solid rgba(44, 44, 44, 0.08);
  min-height: 320px;
}

.research-card.active {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.card-photo {
  position: relative;
  margin: 1.6rem 1.4rem 0;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(233, 241, 238, 0.9)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 236, 236, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 36px rgba(32, 32, 32, 0.16),
    0 0 0 1px rgba(76, 76, 76, 0.08);
}

.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -18px 28px rgba(21, 21, 21, 0.08);
  pointer-events: none;
}

.card-photo.initials-badge {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-orientation: from-image;
  display: block;
}

.card-photo-yokasta img {
  object-position: center 18%;
  transform: scale(0.9);
  transform-origin: center;
}

.team-card:nth-child(2) .card-photo img {
  object-position: center 14%;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.3rem 1.4rem 1.5rem 1.4rem;
}

.card-body h3 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  line-height: 1.35;
  color: var(--text);
}

.card-body .link {
  color: var(--muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
  display: inline-block;
  margin-top: 0.6rem;
}

.team-stats {
  margin-bottom: 1.8rem;
}

.team-grid {
  margin-top: 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 56px rgba(26, 26, 26, 0.14);
  border-color: rgba(76, 76, 76, 0.22);
}

.team-card-pending {
  min-height: 320px;
}

.team-card-pending .card-photo {
  margin-inline: auto;
}

.team-card-pending .card-body {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 150px;
}

.member-role {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(76, 76, 76, 0.09);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.member-summary,
.member-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.member-summary {
  font-size: 0.98rem;
}

.member-note {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(44, 44, 44, 0.08);
  font-size: 0.94rem;
}

.member-focus {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-focus li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
}

.member-focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.member-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(76, 76, 76, 0.08);
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 22px rgba(76, 76, 76, 0.16);
}

.action-pill:hover,
.action-pill:focus-visible {
  background: #3f3f3f;
  box-shadow: 0 16px 28px rgba(76, 76, 76, 0.26);
}

.action-pill-secondary {
  background: rgba(76, 76, 76, 0.1);
  color: var(--secondary);
  box-shadow: none;
}

.action-pill-secondary:hover,
.action-pill-secondary:focus-visible {
  background: rgba(76, 76, 76, 0.16);
}

.team-card-pending .card-body h3 {
  max-width: 18ch;
}

.page-profile .page-hero {
  padding-bottom: 2.6rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.profile-aside {
  position: relative;
  top: auto;
}

.profile-photo-frame {
  overflow: hidden;
  margin-bottom: 1.15rem;
  border-radius: 28px;
  aspect-ratio: 0.9 / 1.05;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.16), rgba(102, 102, 102, 0.16));
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  padding: 0.45rem 0.45rem 0;
}

.profile-aside h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.profile-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.profile-content {
  display: grid;
  gap: 1.5rem;
}

.page-profile {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

.page-profile main {
  position: relative;
}

.page-profile-yokasta {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 245, 0, 0.08), transparent 18%),
    radial-gradient(circle at 86% 24%, rgba(0, 85, 250, 0.08), transparent 22%),
    linear-gradient(180deg, #0055fa 0%, #ffffff 34%, #f9fcfb 100%);
}

.page-profile-victor {
  background:
    radial-gradient(circle at 12% 16%, rgba(135, 135, 135, 0.08), transparent 20%),
    radial-gradient(circle at 84% 20%, rgba(0, 85, 250, 0.09), transparent 22%),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 38%, #0055fa 100%);
}

.page-profile-nestor {
  background:
    radial-gradient(circle at 14% 18%, rgba(129, 129, 129, 0.08), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(0, 85, 250, 0.1), transparent 22%),
    linear-gradient(180deg, #f4faf8 0%, #ffffff 38%, #0055fa 100%);
}

.page-profile-yokasta .page-hero {
  background:
    linear-gradient(135deg, rgba(0, 85, 250, 0.95), rgba(0, 85, 250, 0.78) 52%, rgba(151, 151, 151, 0.72) 100%);
  color: #fff;
}

.page-profile-victor .page-hero {
  background:
    linear-gradient(135deg, rgba(0, 85, 250, 0.96), rgba(0, 85, 250, 0.86) 52%, rgba(114, 114, 114, 0.78) 100%);
  color: #fff;
}

.page-profile-nestor .page-hero {
  background:
    linear-gradient(135deg, rgba(0, 85, 250, 0.96), rgba(0, 85, 250, 0.86) 52%, rgba(123, 123, 123, 0.76) 100%);
  color: #fff;
}

.page-profile .breadcrumbs,
.page-profile .page-hero .lead,
.page-profile .page-hero .eyebrow,
.page-profile .page-hero a,
.page-profile .page-hero h1 {
  color: #fff;
}

.page-profile .page-hero .eyebrow::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 0, 0.85));
}

.page-profile .page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 0 3rem;
}

.page-profile .page-hero .container {
  position: relative;
  z-index: 2;
}

.page-profile .page-hero::before,
.page-profile .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-profile .page-hero::before {
  opacity: 0.28;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  transform: scale(1.04);
  animation: heroDrift 14s ease-in-out infinite;
}

.page-profile .page-hero::after {
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(90deg, rgba(0, 85, 250, 0.24), transparent 44%, rgba(16, 16, 16, 0.1));
}

.page-profile .project-card.profile-aside {
  border: 1px solid rgba(51, 51, 51, 0.08);
  box-shadow: 0 24px 54px rgba(26, 26, 26, 0.12);
}

.page-profile-yokasta .project-card.profile-aside {
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.page-profile-yokasta .page-hero::before {
  background-image:
    linear-gradient(90deg, rgba(0, 85, 250, 0.38), rgba(0, 85, 250, 0) 42%),
    url("assets/img/campus-pucmm-santiago.jpg");
  background-position: right center;
}

.page-profile-victor .project-card.profile-aside {
  background:
    linear-gradient(180deg, rgba(249, 249, 249, 0.98), rgba(255, 255, 255, 0.98));
}

.page-profile-victor .page-hero::before {
  background-image:
    linear-gradient(90deg, rgba(0, 85, 250, 0.34), rgba(0, 85, 250, 0) 40%),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg");
  background-position: center right;
}

.page-profile-nestor .page-hero::before {
  background-image:
    linear-gradient(90deg, rgba(0, 85, 250, 0.36), rgba(0, 85, 250, 0) 40%),
    url("assets/img/campus-pucmm-santiago.jpg");
  background-position: center right;
}

.profile-bio {
  max-width: 72ch;
}

.profile-bio p {
  margin: 0 0 1.15rem;
}

.profile-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-meta-grid strong {
  font-size: 1rem;
}

.profile-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 1.3rem;
  padding: 1.6rem;
  border-radius: 30px;
  border: 1px solid rgba(47, 47, 47, 0.08);
  box-shadow: 0 26px 60px rgba(26, 26, 26, 0.1);
}

.page-profile-yokasta .profile-visual {
  background:
    radial-gradient(circle at top left, rgba(255, 245, 0, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(0, 85, 250, 0.06), rgba(0, 85, 250, 0.08) 48%, rgba(135, 135, 135, 0.08));
}

.page-profile-victor .profile-visual {
  background:
    radial-gradient(circle at top right, rgba(170, 170, 170, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(0, 85, 250, 0.06), rgba(0, 85, 250, 0.08) 50%, rgba(124, 124, 124, 0.08));
}

.profile-visual-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.profile-visual-copy .eyebrow {
  margin-bottom: 0.7rem;
}

.profile-visual-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.profile-visual-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.profile-visual-art {
  position: relative;
  min-height: 320px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.64), rgba(60, 60, 60, 0.38));
}

.profile-visual-art span {
  position: absolute;
  display: block;
}

.profile-visual-media {
  position: absolute;
  inset: 1.3rem;
  width: calc(100% - 2.6rem);
  height: calc(100% - 2.6rem);
  display: block;
  border-radius: 24px;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.03) brightness(0.74);
  transform: scale(1.02);
  animation: visualFloat 8s ease-in-out infinite;
}

.profile-visual-media-data {
  filter: saturate(0.78) contrast(1.08) brightness(0.62);
}

.thermal-sun {
  top: 1.6rem;
  right: 1.5rem;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 245, 0, 0.98) 0%, rgba(255, 245, 0, 0.75) 58%, rgba(255, 245, 0, 0) 72%);
  filter: blur(1px);
  animation: pulseGlow 5.4s ease-in-out infinite;
}

.thermal-ring {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.thermal-ring-one {
  inset: 2.3rem 4rem 4.5rem 3rem;
  animation: spinDrift 18s linear infinite;
}

.thermal-ring-two {
  inset: 4.4rem 6.6rem 6.6rem 5.2rem;
  animation: spinDriftReverse 15s linear infinite;
}

.thermal-grid {
  inset: auto 0 0 0;
  height: 58%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 1));
}

.data-grid,
.thermal-grid {
  z-index: 2;
}

.thermal-card,
.thermal-sun,
.thermal-ring,
.data-node,
.data-line,
.data-panel {
  z-index: 3;
}

.thermal-card,
.data-panel {
  padding: 0.78rem 0.95rem;
  border-radius: 18px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 32px rgba(0, 85, 250, 0.16);
}

.thermal-card {
  color: #f8fcff;
  background: rgba(0, 85, 250, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.thermal-card-one {
  left: 1.5rem;
  bottom: 5rem;
  animation: floatSoft 6.6s ease-in-out infinite;
}

.thermal-card-two {
  right: 2.1rem;
  top: 8.8rem;
  animation: floatSoft 7.2s ease-in-out infinite 0.6s;
}

.thermal-card-three {
  right: 3.4rem;
  bottom: 2rem;
  animation: floatSoft 6.8s ease-in-out infinite 1s;
}

.data-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.9;
}

.data-node {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d6d6d6;
  box-shadow: 0 0 0 8px rgba(214, 214, 214, 0.12);
  animation: pulseNode 4.8s ease-in-out infinite;
}

.data-node-one {
  top: 3.4rem;
  left: 4.1rem;
}

.data-node-two {
  top: 9.5rem;
  right: 5rem;
  animation-delay: 0.9s;
}

.data-node-three {
  bottom: 4rem;
  left: 9.5rem;
  animation-delay: 1.4s;
}

.data-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(214, 214, 214, 0.1), rgba(214, 214, 214, 0.9), rgba(214, 214, 214, 0.12));
  transform-origin: left center;
}

.data-line-one {
  top: 4rem;
  left: 5rem;
  width: 52%;
  transform: rotate(26deg);
}

.data-line-two {
  bottom: 5.1rem;
  left: 10.4rem;
  width: 44%;
  transform: rotate(-18deg);
}

.data-panel {
  color: #f7fffd;
  background: rgba(0, 85, 250, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.data-panel-one {
  top: 1.8rem;
  right: 1.8rem;
  animation: floatSoft 6.4s ease-in-out infinite;
}

.data-panel-two {
  left: 1.6rem;
  bottom: 5rem;
  animation: floatSoft 7.4s ease-in-out infinite 0.7s;
}

.data-panel-three {
  right: 2.6rem;
  bottom: 1.9rem;
  animation: floatSoft 6.9s ease-in-out infinite 1.15s;
}

@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes spinDrift {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spinDriftReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes pulseNode {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(214, 214, 214, 0.12);
  }

  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 14px rgba(214, 214, 214, 0.06);
  }
}

@keyframes visualFloat {

  0%,
  100% {
    transform: scale(1.02) translateY(0);
  }

  50% {
    transform: scale(1.035) translateY(-7px);
  }
}

@keyframes heroDrift {

  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.06) translate3d(-12px, 6px, 0);
  }
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.spotlight-shell {
  gap: 2.4rem;
}

.spotlight-aside {
  position: sticky;
  top: 140px;
}

.spotlight-photo {
  overflow: hidden;
  margin-top: 1.3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.12), rgba(76, 76, 76, 0.12));
  box-shadow: var(--shadow);
  animation: floatBob 6s ease-in-out infinite;
}

.spotlight-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.chip-row span {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--secondary-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.spotlight-panel {
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(44, 44, 44, 0.08);
  box-shadow: var(--shadow);
}

.highlight-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.highlight-list div {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--secondary);
  border-radius: 0 18px 18px 0;
  background: rgba(76, 76, 76, 0.06);
}

.highlight-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: Arial, Helvetica, sans-serif;
}

.highlight-list span {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .research-grid {
    grid-template-columns: 1fr;
  }

  .card-photo {
    margin: 1.2rem 1rem 0;
    width: 82px;
    height: 82px;
  }

  .card-body {
    padding: 1.1rem 1rem 1.15rem;
  }

  .team-card {
    min-height: auto;
  }
}

.person-card,
.project-card,
.pub-item,
.resource-empty,
.form-panel {
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.person-card {
  padding: 1.6rem;
}

.person-card h2,
.project-card h2,
.form-panel h2,
.resource-empty h2 {
  margin: 0 0 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
}

.spotlight {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.spotlight-copy p,
.project-card p,
.resource-empty p,
.form-note {
  color: var(--muted);
  line-height: 1.85;
}

.project-stack,
.pub-list {
  display: grid;
  gap: 1.5rem;
}

.project-card,
.pub-item,
.form-panel,
.resource-empty {
  padding: 1.7rem;
}

.project-head {
  margin-bottom: 1rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.meta-grid div {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(44, 44, 44, 0.06);
}

.meta-grid strong,
.pub-item .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.meta-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.pub-item h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
}

.pub-item p {
  color: var(--muted);
  line-height: 1.75;
}

.section-top-gap {
  margin-top: 2rem;
}

.resource-empty {
  max-width: 760px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.contact-intro-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.contact-lead-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  color: #f5f5f5;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 245, 0, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(49, 49, 49, 0.96), rgba(74, 74, 74, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 58px rgba(22, 22, 22, 0.18);
}

.contact-lead-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 74%, rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 76% 18%, rgba(173, 173, 173, 0.18), transparent 20%);
  pointer-events: none;
}

.contact-lead-card>* {
  position: relative;
  z-index: 1;
}

.contact-lead-card .eyebrow,
.contact-side-panel .eyebrow {
  color: rgba(244, 244, 244, 0.72);
}

.contact-lead-card h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  color: #ffffff;
}

.contact-lead-card p,
.contact-side-panel p {
  margin: 0;
}

.contact-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.contact-pill-row span {
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fcfcfc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.contact-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-key-card,
.contact-mini-panel {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.contact-key-card strong,
.contact-person-details strong,
.contact-mini-panel strong {
  display: block;
  margin-bottom: 0.38rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.contact-key-card span,
.contact-mini-panel span {
  display: block;
  color: rgba(247, 247, 247, 0.86);
  line-height: 1.55;
}

.contact-side-panel {
  padding: 1.7rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 248, 0.98));
  border: 1px solid rgba(50, 50, 50, 0.08);
  box-shadow: 0 20px 46px rgba(29, 29, 29, 0.08);
}

.contact-side-panel h3 {
  margin: 0 0 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.contact-check-list {
  display: grid;
  gap: 0.95rem;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.contact-check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-check-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff500, #bababa);
  box-shadow: 0 0 0 0.22rem rgba(186, 186, 186, 0.12);
}

.contact-mini-panel {
  background: linear-gradient(180deg, rgba(76, 76, 76, 0.08), rgba(76, 76, 76, 0.02));
  border-color: rgba(76, 76, 76, 0.1);
}

.contact-mini-panel .link {
  display: inline-block;
  margin-top: 0.55rem;
}

.contact-layout-enhanced {
  gap: 1.6rem;
}

.contact-person-card,
.contact-form-panel {
  padding: 1.8rem;
}

.contact-person-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(146, 146, 146, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 250, 0.98));
}

.contact-person-details {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.contact-person-details div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(76, 76, 76, 0.05);
  border: 1px solid rgba(76, 76, 76, 0.08);
}

.contact-person-details strong {
  color: var(--secondary-deep);
}

.contact-person-details span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.contact-person-details a {
  color: var(--secondary-deep);
  font-weight: 700;
}

.contact-person-details a:hover,
.contact-person-details a:focus-visible {
  color: var(--secondary);
}

.contact-form-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98));
}

/* Honeypot: completely hidden from real users */
.form-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.mini-form {
  display: grid;
  gap: 1rem;
}

.mini-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.mini-form input,
.mini-form textarea {
  width: 100%;
  border: 1px solid rgba(44, 44, 44, 0.12);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Select wrap (native fallback) Ã¢â€â‚¬Ã¢â€â‚¬ */
.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid rgba(44, 44, 44, 0.12);
  border-radius: 18px;
  padding: 0.95rem 3rem 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.select-wrap select:invalid {
  color: #9ca3af;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Custom dropdown Ã¢â€â‚¬Ã¢â€â‚¬ */
.cs-select {
  position: relative;
}

/* ocultar el select nativo cuando el custom estÃƒ¡ activo */
.cs-select--ready .select-wrap select,
.cs-select--ready .select-arrow {
  display: none;
}

.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(44, 44, 44, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.97rem;
  color: #9ca3af;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.cs-trigger:hover {
  border-color: rgba(0, 85, 250, 0.38);
  background: #ffffff;
}

.cs-select[aria-expanded="true"] .cs-trigger {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(0, 85, 250, 0.13);
}

.cs-trigger--selected {
  color: var(--text);
}

.cs-trigger-text {
  flex: 1;
}

.cs-trigger-icon {
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cs-select[aria-expanded="true"] .cs-trigger-icon {
  transform: rotate(180deg);
}

/* Dropdown panel */
.cs-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 85, 250, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(0, 55, 180, 0.14);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px) scale(0.975);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.cs-select[aria-expanded="true"] .cs-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.cs-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.15s ease, transform 0.18s ease, color 0.15s;
  user-select: none;
}

.cs-option:hover {
  background: rgba(0, 85, 250, 0.06);
  transform: translateX(3px);
}

.cs-option.is-selected {
  background: rgba(0, 85, 250, 0.07);
  color: var(--primary);
  font-weight: 700;
}

.cs-option-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.cs-option:hover .cs-option-dot {
  border-color: var(--primary);
}

.cs-option.is-selected .cs-option-dot {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

.cs-option[data-value="colaboracion"].is-selected {
  color: #1a6b3a;
}

.cs-option[data-value="colaboracion"].is-selected .cs-option-dot {
  background: #1a6b3a;
  border-color: #1a6b3a;
}

.cs-option[data-value="colaboracion"]:hover .cs-option-dot {
  border-color: #1a6b3a;
}

.mini-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 85, 250, 0.1);
  background: rgba(0, 85, 250, 0.04);
  font-size: 0.95rem;
}

.form-note.is-loading {
  color: var(--muted);
}

.form-note.is-success {
  color: #0f6f45;
  border-color: rgba(16, 175, 110, 0.22);
  background: rgba(16, 175, 110, 0.08);
}

.form-note.is-error {
  color: #a9261d;
  border-color: rgba(255, 15, 0, 0.22);
  background: rgba(255, 15, 0, 0.07);
}

.footer-contact-band {
  padding: 4rem 0 2rem;
  color: #f1f1f1;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 245, 0, 0.18), transparent 20%),
    linear-gradient(135deg, #323232 0%, #252525 100%);
}

.footer-contact-band .footer-bottom {
  padding-top: 1.8rem;
}

.footer-grid-contact {
  color: #f1f1f1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid-contact section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-grid-contact p,
.footer-grid-contact a,
.footer-grid-contact h3 {
  color: #f1f1f1;
}

.footer-grid-contact .footer-address {
  color: #f9f9f9;
}

.footer-grid-contact .footer-meta {
  color: rgba(241, 241, 241, 0.78);
}

.footer-grid-contact .footer-phone a {
  color: #fcfcfc;
}

.footer-grid-contact .footer-link a {
  color: #ececec;
  border-bottom-color: rgba(236, 236, 236, 0.72);
}

.footer-grid-contact .footer-link a:hover,
.footer-grid-contact .footer-link a:focus-visible,
.footer-grid-contact .footer-phone a:hover,
.footer-grid-contact .footer-phone a:focus-visible {
  color: #ffffff;
  border-bottom-color: #fff500;
}

.footer-bottom-contact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.page-contacto .project-card::after,
.page-contacto .project-card:hover::after,
.page-contacto .form-panel::after,
.page-contacto .form-panel:hover::after,
.home-page #objetivos .panel::after,
.home-page #objetivos .panel:hover::after,
.home-page #enfoque .focus-card::after,
.home-page #enfoque .focus-card:hover::after,
.home-page #colaboraciones .logo-card::after,
.home-page #colaboraciones .logo-card:hover::after,
.page-investigadores .research-card::after,
.page-investigadores .research-card:hover::after,
.page-proyectos .project-card::after,
.page-proyectos .project-card:hover::after,
.page-publicaciones .pub-item::after,
.page-publicaciones .pub-item:hover::after,
.page-colaboraciones .collab-panel::after,
.page-colaboraciones .collab-panel:hover::after,
.page-colaboraciones .collab-card::after,
.page-colaboraciones .collab-card:hover::after,
.page-colaboraciones .collab-logo-card::after,
.page-colaboraciones .collab-logo-card:hover::after {
  content: none;
}

.page-contacto .footer-grid-contact {
  border-bottom: 0;
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 1.4rem;
  background: var(--panel-strong);
}

.logo-card img {
  width: min(100%, 220px);
  max-height: 88px;
  object-fit: contain;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease;
}

.logo-card:hover img,
.logo-card:focus-within img {
  transform: scale(1.08) translateY(-2px);
  filter: saturate(1.08);
}

.collab-hero {
  padding-bottom: 1.5rem;
}

.collab-hero .lead {
  max-width: 68ch;
}

.collab-hero h1,
.collab-mark-copy h2,
.collab-content h2 {
  position: relative;
}

.collab-hero h1::after,
.collab-mark-copy h2::after,
.collab-content h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 245, 0, 0.95), rgba(146, 146, 146, 0.95));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.collab-hero h1.reveal.is-visible::after,
.collab-mark-copy h2.reveal.is-visible::after,
.collab-content h2.reveal.is-visible::after {
  transform: scaleX(1);
}

.collab-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.6rem;
  padding: 1.8rem;
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 246, 0.96));
  box-shadow: 0 22px 52px rgba(31, 31, 31, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.collab-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 66px rgba(31, 31, 31, 0.12);
  border-color: rgba(76, 76, 76, 0.16);
}

.collab-identity {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(146, 146, 146, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(47, 47, 47, 0.98), rgba(76, 76, 76, 0.9));
  color: #ffffff;
}

.collab-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collab-mark {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  animation: floatBob 6.5s ease-in-out infinite;
}

.collab-mark img {
  width: min(100%, 230px);
  max-height: 160px;
  object-fit: contain;
}

.collab-mark-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
}

.collab-mark-copy h2 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 2rem;
}

.collab-mark-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.collab-content {
  display: grid;
  align-content: start;
}

.collab-content>p {
  margin: 0 0 1.35rem;
}

.collab-lists {
  display: grid;
  gap: 1rem;
}

.collab-card {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(44, 44, 44, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.collab-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(31, 31, 31, 0.08);
  border-color: rgba(76, 76, 76, 0.18);
}

.collab-card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.collab-card ul,
.collab-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.collab-logo-grid {
  gap: 1.1rem;
}

.collab-logo-card {
  min-height: 210px;
  padding: 1.4rem 1.2rem 1.15rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.collab-logo-card--compact {
  min-height: 210px;
  padding: 1.4rem 1.2rem 1.15rem;
  transform: none;
  transform-origin: center;
}

.collab-logo-card--compact:hover {
  transform: translateY(-10px);
}

.collab-logo-card--compact img {
  width: min(100%, 132px);
  max-height: 52px;
}

.collab-logo-card--andes img {
  width: min(100%, 148px);
  max-height: 58px;
}

.collab-logo-card--compact p {
  max-width: 22ch;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.45;
}

.collab-logo-card--compact span {
  margin-top: 0.95rem;
  padding: 0.36rem 0.72rem;
  font-size: 0.78rem;
}

.collab-logo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(31, 31, 31, 0.1);
  border-color: rgba(76, 76, 76, 0.14);
}

.collab-logo-card.collab-logo-card--compact:hover {
  transform: translateY(-10px);
}

.collab-logo-card p {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.collab-logo-card span {
  display: inline-flex;
  margin-top: 0.95rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(76, 76, 76, 0.08);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  padding: 4rem 0 2rem;
  color: #f1f1f1;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 245, 0, 0.18), transparent 20%),
    linear-gradient(135deg, #323232 0%, #252525 100%);
}

.footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 2rem;
}

.footer-grid section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.1rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-grid section:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 237, 237, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: 0 20px 40px rgba(15, 15, 15, 0.16);
}

.footer-grid h3 {
  margin-top: 0;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  color: rgba(241, 241, 241, 0.82);
  line-height: 1.55;
}

.footer-grid p {
  margin: 0;
}

.footer-address {
  margin-bottom: 0.9rem;
  color: #f9f9f9;
  font-size: 1.04rem;
  font-weight: 600;
}

.footer-meta {
  color: rgba(241, 241, 241, 0.72);
  font-size: 0.96rem;
}

.footer-meta+.footer-meta {
  margin-top: 0.38rem;
}

.footer-phone {
  margin-top: 1rem;
}

.footer-phone+.footer-phone {
  margin-top: 0.6rem;
}

.footer-phone a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fcfcfc;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.footer-phone a::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff500, #cbcbcb);
  box-shadow: 0 0 0 0.22rem rgba(255, 245, 0, 0.14);
  flex: 0 0 auto;
}

.footer-link {
  margin-top: 0.9rem;
}

.footer-grid section:last-child .footer-phone:first-of-type {
  margin-top: 0.4rem;
}

.footer-grid section:last-child .footer-link {
  margin-top: 1.05rem;
}

.footer-link a {
  display: inline-block;
  color: #ececec;
  font-weight: 700;
  border-bottom: 2px solid rgba(236, 236, 236, 0.7);
  padding-bottom: 0.18rem;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-link a:hover,
.footer-link a:focus-visible,
.footer-phone a:hover,
.footer-phone a:focus-visible {
  color: #ffffff;
  border-bottom-color: #fff500;
  transform: translateY(-2px);
}

.footer-phone a:hover::before,
.footer-phone a:focus-visible::before {
  box-shadow: 0 0 0 0.28rem rgba(203, 203, 203, 0.16);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-6px) scale(1.06);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.social-links svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a0a0a0, #7a7a7a);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .hero {
    min-height: 700px;
  }

  .hero-grid {
    min-height: clamp(620px, 78svh, 820px);
    align-items: start;
  }
}

@media (max-width: 1500px) {
  .hero {
    min-height: 720px;
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: 680px;
  }

  .hero-grid,
  .split-layout,
  .objective-grid,
  .focus-grid,
  .link-grid,
  .logo-grid,
  .footer-grid,
  .profile-grid,
  .spotlight,
  .contact-intro-grid,
  .contact-key-grid,
  .contact-layout,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 1.6rem;
    padding: 2.6rem 0 2rem;
    min-height: clamp(600px, 76svh, 780px);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.9rem);
    max-width: 100%;
  }

  .hero .lead {
    max-width: 25ch;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 1.25rem;
    gap: 0.8rem;
  }

  .hero-card {
    margin: 0 auto;
    width: min(100%, 520px);
    transform: translateY(0);
  }

  .hero-card img {
    aspect-ratio: 1.38 / 1;
  }

  .spotlight-aside {
    position: static;
  }

  .profile-layout,
  .profile-meta-grid {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    position: static;
  }

  .profile-visual {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .profile-visual-art {
    min-height: 280px;
  }

  .page-profile .page-hero::before {
    background-position: center center;
    opacity: 0.22;
  }

  .collab-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav-wrap {
    position: relative;
  }

  .hero {
    min-height: 620px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0.65rem 1.2rem;
    padding: 0.7rem 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(26, 26, 26, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .main-nav.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
  }

  .main-nav a {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }

  .main-nav a.nav-lab-link {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.is-current {
    background: rgba(95, 95, 95, 0.08);
    color: var(--text);
    transform: translateX(4px);
  }

  .main-nav a::after {
    left: 0.95rem;
    width: calc(100% - 1.9rem);
  }

  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand img {
    width: 120px;
  }

  .brand span {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .hero-grid {
    gap: 1.3rem;
    padding: 2.15rem 0 1.7rem;
    min-height: clamp(560px, 74svh, 720px);
  }

  .hero-copy,
  .section-copy,
  .lead {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 7.1vw, 3.5rem);
    max-width: 100%;
    text-align: center;
  }

  .hero .lead {
    max-width: 24ch;
    font-size: 1rem;
    line-height: 1.56;
  }

  .hero-actions {
    margin-top: 1.2rem;
    gap: 0.8rem;
  }

  .hero-visual {
    justify-content: center;
    width: 100%;
  }

  .hero-card {
    width: min(100%, 500px);
    margin: 0 auto;
    transform: translateY(0);
  }

  .hero-card img {
    aspect-ratio: 1.3 / 1;
  }

  .page-hero {
    padding: 3.5rem 0 2rem;
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .topbar-inner,
  .footer-bottom {
    justify-content: center;
  }

  .hero {
    min-height: 560px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .contact-lead-card,
  .contact-side-panel,
  .contact-person-card,
  .contact-form-panel {
    padding: 1.3rem;
    border-radius: 24px;
  }

  .contact-pill-row {
    gap: 0.55rem;
  }

  .contact-pill-row span {
    width: 100%;
    text-align: center;
  }

  .contact-lead-card h2 {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
  }

  .nav-wrap {
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .brand {
    gap: 0.7rem;
    flex: 1 1 auto;
  }

  .brand img {
    width: 104px;
    flex: 0 0 auto;
  }

  .brand span {
    font-size: 0.8rem;
    letter-spacing: 0.015em;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex: 0 0 auto;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 11vw, 3.3rem);
  }

  .hero .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .hero-grid {
    gap: 1.2rem;
    padding: 1.9rem 0 1.6rem;
    min-height: clamp(500px, 70svh, 660px);
  }

  .hero .lead {
    font-size: 0.98rem;
    line-height: 1.58;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    transform: translateY(0);
  }

  .hero-card img {
    aspect-ratio: 1.12 / 1;
  }

  .section,
  .page-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-heading h2,
  .collab-content h2,
  .collab-mark-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .objective-grid,
  .focus-grid,
  .logo-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: 300px;
  }

  .card-body {
    padding: 5.2rem 1.1rem 1.15rem 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-visual-copy h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .thermal-card,
  .data-panel {
    font-size: 0.92rem;
  }

  .profile-visual-media {
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
  }

  .footer-grid section {
    padding: 1.2rem 1.1rem 1.25rem;
  }

  .footer-phone a {
    font-size: 1.03rem;
  }

  .social-links {
    justify-content: center;
  }

  .scroll-top {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

/* Immersive researcher profiles */
.immersive-profile {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 245, 0, 0.08), transparent 18%),
    radial-gradient(circle at 86% 10%, rgba(0, 85, 250, 0.08), transparent 22%),
    linear-gradient(180deg, #0055fa 0%, #fcfffe 42%, #f5fbf8 100%);
}

.researcher-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 4.8rem 0 3.4rem;
}

.researcher-hero::before,
.researcher-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.researcher-hero::before {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  opacity: 0.24;
  transform: scale(1.04);
  animation: heroDrift 15s ease-in-out infinite;
}

.researcher-hero::after {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(90deg, rgba(0, 85, 250, 0.36), rgba(0, 85, 250, 0.12) 38%, rgba(0, 85, 250, 0.04) 62%, rgba(0, 85, 250, 0.18));
}

.researcher-hero-yokasta {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 46%, #7b7b7b 100%);
}

.researcher-hero-yokasta::before {
  background-image: url("assets/img/campus-pucmm-santiago-bg-2.jpg");
}

.researcher-hero-victor {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 45%, #686868 100%);
}

.researcher-hero-victor::before {
  background-image: url("assets/img/modulo-laboratorio.jpg");
}

.researcher-hero-nestor {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 45%, #787878 100%);
}

.researcher-hero-nestor::before {
  background-image: url("assets/img/campus-pucmm-santiago-bg-2.jpg");
}

.researcher-hero .container {
  position: relative;
  z-index: 2;
}

.researcher-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.researcher-intro {
  color: #fff;
}

.researcher-intro .breadcrumbs,
.researcher-intro .breadcrumbs a,
.researcher-intro .lead,
.researcher-intro .eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

.researcher-intro h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  color: #fff;
  text-wrap: balance;
}

.researcher-intro .lead {
  max-width: 34ch;
  margin-top: 1.2rem;
  font-size: 1.06rem;
  line-height: 1.78;
}

.researcher-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.researcher-tag-row span {
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.researcher-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.researcher-hero-actions-victor {
  display: grid;
  justify-content: center;
  justify-items: center;
}

.researcher-stage {
  position: relative;
  min-height: 560px;
}

.researcher-stage-bg {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 72px rgba(15, 15, 15, 0.24);
}

.researcher-stage-bg::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.04) brightness(0.64);
  transform: scale(1.03);
  animation: visualFloat 9s ease-in-out infinite;
}

.researcher-stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(0, 85, 250, 0.08), rgba(0, 85, 250, 0.34));
}

.researcher-stage-bg-yokasta::before {
  background-image:
    linear-gradient(180deg, rgba(0, 85, 250, 0.14), rgba(0, 85, 250, 0.36)),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg");
}

.researcher-stage-bg-victor::before {
  background-image:
    linear-gradient(180deg, rgba(19, 19, 19, 0.08), rgba(19, 19, 19, 0.34)),
    url("assets/img/modulo-laboratorio.jpg");
}

.researcher-stage-bg-nestor::before {
  background-image:
    linear-gradient(180deg, rgba(0, 85, 250, 0.1), rgba(0, 85, 250, 0.34)),
    url("assets/img/campus-pucmm-santiago.jpg");
}

.researcher-portrait-card {
  position: absolute;
  left: 1.75rem;
  bottom: 1.8rem;
  width: min(44%, 270px);
  aspect-ratio: 0.84 / 1.05;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 252, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 54px rgba(15, 15, 15, 0.22);
  animation: floatSoft 8s ease-in-out infinite;
}

.researcher-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  image-orientation: from-image;
  display: block;
  padding-top: 0.4rem;
}

.portrait-card-yokasta img {
  object-position: center 18%;
  padding-top: 0;
}

.portrait-card-nestor img {
  object-position: center 12%;
  transform: scale(0.97);
}

.researcher-floating-card {
  position: absolute;
  width: min(43%, 240px);
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  color: #fff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 38px rgba(16, 16, 16, 0.18);
}

.researcher-floating-card strong {
  display: block;
  margin-bottom: 0.42rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.researcher-floating-card span {
  display: block;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.93rem;
}

.researcher-floating-card-sun,
.researcher-floating-card-energy,
.researcher-floating-card-data,
.researcher-floating-card-urban {
  right: 1.8rem;
}

.researcher-floating-card-materials,
.researcher-floating-card-platforms {
  left: 38%;
}

.researcher-floating-card-sun {
  top: 1.7rem;
  background: rgba(0, 85, 250, 0.74);
  animation: floatSoft 6.8s ease-in-out infinite;
}

.researcher-floating-card-materials {
  top: 13.5rem;
  background: rgba(85, 85, 85, 0.74);
  animation: floatSoft 7.4s ease-in-out infinite 0.8s;
}

.researcher-floating-card-energy {
  bottom: 2rem;
  background: rgba(255, 15, 0, 0.72);
  animation: floatSoft 7s ease-in-out infinite 1.15s;
}

.researcher-floating-card-data {
  top: 2rem;
  background: rgba(0, 85, 250, 0.76);
  animation: floatSoft 6.8s ease-in-out infinite;
}

.researcher-floating-card-platforms {
  top: 14rem;
  background: rgba(0, 85, 250, 0.7);
  animation: floatSoft 7.5s ease-in-out infinite 0.85s;
}

.researcher-floating-card-urban {
  bottom: 2rem;
  background: rgba(96, 96, 96, 0.72);
  animation: floatSoft 7s ease-in-out infinite 1.2s;
}

.researcher-storyband {
  padding-top: 3.2rem;
}

.researcher-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 1.35rem;
}

.researcher-story-card,
.researcher-matrix-card {
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(47, 47, 47, 0.08);
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.06);
  min-width: 280px;
  flex-shrink: 0;
}

.researcher-story-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.researcher-story-card p:last-child,
.researcher-matrix-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.92rem;
}

.researcher-story-highlight {
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.96), rgba(96, 96, 96, 0.88));
}

.researcher-story-highlight .eyebrow,
.researcher-story-highlight p {
  color: #fff;
}

.researcher-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.researcher-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.researcher-matrix-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.researcher-dashboard-strip {
  padding-top: 2.9rem;
}

.researcher-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.researcher-stat-card {
  padding: 1.25rem 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 47, 47, 0.08);
  box-shadow: 0 18px 36px rgba(26, 26, 26, 0.08);
}

.researcher-stat-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(0, 85, 250, 0.08);
  color: var(--secondary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.researcher-stat-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}

.researcher-stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.researcher-section-grid-victor {
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
}

.researcher-story-highlight-victor {
  align-self: start;
}

.researcher-story-highlight-victor h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
  color: #fff;
}

.researcher-story-highlight-victor p:last-child {
  margin-top: 0.85rem;
}

.researcher-signal-board {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 85, 250, 0.16), transparent 20%),
    linear-gradient(135deg, #0055fa 0%, #0040cc 48%, #4e4e4e 100%);
}

.researcher-signal-board .section-heading .eyebrow,
.researcher-signal-board .section-heading h2 {
  color: #fff;
}

.researcher-signal-board .section-heading .eyebrow::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(190, 190, 190, 0.72), transparent);
}

.researcher-matrix-victor {
  grid-template-columns: 1fr;
}

.researcher-matrix-victor .researcher-matrix-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.researcher-matrix-victor .researcher-matrix-card strong {
  color: #fff;
}

.researcher-matrix-victor .researcher-matrix-card p {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1180px) {

  .researcher-hero-grid,
  .researcher-story-grid,
  .researcher-section-grid,
  .researcher-matrix,
  .researcher-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .researcher-stage {
    min-height: 620px;
  }
}

@media (max-width: 820px) {
  .researcher-hero {
    padding: 4rem 0 2.8rem;
  }

  .researcher-intro h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .researcher-intro .lead {
    max-width: 100%;
  }

  .researcher-stage {
    min-height: 680px;
  }

  .researcher-portrait-card {
    position: relative;
    left: auto;
    bottom: auto;
    top: 1.35rem;
    margin: 0 auto;
    width: min(64%, 280px);
  }

  .researcher-floating-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 2.5rem);
    margin: 0.9rem auto 0;
  }

  .researcher-stage-bg {
    min-height: 100%;
  }
}

@media (min-width: 1600px) and (min-height: 900px) {
  .hero-backdrop {
    display: block;
    height: calc(100% + 6rem);
    min-height: 100%;
    margin-bottom: calc(-100% - 6rem);
    background-position: center center;
  }

  .hero-grid {
    min-height: 0;
    padding: 3.5rem 0 6.5rem;
    align-items: center;
  }

  .hero-card {
    transform: translateY(1rem);
  }
}

@media (min-width: 1600px) and (max-width: 1760px) and (max-height: 820px) {
  .hero-grid {
    gap: 2rem;
    padding: 3rem 0 6rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 4.6vw, 4.3rem);
    max-width: 9ch;
  }

  .hero .lead {
    max-width: 34ch;
    font-size: 1.02rem;
  }

  .hero-card {
    width: min(100%, 500px);
    transform: translateY(0.5rem);
  }
}

@media (max-width: 480px) {

  .hero {
    min-height: 500px;
  }

  .brand img {
    width: 92px;
  }

  .brand span {
    font-size: 0.74rem;
  }

  .main-nav {
    left: 0.625rem;
    right: 0.625rem;
    top: calc(100% + 0.55rem);
  }

  .hero-grid {
    padding: 1.7rem 0 1.75rem;
  }

  .hero .lead {
    font-size: 0.97rem;
  }

  .hero-card img {
    aspect-ratio: 1 / 1;
  }

  .page-hero {
    padding: 2.8rem 0 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero parallax: la posiciÃƒÆ’Ã‚Â³n del fondo se controla con JS via custom property */
.hero-backdrop {
  display: none !important;
}

.hero {
  will-change: background-position-y;
  background:
    linear-gradient(90deg, rgba(0, 85, 250, 0.9) 0%, rgba(0, 85, 250, 0.78) 38%, rgba(93, 93, 93, 0.68) 100%),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg") center var(--hero-parallax-y, 50%) / cover no-repeat !important;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center !important;
  min-height: calc(100svh - 136px) !important;
  padding: 1.75rem 0 1.5rem !important;
}

.hero-copy {
  align-self: center;
  justify-self: start;
  width: min(100%, 640px);
  max-width: 640px;
  padding: 1.5rem 1.6rem 1.55rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(0, 85, 250, 0.34), rgba(0, 85, 250, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 54px rgba(17, 17, 17, 0.22);
  backdrop-filter: blur(8px);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hero .eyebrow {
  margin-bottom: 0.9rem;
  display: none;
}

.hero h1 {
  max-width: 100%;
  line-height: 0.98;
  font-size: clamp(2.7rem, 4.35vw, 4.15rem);
  letter-spacing: -0.03em;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
  text-shadow: 0 14px 32px rgba(11, 11, 11, 0.22);
}

.hero .lead {
  max-width: 42ch;
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.95);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 1.45rem;
}

.hero-visual {
  align-self: center;
  justify-self: end;
}

.hero-card {
  width: min(100%, 540px) !important;
  margin-left: auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-0.35rem) !important;
  box-shadow: 0 30px 70px rgba(15, 15, 15, 0.26);
}

.hero-card img {
  aspect-ratio: 1.26 / 1 !important;
}

.home-page .hero-copy {
  animation: heroPanelEnter 0.95s cubic-bezier(0.2, 0.9, 0.2, 1) 0.12s both;
}

.home-page .hero h1 {
  animation: sweepUp 1.08s cubic-bezier(0.2, 0.9, 0.2, 1) 0.32s both;
}

.home-page .hero .lead {
  animation: fadeUp 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.home-page .hero-actions {
  animation: fadeUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

.home-page .hero-visual {
  animation: heroVisualEnter 1.05s cubic-bezier(0.2, 0.9, 0.2, 1) 0.24s both;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 136px) !important;
    gap: 1.4rem !important;
    padding: 2.3rem 0 1.85rem !important;
  }

  .hero-copy {
    width: min(100%, 680px);
    max-width: 680px;
    justify-self: center;
    align-self: center;
    text-align: center;
    padding: 1.25rem 1.15rem 1.3rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 7vw, 3.8rem);
    max-width: 100%;
  }

  .hero .lead {
    max-width: 38ch;
    font-size: 1rem;
    line-height: 1.55;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .eyebrow {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    width: min(100%, 500px) !important;
    margin: 0 auto;
    transform: translateY(0) !important;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    min-height: calc(100svh - 92px) !important;
    padding: 1.9rem 0 1.5rem !important;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 1.05rem 0.95rem 1.1rem;
    border-radius: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10.5vw, 3.2rem);
  }

  .hero .lead {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 1.3rem;
  }

  .hero-card {
    width: 100% !important;
    max-width: 100%;
  }

  .hero-card img {
    aspect-ratio: 1.1 / 1 !important;
  }
}

/* Investigadores refresh */

/* Responsive skills matrix */
@media (max-width: 640px) {
  .researcher-matrix {
    gap: 0.8rem;
  }

  .researcher-matrix-card {
    min-width: 260px;
    padding: 0.8rem 1rem;
  }

  .researcher-matrix-card strong {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .researcher-matrix-card p {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

.page-investigadores:not(.page-profile) {
  background:
    radial-gradient(circle at 10% 14%, rgba(0, 85, 250, 0.08), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(96, 96, 96, 0.08), transparent 22%),
    linear-gradient(180deg, #f4f9fb 0%, #fcfdfd 32%, #f3f8f5 100%);
}

.page-investigadores:not(.page-profile) .page-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
  background:
    linear-gradient(135deg, rgba(0, 85, 250, 0.97), rgba(0, 85, 250, 0.92) 48%, rgba(87, 87, 87, 0.86) 100%);
}

.page-investigadores:not(.page-profile) .page-hero::before,
.page-investigadores:not(.page-profile) .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-investigadores:not(.page-profile) .page-hero::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.15), transparent 12%),
    radial-gradient(circle at 78% 18%, rgba(255, 245, 0, 0.16), transparent 13%),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 42% 44%, transparent 44% 100%);
}

.page-investigadores:not(.page-profile) .page-hero::after {
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, rgba(244, 249, 251, 0.95));
}

.page-investigadores:not(.page-profile) .page-hero .container {
  position: relative;
  z-index: 1;
}

.page-investigadores:not(.page-profile) .page-hero .breadcrumbs,
.page-investigadores:not(.page-profile) .page-hero .breadcrumbs a,
.page-investigadores:not(.page-profile) .page-hero .eyebrow,
.page-investigadores:not(.page-profile) .page-hero h1,
.page-investigadores:not(.page-profile) .page-hero .lead {
  color: #fff;
}

.page-investigadores:not(.page-profile) .page-hero .lead {
  max-width: 58rem;
}

.page-investigadores:not(.page-profile) .page-hero .eyebrow::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(195, 195, 195, 0.7), transparent);
}

.team-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1.2rem 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.team-directory-head .eyebrow {
  margin-bottom: 0.55rem;
}

.team-directory-head h2 {
  margin: 0;
  color: var(--secondary-deep);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.team-directory-note {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(52, 52, 52, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  box-shadow: 0 16px 34px rgba(27, 27, 27, 0.06);
}

.team-grid {
  margin-top: 0.35rem;
  gap: 1.35rem;
}

.team-card {
  --card-accent: #6a6a6a;
  --card-accent-soft: rgba(106, 106, 106, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 250, 0.94) 100%);
  border: 1px solid rgba(39, 39, 39, 0.09);
  box-shadow: 0 24px 54px rgba(25, 25, 25, 0.1);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--card-accent-soft), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.26), transparent 44%);
  pointer-events: none;
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--card-accent), rgba(255, 255, 255, 0));
  opacity: 0.92;
}

.team-card:hover {
  transform: translateY(-12px);
  border-color: rgba(39, 39, 39, 0.14);
  box-shadow: 0 32px 72px rgba(25, 25, 25, 0.14);
}

.team-card-yokasta {
  --card-accent: #8e8e8e;
  --card-accent-soft: rgba(142, 142, 142, 0.18);
}

.team-card-victor {
  --card-accent: #8e8e8e;
  --card-accent-soft: rgba(142, 142, 142, 0.18);
}

.team-card-nestor {
  --card-accent: #727272;
  --card-accent-soft: rgba(114, 114, 114, 0.18);
}

.team-card-francisco {
  --card-accent: #0055fa;
  --card-accent-soft: rgba(0, 85, 250, 0.16);
}

.card-photo {
  margin: 1.25rem 1.25rem 0;
  width: 144px;
  height: 168px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(234, 241, 238, 0.9)),
    linear-gradient(145deg, rgba(0, 85, 250, 0.08), rgba(103, 103, 103, 0.08));
  box-shadow:
    0 20px 42px rgba(25, 25, 25, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.card-photo::after {
  box-shadow: inset 0 -20px 30px rgba(21, 21, 21, 0.12);
}

.card-photo img {
  object-position: center 10%;
  transform: scale(1.01);
  backface-visibility: hidden;
}

.card-photo-yokasta img {
  object-position: center 18%;
  transform: scale(1.02);
}

.team-card-victor .card-photo img {
  object-position: center 12%;
  transform: scale(1.01);
}

.team-card-francisco .card-photo img {
  object-position: center 12%;
  transform: scale(1.04);
}

.team-card-nestor .card-photo,
.team-card-pending .card-photo {
  margin-inline: 1.25rem;
}

.initials-badge {
  box-shadow:
    0 18px 34px rgba(26, 26, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.card-body {
  position: relative;
  z-index: 1;
  gap: 0.82rem;
  padding: 1.2rem 1.25rem 1.3rem;
}

.card-body h3 {
  font-size: 1.18rem;
  line-height: 1.24;
  text-wrap: balance;
}

.member-role {
  padding: 0.38rem 0.74rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--card-accent);
  box-shadow: inset 0 0 0 1px var(--card-accent-soft);
}

.member-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.member-focus li {
  padding-left: 1.15rem;
  color: var(--secondary);
  font-size: 0.92rem;
}

.member-focus li::before {
  width: 0.5rem;
  height: 0.5rem;
  top: 0.58rem;
  background: var(--card-accent);
  box-shadow: 0 0 0 5px var(--card-accent-soft);
}

.member-note {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(39, 39, 39, 0.09);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.action-pill {
  background: var(--card-accent);
  box-shadow: 0 14px 26px var(--card-accent-soft);
}

.action-pill:hover,
.action-pill:focus-visible {
  background: #0040cc;
  box-shadow: 0 16px 28px rgba(0, 64, 204, 0.28);
}

.action-pill-secondary,
.member-status {
  background: rgba(255, 255, 255, 0.82);
  color: var(--secondary);
  box-shadow: inset 0 0 0 1px rgba(0, 85, 250, 0.12);
}

.team-card-pending {
  min-height: 250px;
  justify-content: center;
}

.team-card-pending .card-body {
  min-height: 120px;
}

.team-card-pending .card-body h3 {
  max-width: 15ch;
  color: var(--secondary-deep);
}

@media (max-width: 920px) {
  .team-directory-head {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
  }
}

.page-profile {
  --profile-accent: #9d9d9d;
  --profile-accent-strong: #0055fa;
  --profile-accent-soft: rgba(157, 157, 157, 0.18);
}

.page-profile-yokasta {
  --profile-accent: #fff500;
  --profile-accent-strong: #0055fa;
  --profile-accent-soft: rgba(255, 245, 0, 0.16);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 245, 0, 0.12), transparent 18%),
    radial-gradient(circle at 86% 16%, rgba(0, 85, 250, 0.12), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 36%, #f6fbf8 100%);
}

.page-profile-victor {
  --profile-accent: #0055fa;
  --profile-accent-strong: #0055fa;
  --profile-accent-soft: rgba(0, 85, 250, 0.16);
  background:
    radial-gradient(circle at 12% 15%, rgba(0, 85, 250, 0.12), transparent 18%),
    radial-gradient(circle at 84% 16%, rgba(114, 114, 114, 0.11), transparent 22%),
    linear-gradient(180deg, #f4fafb 0%, #ffffff 38%, #f5fbfa 100%);
}

.page-profile-nestor {
  --profile-accent: #838383;
  --profile-accent-strong: #0055fa;
  --profile-accent-soft: rgba(131, 131, 131, 0.16);
  background:
    radial-gradient(circle at 12% 16%, rgba(131, 131, 131, 0.12), transparent 18%),
    radial-gradient(circle at 86% 16%, rgba(0, 85, 250, 0.11), transparent 22%),
    linear-gradient(180deg, #f4faf8 0%, #ffffff 36%, #0055fa 100%);
}

.page-profile-yokasta .page-hero {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 50%, #7e7e7e 100%);
}

.page-profile-victor .page-hero {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 50%, #606060 100%);
}

.page-profile-nestor .page-hero {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 48%, #797979 100%);
}

.researcher-hero::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18), transparent 14%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.32), rgba(17, 17, 17, 0.06) 46%, rgba(17, 17, 17, 0.18));
}

.researcher-intro h1 {
  max-width: 11ch;
  text-wrap: balance;
}

.researcher-tag-row span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.researcher-hero-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.researcher-stage-bg {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 84px rgba(15, 15, 15, 0.28);
}

.researcher-stage-bg::after {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.4));
}

.researcher-portrait-card {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 54px rgba(15, 15, 15, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.researcher-floating-card {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.2);
}

.researcher-floating-card-sun,
.researcher-floating-card-materials,
.researcher-floating-card-energy,
.researcher-floating-card-data,
.researcher-floating-card-platforms,
.researcher-floating-card-urban {
  background: linear-gradient(160deg, rgba(0, 85, 250, 0.78), rgba(0, 85, 250, 0.72));
}

.researcher-floating-card-energy {
  background: linear-gradient(160deg, rgba(105, 105, 105, 0.88), rgba(144, 144, 144, 0.74));
}

.researcher-story-card,
.researcher-matrix-card,
.researcher-stat-card {
  border-radius: 28px;
  border: 1px solid rgba(39, 39, 39, 0.08);
  box-shadow: 0 20px 42px rgba(26, 26, 26, 0.08);
}

.researcher-story-card,
.researcher-matrix-card {
  background: rgba(255, 255, 255, 0.9);
}

.researcher-story-card {
  position: relative;
  overflow: hidden;
}

.researcher-story-card::before,
.researcher-stat-card::before,
.researcher-matrix-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--profile-accent), rgba(255, 255, 255, 0));
  opacity: 0.95;
}

.researcher-story-highlight {
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.96), rgba(86, 86, 86, 0.9));
}

.researcher-dashboard-grid {
  gap: 1.1rem;
}

.researcher-stat-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 250, 0.98));
}

.researcher-stat-label {
  color: var(--profile-accent-strong);
}

.researcher-stat-card strong {
  color: var(--secondary-deep);
}

.researcher-story-highlight-victor,
.researcher-signal-board {
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.97), rgba(0, 85, 250, 0.9) 56%, rgba(103, 103, 103, 0.82) 100%);
}

.researcher-matrix-victor .researcher-matrix-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.researcher-signal-board .section-heading h2 {
  text-wrap: balance;
}

@media (max-width: 1180px) {
  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card,
  .team-card-pending {
    min-height: 100%;
  }
}

@media (max-width: 820px) {
  .research-grid {
    grid-template-columns: 1fr;
  }

  .page-investigadores:not(.page-profile) .page-hero {
    padding-bottom: 2.2rem;
  }

  .card-photo {
    width: min(52vw, 176px);
    height: min(60vw, 210px);
    margin: 1.35rem auto 0;
  }

  .card-body {
    padding: 1.3rem 1.2rem 1.4rem;
  }
}

/* Institutional redesign pass */
:root {
  --bg: #f3f5f7;
  --bg-soft: #edf1f4;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --text: #222222;
  --muted: #5a5a5a;
  --line: rgba(0, 85, 250, 0.11);
  --primary: #0055fa;
  --primary-deep: #0055fa;
  --secondary: #555555;
  --secondary-deep: #343434;
  --secondary-light: #8a8a8a;
  --accent: #fff500;
  --shadow: 0 24px 54px rgba(0, 85, 250, 0.08);
  --radius: 12px;
  --radius-sm: 7px;
  --container: 1240px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 245, 0, 0.08), transparent 17%),
    linear-gradient(180deg, #f3f5f7 0%, #f8fafb 22%, #eef2f5 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0.26) 1px, transparent 1px, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 100%);
  background-size: 120px 120px;
  opacity: 0.32;
  z-index: -1;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 85, 250, 0.08);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #0040cc 0%, #0055fa 46%, #0077ff 100%);
}

.nav-wrap {
  padding: 1.05rem 0;
}

.brand img {
  width: 156px;
}

.brand span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.main-nav a {
  position: relative;
  font-weight: 600;
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 245, 0, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-current::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(112deg, rgba(16, 16, 16, 0.88) 0%, rgba(0, 85, 250, 0.72) 32%, rgba(0, 85, 250, 0.46) 58%, rgba(16, 16, 16, 0.84) 100%),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg") center center / cover no-repeat !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.12), rgba(14, 14, 14, 0.42)),
    radial-gradient(circle at 76% 24%, rgba(255, 245, 0, 0.24), transparent 18%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  gap: clamp(1.8rem, 3vw, 3.4rem);
  padding: 2.4rem 0 2rem !important;
}

.hero-copy {
  padding: 1.7rem 1.75rem 1.8rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.66), rgba(20, 20, 20, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(13, 13, 13, 0.24);
  backdrop-filter: blur(14px);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 245, 0, 0));
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.6rem);
  max-width: 12ch;
}

.hero .lead {
  max-width: 47ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
  justify-content: center;
}

.hero-kicker-row span,
.researcher-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.52rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f7f9;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  gap: 0.85rem;
}

.button {
  position: relative;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.84rem;
  box-shadow: 0 16px 28px rgba(0, 85, 250, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, #0055fa, #0040cc);
  color: #ffffff;
}

.button-secondary {
  background: rgba(0, 85, 250, 0.05);
  border: 1px solid rgba(0, 85, 250, 0.14);
  color: var(--text);
}

.hero .button-secondary,
.page-hero .button-secondary,
.researcher-hero-actions .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-card {
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(12, 12, 12, 0.3);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto 1.1rem 1rem auto;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 0, 0.5), rgba(255, 245, 0, 0));
  filter: blur(10px);
  opacity: 0.88;
}

.hero-card::after {
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0) 38%, rgba(9, 9, 9, 0.44) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 30%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3.2rem;
  background:
    linear-gradient(135deg, #0055fa 0%, #0040cc 48%, #434343 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 245, 0, 0.2), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero .eyebrow,
.page-hero .lead,
.page-hero .breadcrumbs,
.page-hero .breadcrumbs a {
  color: #ffffff;
}

.page-hero .lead {
  max-width: 50rem;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(236, 241, 244, 0.84));
}

.section-heading h2,
.page-hero h1,
.hero h1,
.project-card h2,
.researcher-story-card h2 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.03em;
}

.section-heading .eyebrow,
.page-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel,
.focus-card,
.logo-card,
.research-card,
.project-card,
.researcher-story-card,
.researcher-matrix-card,
.researcher-stat-card {
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 250, 0.92));
  border: 1px solid rgba(0, 85, 250, 0.08);
  box-shadow: 0 24px 54px rgba(0, 85, 250, 0.08);
}

.panel::after,
.focus-card::after,
.logo-card::after,
.research-card::after,
.project-card::after {
  background: linear-gradient(90deg, rgba(255, 245, 0, 0.9), rgba(255, 245, 0, 0));
  height: 4px;
}

.panel:hover,
.focus-card:hover,
.logo-card:hover,
.research-card:hover,
.project-card:hover,
.researcher-matrix-card:hover,
.researcher-stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 74px rgba(0, 85, 250, 0.12);
}

.project-rhythm-band {
  position: relative;
  margin-top: -1.2rem;
  padding-top: 0;
}

.rhythm-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.rhythm-band-copy,
.rhythm-band-metrics {
  padding: 1.7rem 1.75rem;
  border-radius: 28px;
  border: 1px solid rgba(0, 85, 250, 0.08);
  box-shadow: 0 24px 54px rgba(0, 85, 250, 0.08);
}

.rhythm-band-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 250, 0.92));
}

.rhythm-band-metrics {
  display: grid;
  gap: 0.9rem;
  background: linear-gradient(135deg, #0055fa, #0040cc 56%, #002fa8);
}

.rhythm-metric {
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.rhythm-metric strong,
.rhythm-metric span {
  display: block;
}

.rhythm-metric strong {
  margin-bottom: 0.3rem;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.rhythm-metric span {
  color: rgba(255, 255, 255, 0.74);
}

.impact-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.impact-evidence-card {
  padding: 1.35rem;
  border: 1px solid rgba(0, 85, 250, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 85, 250, 0.07);
}

.impact-evidence-card strong,
.impact-evidence-card p,
.impact-evidence-card a {
  display: block;
}

.impact-evidence-card strong {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 1.02rem;
}

.impact-evidence-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.visual-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
  gap: 1.15rem;
}

.visual-card {
  position: relative;
  min-height: 380px;
  border-radius: 30px;
  overflow: hidden;
  background: #0055fa;
  box-shadow: 0 28px 64px rgba(0, 85, 250, 0.16);
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.04), rgba(11, 11, 11, 0.78)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 28%);
  z-index: 1;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.visual-card-wide {
  min-height: 420px;
}

.visual-card-copy {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(20, 20, 20, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.visual-card-copy strong,
.visual-card-copy span {
  display: block;
}

.visual-card-copy strong {
  margin-bottom: 0.32rem;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.visual-card-copy span {
  color: rgba(255, 255, 255, 0.78);
}

.page-investigadores:not(.page-profile) .page-hero {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 48%, #434343 100%);
}

.page-investigadores:not(.page-profile) .page-hero::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 245, 0, 0.22), transparent 15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.team-card {
  min-height: 520px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 249, 0.94));
  border: 1px solid rgba(0, 85, 250, 0.08);
  box-shadow: 0 26px 60px rgba(0, 85, 250, 0.1);
}

.card-photo {
  width: 168px;
  height: 208px;
  border-radius: 38px;
  overflow: hidden;
}

.card-body h3 {
  color: var(--secondary-deep);
}

.member-summary,
.member-note,
.project-card p,
.panel p,
.focus-card p,
.researcher-matrix-card p,
.researcher-story-card p {
  color: var(--muted);
}

.project-card,
.researcher-story-card,
.researcher-matrix-card,
.researcher-stat-card {
  overflow: hidden;
}

.project-card h2 {
  color: var(--secondary-deep);
}

.meta-grid div {
  border-radius: 18px;
  background: rgba(0, 85, 250, 0.04);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(20, 20, 20, 1)),
    linear-gradient(135deg, #0055fa, #0040cc);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid section {
  padding-top: 0.3rem;
}

.footer-grid h3 {
  color: #ffffff;
}

.footer-meta,
.footer-address,
.footer-phone a,
.footer-link a,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
}

.social-links a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scroll-top {
  background: linear-gradient(135deg, #a0a0a0, #7a7a7a);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(97, 97, 97, 0.24);
}

.page-profile {
  background:
    radial-gradient(circle at top left, var(--profile-accent-soft), transparent 18%),
    linear-gradient(180deg, #f4f7f8 0%, #f8fafb 34%, #eef2f4 100%);
}

.page-profile-yokasta {
  --profile-accent: #fff500;
  --profile-accent-strong: #0055fa;
  --profile-accent-soft: rgba(255, 245, 0, 0.14);
}

.page-profile-victor {
  --profile-accent: #8e8e8e;
  --profile-accent-strong: #7a7a7a;
  --profile-accent-soft: rgba(142, 142, 142, 0.14);
}

.page-profile-nestor {
  --profile-accent: #6c6c6c;
  --profile-accent-strong: #0055fa;
  --profile-accent-soft: rgba(108, 108, 108, 0.14);
}

.researcher-hero,
.page-profile-yokasta .page-hero,
.page-profile-victor .page-hero,
.page-profile-nestor .page-hero {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 46%, #434343 100%);
}

.researcher-story-highlight,
.researcher-story-highlight-victor,
.researcher-signal-board {
  background: linear-gradient(135deg, #0055fa 0%, #0040cc 52%, #464646 100%);
}

.researcher-story-highlight h2,
.researcher-story-highlight p,
.researcher-signal-board .section-heading h2,
.researcher-signal-board .section-heading .eyebrow {
  color: #ffffff;
}

.researcher-matrix-victor .researcher-matrix-card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

@media (max-width: 1100px) {

  .rhythm-band-grid,
  .visual-evidence-grid {
    grid-template-columns: 1fr;
  }

  .visual-card,
  .visual-card-wide {
    min-height: 340px;
  }
}

@media (max-width: 820px) {
  .hero-copy {
    padding: 1.25rem 1.1rem 1.3rem;
  }

  .hero-kicker-row {
    justify-content: center;
  }

  .rhythm-band-copy,
  .rhythm-band-metrics {
    padding: 1.3rem 1.15rem;
  }

  .page-hero {
    padding: 4.75rem 0 2.7rem;
  }
}

/* Restoration pass: color corrections for PUCMM brand compliance */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-strong: #ffffff;
  --text: #222222;
  --muted: #5a5a5a;
  --line: rgba(0, 85, 250, 0.12);
  --primary: #0055fa;
  --primary-deep: #0040cc;
  --secondary: #4c4c4c;
  --secondary-deep: #363636;
  --secondary-light: #959595;
  --accent: #fff500;
  --shadow: 0 20px 46px rgba(0, 85, 250, 0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(146, 146, 146, 0.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf9 30%, #f2f7f4 100%);
}

body::before {
  opacity: 0.14;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(54, 54, 54, 0.08);
  backdrop-filter: blur(14px);
}

.topbar {
  background: linear-gradient(90deg, #363636 0%, #4c4c4c 52%, #6a6a6a 100%);
}

.brand span,
.main-nav a,
.project-card h2,
.card-body h3,
.researcher-stat-card strong {
  color: var(--text);
}

.main-nav a::after {
  background: linear-gradient(90deg, var(--secondary-light), rgba(149, 149, 149, 0));
}

.hero {
  background:
    linear-gradient(90deg, rgba(0, 85, 250, 0.88) 0%, rgba(0, 85, 250, 0.72) 42%, rgba(20, 20, 20, 0.62) 100%),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg") center var(--hero-parallax-y, 50%) / cover no-repeat !important;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(15, 15, 15, 0.28)),
    radial-gradient(circle at 76% 24%, rgba(255, 245, 0, 0.15), transparent 18%);
}

.hero-grid {
  padding: 2.7rem 0 2.2rem !important;
}

.hero-copy {
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.58), rgba(28, 28, 28, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 74px rgba(25, 25, 25, 0.22);
}

.hero .eyebrow::before {
  background: linear-gradient(90deg, var(--secondary-light), rgba(149, 149, 149, 0));
}

.hero-kicker-row span,
.researcher-tag-row span {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-primary,
.action-pill {
  background: linear-gradient(135deg, #0055fa, #0040cc);
  color: #ffffff;
}

.button-secondary {
  background: rgba(76, 76, 76, 0.06);
  border: 1px solid rgba(76, 76, 76, 0.14);
  color: var(--secondary-deep);
}

.hero .button-secondary,
.page-hero .button-secondary,
.researcher-hero-actions .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-card {
  position: relative;
  border-radius: 32px !important;
  box-shadow: 0 34px 82px rgba(23, 23, 23, 0.24);
}

.hero-card::before {
  background: radial-gradient(circle, rgba(149, 149, 149, 0.52), rgba(149, 149, 149, 0));
}

.project-rhythm-band {
  margin-top: 0;
  padding-top: 2.4rem;
}

.rhythm-band-copy,
.rhythm-band-metrics {
  border-radius: 26px;
}

.rhythm-band-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.94));
}

.rhythm-band-metrics {
  background: linear-gradient(135deg, #383838, #4c4c4c 56%, #6a6a6a);
}

.rhythm-metric {
  background: rgba(255, 255, 255, 0.08);
}

.visual-card,
.research-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(33, 33, 33, 0.16);
}

.visual-card {
  background: #333333;
}

.visual-card-copy,
.research-gallery-copy {
  background: rgba(29, 29, 29, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.visual-card-copy strong,
.research-gallery-copy strong,
.visual-card-copy span,
.research-gallery-copy span {
  display: block;
}

.visual-card-copy strong,
.research-gallery-copy strong {
  color: #ffffff;
}

.visual-card-copy span,
.research-gallery-copy span {
  color: rgba(255, 255, 255, 0.8);
}

.section-lab-gallery {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 247, 242, 0.92));
}

.research-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.85fr));
  gap: 1.15rem;
}

.research-gallery-card {
  min-height: 320px;
  background: #363636;
}

.research-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.research-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.08), rgba(14, 14, 14, 0.78)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 30%);
  z-index: 1;
}

.research-gallery-card-wide {
  min-height: 400px;
}

.research-gallery-copy {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  padding: 1rem 1.05rem;
  border-radius: 22px;
}

.team-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 246, 0.96) 100%);
  border-color: rgba(54, 54, 54, 0.08);
  box-shadow: 0 24px 54px rgba(29, 29, 29, 0.1);
}

.team-card-jesus {
  --card-accent: #696969;
  --card-accent-soft: rgba(105, 105, 105, 0.18);
}

.card-photo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 241, 0.94)),
    linear-gradient(145deg, rgba(56, 56, 56, 0.08), rgba(146, 146, 146, 0.08));
}

.page-profile {
  background:
    radial-gradient(circle at top left, rgba(146, 146, 146, 0.1), transparent 18%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 34%, #f1f7f3 100%);
}

.page-profile-yokasta {
  --profile-accent: #878787;
  --profile-accent-strong: #383838;
  --profile-accent-soft: rgba(135, 135, 135, 0.14);
}

.page-profile-victor {
  --profile-accent: #777777;
  --profile-accent-strong: #383838;
  --profile-accent-soft: rgba(119, 119, 119, 0.14);
}

.page-profile-nestor {
  --profile-accent: #7b7b7b;
  --profile-accent-strong: #383838;
  --profile-accent-soft: rgba(123, 123, 123, 0.14);
}

.page-profile-jesus {
  --profile-accent: #7a7a7a;
  --profile-accent-strong: #383838;
  --profile-accent-soft: rgba(122, 122, 122, 0.14);
}

.page-profile-francisco {
  --profile-accent: #7a7a7a;
  --profile-accent-strong: #383838;
  --profile-accent-soft: rgba(122, 122, 122, 0.14);
}

.page-profile-leticia,
.page-profile-yohanna {
  --profile-accent: #7a7a7a;
  --profile-accent-strong: #383838;
  --profile-accent-soft: rgba(122, 122, 122, 0.14);
}

.page-hero,
.researcher-hero,
.page-profile-yokasta .page-hero,
.page-profile-victor .page-hero,
.page-profile-nestor .page-hero,
.page-profile-jesus .page-hero,
.page-profile-francisco .page-hero,
.page-profile-leticia .page-hero,
.page-profile-yohanna .page-hero,
.page-investigadores:not(.page-profile) .page-hero {
  background: linear-gradient(135deg, #383838 0%, #4c4c4c 48%, #6a6a6a 100%);
}

.page-hero::before,
.page-investigadores:not(.page-profile) .page-hero::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 245, 0, 0.18), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.researcher-hero-yokasta::before,
.researcher-stage-bg-yokasta::before {
  background-image:
    linear-gradient(180deg, rgba(0, 85, 250, 0.08), rgba(0, 85, 250, 0.3)),
    url("assets/img/modulo-laboratorio.jpg");
}

.researcher-hero-victor::before,
.researcher-stage-bg-victor::before {
  background-image:
    linear-gradient(180deg, rgba(19, 19, 19, 0.08), rgba(19, 19, 19, 0.3)),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg");
}

.researcher-hero-nestor::before,
.researcher-stage-bg-nestor::before {
  background-image:
    linear-gradient(180deg, rgba(0, 85, 250, 0.08), rgba(0, 85, 250, 0.3)),
    url("assets/img/campus-pucmm-santiago.jpg");
}

.researcher-hero-jesus::before,
.researcher-stage-bg-jesus::before {
  background-image:
    linear-gradient(180deg, rgba(0, 85, 250, 0.08), rgba(0, 85, 250, 0.3)),
    url("assets/img/profile-bg.jpg");
}

.researcher-hero-francisco::before,
.researcher-stage-bg-francisco::before {
  background-image:
    linear-gradient(180deg, rgba(32, 32, 32, 0.08), rgba(32, 32, 32, 0.34)),
    url("assets/img/campus-pucmm-santiago.jpg");
}

.researcher-hero-leticia::before,
.researcher-stage-bg-leticia::before,
.researcher-hero-yohanna::before,
.researcher-stage-bg-yohanna::before {
  background-image:
    linear-gradient(180deg, rgba(32, 32, 32, 0.08), rgba(32, 32, 32, 0.34)),
    url("assets/img/campus-pucmm-santiago-bg-2.jpg");
}

.page-profile-francisco .researcher-story-card,
.page-profile-francisco .researcher-matrix-card,
.page-profile-francisco .researcher-stat-card,
.page-profile-leticia .researcher-story-card,
.page-profile-leticia .researcher-matrix-card,
.page-profile-leticia .researcher-stat-card,
.page-profile-yohanna .researcher-story-card,
.page-profile-yohanna .researcher-matrix-card,
.page-profile-yohanna .researcher-stat-card {
  border-color: rgba(64, 64, 64, 0.1);
  box-shadow: 0 24px 54px rgba(35, 35, 35, 0.08);
}

.page-profile-francisco .researcher-story-card::before,
.page-profile-francisco .researcher-stat-card::before,
.page-profile-francisco .researcher-matrix-card::before,
.page-profile-leticia .researcher-story-card::before,
.page-profile-leticia .researcher-stat-card::before,
.page-profile-leticia .researcher-matrix-card::before,
.page-profile-yohanna .researcher-story-card::before,
.page-profile-yohanna .researcher-stat-card::before,
.page-profile-yohanna .researcher-matrix-card::before {
  background: linear-gradient(90deg, #7a7a7a, rgba(255, 255, 255, 0));
}

.portrait-card-francisco img {
  object-fit: cover;
  object-position: center 12%;
}

.portrait-card-jesus img {
  object-fit: cover;
  object-position: center;
  padding-top: 0;
}

.portrait-card-leticia img {
  object-fit: cover;
  object-position: center center;
}

.portrait-card-yohanna {
  width: min(39%, 250px);
  aspect-ratio: 0.64 / 1;
}

.portrait-card-yohanna img,
.card-photo-yohanna img {
  object-fit: cover;
  object-position: center 16%;
}

.card-photo-yohanna img {
  transform: scale(1.03);
}

.portrait-card-yohanna img {
  object-position: center 34%;
  transform: scale(1);
  padding-top: 0;
}

.researcher-placeholder-portrait {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 245, 0, 0.22), transparent 22%),
    linear-gradient(160deg, #383838, #6a6a6a);
  color: #ffffff;
}

.researcher-placeholder-portrait span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.researcher-placeholder-portrait small {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.researcher-story-highlight,
.researcher-story-highlight-victor,
.researcher-signal-board {
  background: linear-gradient(135deg, #303030 0%, #454545 52%, #6a6a6a 100%);
}

/* ==========================================================================
   REFINAMIENTOS FINALES: FOOTER, INICIO Y CONSISTENCIA
   ========================================================================== */

.site-footer {
  padding: 5rem 0 3rem;
  background: #232323;
  margin-top: 4rem;
  color: #ffffff;
  border-top: 4px solid #929292;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: start;
  padding-bottom: 2.25rem;
}

.footer-grid section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.35rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.footer-grid h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #929292;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.7rem;
  line-height: 1.35;
}

.footer-grid h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #fff500;
}

.footer-grid p {
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85) !important;
}

.footer-grid a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-grid a:hover {
  color: #929292 !important;
}

.footer-address {
  font-weight: 600;
  margin-bottom: 0.7rem !important;
}

.footer-meta {
  font-size: 0.85rem !important;
  opacity: 0.7;
}

.footer-phone {
  margin-top: 0.7rem;
}

.footer-phone a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}

.footer-link {
  margin-top: 0.7rem;
}

.footer-link a {
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 0;
}

/* Fixes Inicio */
.home-page .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(54, 54, 54, 0.08);
  backdrop-filter: blur(14px);
}

.home-page .brand span,
.home-page .main-nav>a {
  color: var(--text) !important;
}

.home-page .brand img {
  filter: none;
}

.home-page .menu-toggle {
  border-color: rgba(54, 54, 54, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.home-page .menu-toggle span {
  background: var(--text);
}

.home-page .menu-toggle[aria-expanded="true"] {
  border-color: rgba(54, 54, 54, 0.16);
  background: rgba(255, 255, 255, 0.98);
}

.home-page .main-nav>a::after {
  background: linear-gradient(90deg, var(--secondary-light), rgba(149, 149, 149, 0));
}

.project-rhythm-band {
  background: #f8fbf9;
  padding: 6rem 0;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-grid {
  align-items: center;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.footer-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.footer-grid section {
  position: relative;
  grid-column: span 3;
  overflow: hidden;
  padding: 1.1rem 1.05rem 1.15rem;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.footer-grid section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(146, 146, 146, 0.96), rgba(255, 245, 0, 0.82));
  opacity: 0.92;
}

.footer-grid section:hover {
  transform: translateY(-4px);
  border-color: rgba(146, 146, 146, 0.3) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.footer-grid section:nth-child(-n + 3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)) !important;
}

.footer-grid section:nth-child(-n + 3) .footer-address {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.35;
}

.footer-grid section:nth-child(-n + 3) .footer-meta {
  display: block;
  margin-bottom: 0.1rem;
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer-grid section:nth-child(-n + 3) .footer-phone {
  margin-top: auto;
  padding-top: 0.72rem;
}

.footer-grid section:last-child {
  grid-column: span 3;
  background:
    radial-gradient(circle at top right, rgba(255, 245, 0, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(146, 146, 146, 0.18), rgba(255, 255, 255, 0.04)) !important;
  border-color: rgba(255, 245, 0, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(20, 20, 20, 0.2) !important;
}

.footer-grid section:last-child::before {
  height: 100%;
  width: 5px;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #fff500, #929292);
}

.footer-grid section:last-child h3 {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-grid section:last-child h3::after {
  width: 42px;
  background: #fff500;
}

.footer-grid section:last-child .footer-phone,
.footer-grid section:last-child .footer-link {
  margin-top: 0.55rem;
}

.footer-grid section:last-child .footer-phone a,
.footer-grid section:last-child .footer-link a {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  width: 100%;
  padding: 0.62rem 0.78rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.91rem;
  line-height: 1.3;
}

.footer-grid h3 {
  margin-bottom: 0.72rem;
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-grid p {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-phone {
  margin-top: 0.5rem;
}

.footer-phone a {
  gap: 0.35rem;
  font-size: 0.9rem;
}

.footer-link {
  margin-top: 0.45rem;
}

.footer-grid section:last-child .footer-phone a:hover,
.footer-grid section:last-child .footer-link a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 245, 0, 0.35);
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 3.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid section,
  .footer-grid section:last-child {
    grid-column: auto;
  }

  .home-page .main-nav.is-open>a {
    color: var(--text) !important;
  }
}

/* Final refinement pass: stable home header + compact investigators */
.home-page .site-header,
.home-page .site-header .nav-wrap {
  background: #ffffff !important;
}

.home-page .site-header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.home-page .brand span,
.home-page .main-nav>a {
  color: var(--text) !important;
}

.home-page .menu-toggle span {
  color: var(--text) !important;
  background-color: currentColor;
}

.home-page .main-nav {
  background: #ffffff;
}

.team-overview-band {
  padding-top: 1.5rem;
  padding-bottom: 0;
}

.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.team-overview-card {
  padding: 1.2rem 1.25rem 1.25rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 244, 0.96));
  border: 1px solid rgba(54, 54, 54, 0.08);
  box-shadow: 0 18px 38px rgba(29, 29, 29, 0.08);
}

.team-overview-card-accent {
  background: linear-gradient(135deg, #383838 0%, #4c4c4c 55%, #6a6a6a 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.team-overview-label,
.team-overview-card strong,
.team-overview-card p {
  display: block;
}

.team-overview-label {
  margin-bottom: 0.55rem;
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-overview-card strong {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.team-overview-card p {
  margin: 0;
  color: #696969;
  font-size: 0.93rem;
  line-height: 1.55;
}

.team-overview-card-accent .team-overview-label,
.team-overview-card-accent strong,
.team-overview-card-accent p {
  color: #ffffff;
}

.page-investigadores:not(.page-profile) .page-hero .lead {
  max-width: 56rem;
}

.research-grid.team-grid {
  gap: 1.2rem;
}

.team-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  padding: 1.25rem;
  gap: 1.05rem;
  border-radius: 28px;
}

.team-card::after {
  height: 5px;
}

.card-photo {
  margin: 0;
  width: 100%;
  height: 176px;
  border-radius: 28px;
}

.card-photo img {
  object-position: center 12%;
}

.card-body {
  gap: 0.8rem;
  padding: 0.1rem 0 0;
}

.card-body h3 {
  font-size: 1.16rem;
  line-height: 1.28;
}

.member-role {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.member-summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.member-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-focus li {
  position: relative;
  margin: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.78rem 0.46rem 1.38rem;
  border-radius: 999px;
  background: rgba(56, 56, 56, 0.05);
  border: 1px solid rgba(56, 56, 56, 0.08);
  font-size: 0.86rem;
  line-height: 1.2;
  width: auto;
  max-width: 100%;
}

.member-focus li::before {
  top: 50%;
  left: 0.7rem;
  width: 0.38rem;
  height: 0.38rem;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px var(--card-accent-soft);
}

.member-note {
  margin: 0;
  padding-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.card-actions {
  margin-top: auto;
}

.action-pill {
  min-height: 42px;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
}

.team-card-nestor .card-photo {
  justify-self: start;
  transform: translateX(-1rem);
}

@media (max-width: 768px) {
  .team-card-nestor .card-photo {
    justify-self: center;
    transform: none;
  }
}

.team-card-nestor .card-photo img {
  object-fit: cover;
  object-position: 45% 16%;
  transform: scale(1.01);
}

.team-card-pending {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  min-height: 0;
}

.team-card-pending .card-photo {
  height: 128px;
  border-radius: 24px;
}

.team-card-pending .card-body {
  min-height: 0;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.team-card-pending .card-body h3 {
  max-width: none;
  font-size: 1.04rem;
}

.site-footer .footer-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.95rem;
}

.site-footer .footer-grid section {
  grid-column: span 3;
  min-height: 184px;
  padding: 0.95rem 1rem 1rem;
}

.site-footer .footer-grid h3 {
  margin-bottom: 0.58rem;
  padding-bottom: 0.42rem;
  font-size: 0.9rem;
}

.site-footer .footer-grid h3::after {
  width: 24px;
}

.site-footer .footer-grid p {
  margin-bottom: 0.28rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.site-footer .footer-grid section:nth-child(-n + 3) .footer-address {
  font-size: 0.89rem;
}

.site-footer .footer-grid section:nth-child(-n + 3) .footer-phone {
  padding-top: 0.45rem;
}

.site-footer .footer-grid section:last-child {
  background:
    radial-gradient(circle at top right, rgba(255, 245, 0, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(146, 146, 146, 0.14), rgba(255, 255, 255, 0.04)) !important;
}

.site-footer .footer-grid section:last-child .footer-phone a,
.site-footer .footer-grid section:last-child .footer-link a {
  min-height: 2.18rem;
  padding: 0.52rem 0.68rem;
  border-radius: 12px;
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .team-overview-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .home-page .main-nav.is-open {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(54, 54, 54, 0.08);
    box-shadow: 0 20px 44px rgba(25, 25, 25, 0.14);
  }

  .team-overview-band {
    padding-top: 1rem;
  }

  .team-card,
  .team-card-pending {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.85rem;
  }

  .card-photo,
  .team-card-pending .card-photo {
    width: 140px;
    height: 176px;
    margin: 0 auto;
  }

  .card-body,
  .team-card-pending .card-body {
    align-items: center;
    text-align: center;
  }

  .member-focus {
    justify-content: center;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid section {
    grid-column: auto;
    min-height: 0;
  }
}

.researcher-section-grid-nestor {
  align-items: start;
}

.researcher-section-grid-nestor .profile-bio {
  padding-right: 0.5rem;
}

.researcher-section-grid-nestor .researcher-story-highlight-victor {
  min-height: 100%;
  background:
    linear-gradient(150deg, rgba(73, 73, 73, 0.16), rgba(255, 255, 255, 0.92)),
    #ffffff;
  border-color: rgba(73, 73, 73, 0.12);
}

.researcher-story-highlight-nestor h2:first-of-type {
  max-width: 16ch;
}

.page-profile-nestor .researcher-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-profile-nestor .researcher-stat-card strong,
.page-profile-nestor .researcher-matrix-card strong {
  color: #3e3e3e;
}

.page-profile-nestor .researcher-matrix-card {
  border-color: rgba(73, 73, 73, 0.12);
  box-shadow: 0 18px 36px rgba(28, 28, 28, 0.06);
}

@media (max-width: 1100px) {
  .page-profile-nestor .researcher-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-profile-nestor .researcher-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .researcher-section-grid-nestor .profile-bio {
    padding-right: 0;
  }
}

/* Tablet responsive skills */
@media (max-width: 768px) {
  .researcher-matrix {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .researcher-matrix-card {
    min-width: 0;
  }
}

/* ================================================
   MEJORAS DE COMPATIBILIDAD MÃƒÆ’Ã¢â‚¬Å“VIL Y RESPONSIVIDAD
   ================================================ */

/* Fluid container: padding adaptable */
.container {
  padding-inline: clamp(1rem, 4vw, 2rem);
  width: min(100%, var(--container));
}

/* Secciones: padding reducido en mobile */
@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .section-alt {
    padding: 3rem 0;
  }

  /* Hero mÃƒÆ’Ã‚¡s compacto en mobile */
  .hero {
    min-height: 480px;
  }

  /* TipografÃƒÆ’Ã‚Â­a hero mÃƒÆ’Ã‚¡s pequeÃƒÆ’Ã‚Â±a en mobile */
  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    max-width: 100%;
    text-align: center;
  }

  .hero .lead {
    font-size: 0.96rem;
    line-height: 1.6;
    max-width: 100%;
    text-align: center;
  }

  /* Cards sin overflow */
  .project-card,
  .focus-card,
  .team-overview-card,
  .visual-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Footer simplificado */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Sections con texto centrado en mobile */
  .rhythm-band-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Heading adaptable */
  .section-heading h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
}

/* Extra pequeÃƒÆ’Ã‚Â±o: 400px y menos */
@media (max-width: 400px) {
  .container {
    padding-inline: 0.875rem;
  }

  .hero {
    min-height: 440px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 9.5vw, 2.2rem);
  }

  .hero .lead {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .brand span {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
  }

  .brand img {
    width: 88px;
  }

  .nav-wrap {
    padding: 0.65rem 0;
  }

  /* Nav dropdown en pantallas muy pequeÃƒÆ’Ã‚Â±as */
  .main-nav {
    left: 0.5rem;
    right: 0.5rem;
  }

  .main-nav a {
    padding: 0.7rem 1rem;
    font-size: 0.93rem;
  }

  /* Cards de equipo en columna */
  .team-overview-grid {
    grid-template-columns: 1fr !important;
  }

  /* MÃƒÆ’Ã‚©tricas del hero en columna */
  .rhythm-band-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Hero kicker en columna */
  .hero-kicker-row {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .section-heading h2 {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
  }
}

/* Mejoras touch target en mobile */
@media (max-width: 920px) {
  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Asegurar que no haya overflow horizontal en ninguna pantalla */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  opacity: 1;
  transform: none;
}

html.lite-motion .hero-card::after {
  animation: none !important;
}

html.lite-motion .logo-carousel-track {
  animation: scrollLogos 26s linear infinite !important;
}

html.lite-motion .button,
html.lite-motion .logo-card,
html.lite-motion .panel,
html.lite-motion .focus-card,
html.lite-motion .project-card,
html.lite-motion .person-card,
html.lite-motion .research-card,
html.lite-motion .collab-card,
html.lite-motion .pub-item {
  transition-duration: 0.18s !important;
}

@supports (content-visibility: auto) {

  .section:not(.hero):not(.page-hero),
  .panel,
  .focus-card,
  .project-card,
  .pub-item,
  .person-card,
  .research-card,
  .collab-card,
  .researcher-stat-card,
  .researcher-matrix-card,
  .researcher-story-card,
  .researcher-floating-card,
  .footer-grid section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 520px;
  }
}

:where(a, button, input, textarea, select, summary, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {

  :where(a, button, [role="button"], .button, .pub-pill, .pub-btn-doi, .pub-btn-modal):focus,
  :where(a, button, [role="button"], .button, .pub-pill, .pub-btn-doi, .pub-btn-modal):focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Hero card imagen: aspect ratio mejor en mobile */
@media (max-width: 640px) {
  .hero-card img {
    aspect-ratio: 16 / 9;
    max-height: 260px;
    object-fit: cover;
  }
}

@media (max-width: 400px) {
  .hero-card img {
    max-height: 220px;
  }
}

/* ================================================
   PUBLICACIONES ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â COMPLETE DESIGN SYSTEM
   ================================================ */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-publicaciones:not(.page-proyectos) .page-hero {
  padding-bottom: 1.6rem;
}

/* --- Filter Section --- */
.pub-filter-section {
  padding: 1rem 0 0.5rem;
  position: relative;
}

.pub-filter-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98)),
    #ffffff;
  border: 1px solid rgba(0, 85, 250, 0.13);
  box-shadow:
    0 18px 42px rgba(17, 34, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.page-publicaciones:not(.page-proyectos) .pub-filter-inner {
  align-items: stretch;
}

.pub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid rgba(0, 85, 250, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    all 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pub-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pub-pill:hover::before {
  opacity: 1;
}

.pub-pill:hover {
  border-color: rgba(0, 85, 250, 0.3);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 85, 250, 0.1);
}

.pub-pill.is-active {
  background: linear-gradient(135deg, var(--primary), #003cc4);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 85, 250, 0.28);
  transform: translateY(-1px);
}

.pub-pill.is-active:hover {
  box-shadow: 0 10px 30px rgba(0, 85, 250, 0.35);
  transform: translateY(-3px);
}

.pub-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(0, 85, 250, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.pub-pill.is-active .pub-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.pub-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 100%;
  min-width: 100%;
  margin: 0.05rem 0 0;
}

.pub-search-icon {
  position: absolute;
  left: 1.05rem;
  color: rgba(0, 85, 250, 0.72);
  display: inline-flex;
  pointer-events: none;
}

.pub-search {
  width: 100%;
  min-height: 48px;
  padding: 0.74rem 3rem 0.74rem 2.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 85, 250, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(17, 34, 68, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.pub-search::placeholder {
  color: rgba(76, 76, 76, 0.7);
}

.pub-search::-webkit-search-cancel-button,
.proj-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.pub-search:focus {
  outline: none;
  background: #ffffff;
  border-color: rgba(0, 85, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 85, 250, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 85, 250, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(44, 54, 72, 0.72);
  cursor: pointer;
  opacity: 1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.search-clear-btn[hidden] {
  display: none;
}

.search-clear-btn svg {
  width: 15px;
  height: 15px;
}

.search-clear-btn:hover,
.search-clear-btn:focus-visible {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 85, 250, 0.2);
}

.search-clear-btn:hover {
  transform: translateY(-50%) scale(1.04);
}

/* --- Publication Grid --- */
.pub-grid {
  display: grid;
  gap: 1.05rem;
}

/* --- Publication Card --- */
.pub-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  grid-template-areas:
    "meta venue"
    "meta title"
    "meta authors"
    "meta footer";
  column-gap: 1.6rem;
  row-gap: 0;
  padding: 1.65rem 1.8rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96)),
    #ffffff;
  border: 1px solid rgba(0, 85, 250, 0.09);
  box-shadow: 0 12px 34px rgba(17, 34, 68, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
  overflow: hidden;
}

.pub-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--primary), #0f7a52);
  opacity: 0.75;
  transition: opacity 0.35s ease, width 0.35s ease;
}

.pub-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(17, 34, 68, 0.12);
  border-color: rgba(0, 85, 250, 0.15);
}

.pub-item:hover::before {
  opacity: 1;
  width: 7px;
}

/* --- Meta Row (badge + year + status) --- */
.pub-meta-row {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-self: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
  padding-right: 1.15rem;
  border-right: 1px solid rgba(0, 85, 250, 0.09);
}

/* --- Badges --- */
.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.pub-badge--journal {
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.1), rgba(0, 85, 250, 0.06));
  color: var(--primary);
  border: 1px solid rgba(0, 85, 250, 0.15);
}

.pub-badge--conf {
  background: linear-gradient(135deg, rgba(120, 80, 220, 0.1), rgba(120, 80, 220, 0.05));
  color: #6a3fc7;
  border: 1px solid rgba(120, 80, 220, 0.15);
}

.pub-badge--book {
  background: linear-gradient(135deg, rgba(16, 135, 90, 0.1), rgba(16, 135, 90, 0.05));
  color: #0f7a52;
  border: 1px solid rgba(16, 135, 90, 0.15);
}

.pub-badge--ponencia {
  background: linear-gradient(135deg, rgba(195, 115, 20, 0.1), rgba(195, 115, 20, 0.05));
  color: #b06810;
  border: 1px solid rgba(195, 115, 20, 0.15);
}

.pub-badge--poster {
  background: linear-gradient(135deg, rgba(200, 50, 80, 0.1), rgba(200, 50, 80, 0.05));
  color: #b82e4a;
  border: 1px solid rgba(200, 50, 80, 0.15);
}

/* --- Year Tag --- */
.pub-year-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(76, 76, 76, 0.06);
  border: 1px solid rgba(76, 76, 76, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* --- Status Tag (En RevisiÃƒÆ’Ã‚Â³n) --- */
.pub-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.12), rgba(255, 170, 0, 0.06));
  border: 1px solid rgba(255, 170, 0, 0.2);
  font-size: 0.76rem;
  font-weight: 700;
  color: #c47e00;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pub-status-tag--accepted {
  background: linear-gradient(135deg, rgba(16, 175, 110, 0.14), rgba(16, 175, 110, 0.06));
  border-color: rgba(16, 175, 110, 0.24);
  color: #0f7a52;
}

/* --- Venue --- */
.pub-venue {
  grid-area: venue;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* --- Title --- */
.pub-item .pub-title {
  grid-area: title;
  margin: 0.3rem 0 0.7rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.05rem, 1.2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
}

/* --- Authors --- */
.pub-authors {
  grid-area: authors;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.pub-authors--structured {
  display: grid;
  gap: 0.55rem;
}

.pub-authors-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 85, 250, 0.08);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pub-author-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.pub-author-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 85, 250, 0.12);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(17, 34, 68, 0.04);
}

.pub-author-chip:first-child {
  border-color: rgba(0, 85, 250, 0.22);
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.1), rgba(255, 255, 255, 0.92));
  color: #173b76;
}

/* --- Footer (button area) --- */
.pub-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* --- DOI Button (blue, links to DOI) --- */
.pub-btn-doi {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #003cc4);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 22px rgba(0, 85, 250, 0.22);
}

.pub-btn-doi::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translate3d(-260%, 0, 0) skewX(-18deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.pub-btn-doi:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 85, 250, 0.3);
}

.pub-btn-doi:hover::after {
  transform: translate3d(320%, 0, 0) skewX(-18deg);
}

/* --- Modal Button (for pubs without DOI) --- */
.pub-btn-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #003cc4);
  color: #ffffff;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 22px rgba(0, 85, 250, 0.22);
}

.pub-btn-modal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translate3d(-260%, 0, 0) skewX(-18deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.pub-btn-modal:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 85, 250, 0.3);
}

.pub-btn-modal:hover::after {
  transform: translate3d(320%, 0, 0) skewX(-18deg);
}

.researcher-dashboard-strip,
.section-alt,
.researcher-signal-board,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* --- Arrow icon in buttons --- */
.pub-btn-arrow {
  display: inline-flex;
  transition: transform 0.25s ease;
  font-size: 1.05em;
}

.pub-btn-doi:hover .pub-btn-arrow,
.pub-btn-modal:hover .pub-btn-arrow {
  transform: translateX(4px);
}

/* --- Empty State --- */
.pub-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.pub-empty-icon {
  font-size: 3.6rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  animation: floatBob 4s ease-in-out infinite;
}

.pub-empty p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* --- Publication Animations --- */
@keyframes pubCardEnter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pubFilterPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 85, 250, 0.18);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 85, 250, 0);
  }
}

@keyframes filterStairEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes stairCardEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.965);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.pub-item.stair-animate-in,
.proj-item.stair-animate-in {
  animation: stairCardEnter 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pub-pill.filter-stair-in,
.pub-search-wrap.filter-stair-in,
.proj-search-wrap.filter-stair-in {
  animation: filterStairEnter 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pub-pill.is-active.filter-pulse {
  animation: pubFilterPulse 1.2s ease-out 1;
}

/* --- Modal Overlay --- */
.pub-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.pub-modal-overlay[hidden] {
  display: none;
}

.pub-modal-box {
  position: relative;
  width: min(92vw, 580px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  border: 1px solid rgba(0, 85, 250, 0.1);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pub-modal-overlay.is-open .pub-modal-box {
  transform: translateY(0) scale(1);
}

.pub-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pub-modal-close:hover {
  background: rgba(0, 85, 250, 0.08);
  border-color: rgba(0, 85, 250, 0.2);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 85, 250, 0.1);
}

/* --- Modal Content Styling --- */
#pub-modal-content .pub-meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding-right: 0;
  border-right: 0;
  margin-bottom: 1rem;
}

#pub-modal-content .pub-venue {
  margin-bottom: 0.5rem;
}

#pub-modal-content .pub-title {
  margin: 0.5rem 0 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

#pub-modal-content .pub-authors {
  margin: 0 0 1.2rem;
}

#pub-modal-content .pub-author-chip {
  background: #ffffff;
}

#pub-modal-content .pub-modal-desc {
  margin: 0;
  padding: 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.04), rgba(0, 85, 250, 0.02));
  border: 1px solid rgba(0, 85, 250, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
  .pub-filter-inner {
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 20px;
  }

  .pub-meta-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-right: 0;
    padding-bottom: 0.85rem;
    margin-bottom: 0.4rem;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 85, 250, 0.09);
  }

  .pub-venue {
    font-size: 0.84rem;
  }

  .pub-pill {
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
  }

  .pub-search-wrap {
    flex-basis: 100%;
    min-width: 100%;
    margin-left: 0;
  }

  .pub-item {
    display: block;
    padding: 1.4rem 1.3rem;
    border-radius: 18px;
  }

  .pub-item .pub-title {
    font-size: 1.08rem;
  }

  .pub-authors {
    font-size: 0.86rem;
  }

  .pub-author-list {
    gap: 0.35rem;
  }

  .pub-author-chip {
    min-height: 28px;
    padding: 0.34rem 0.58rem;
    font-size: 0.78rem;
  }

  .pub-btn-doi,
  .pub-btn-modal {
    width: 100%;
    justify-content: center;
  }

  .pub-modal-box {
    padding: 2rem 1.5rem;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .pub-filter-inner {
    gap: 0.45rem;
    padding: 0.65rem;
  }

  .pub-pill {
    padding: 0.42rem 0.72rem;
    font-size: 0.78rem;
  }

  .pub-pill-count {
    min-width: 19px;
    height: 19px;
    font-size: 0.72rem;
  }

  .pub-search {
    min-height: 44px;
    padding-right: 2.75rem;
    font-size: 0.82rem;
  }

  .search-clear-btn {
    right: 0.45rem;
    width: 32px;
    height: 32px;
  }

  .pub-item {
    padding: 1.2rem 1rem;
    border-radius: 16px;
  }

  .pub-item .pub-title {
    font-size: 1rem;
  }

  .pub-btn-doi,
  .pub-btn-modal {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
  }

  .pub-modal-box {
    padding: 1.5rem 1.1rem;
    border-radius: 18px;
  }
}

.logo-carousel-wrapper {
  --logo-card-width: 240px;
  --logo-loop-distance: calc(-1920px - 12rem);
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 0;
  box-sizing: border-box;
  position: relative;
}

.logo-carousel-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 1.5rem;
  animation: scrollLogos 26s linear infinite !important;
  will-change: transform;
  padding-inline: 0;
}

/* .logo-carousel-track:hover {
  animation-play-state: paused;
} */

.logo-carousel-track>* {
  width: var(--logo-card-width);
  flex-shrink: 0;
}

@keyframes scrollLogos {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(var(--logo-loop-distance), 0, 0);
  }
}

.logo-carousel-wrapper .logo-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto !important;
}

.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 2;
}

.logo-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #f4f8fb 0%, rgba(244, 248, 251, 0) 100%);
}

.logo-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #f4f8fb 0%, rgba(244, 248, 251, 0) 100%);
}

/* Mejora botones Ver Perfil */
.card-actions .action-pill {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease;
  overflow: visible;
  position: relative;
  isolation: isolate;
}

.card-actions .action-pill::after {
  display: none;
}

.card-actions .action-pill:active {
  transform: scale(0.94) translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 85, 250, 0.2);
}

.card-actions .action-pill:active::after {
  animation: rippleClick 0.4s ease-out;
}

@keyframes rippleClick {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Center researcher profile hero content */
.researcher-hero .researcher-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.researcher-hero .researcher-intro h1,
.researcher-hero .researcher-intro .eyebrow {
  text-align: center;
  margin-inline: auto;
}

.researcher-hero .researcher-intro .lead {
  text-align: center;
  margin-inline: auto;
}

.researcher-hero .researcher-tag-row,
.researcher-hero .researcher-hero-actions {
  justify-content: center;
}

.researcher-hero .researcher-intro .eyebrow::after {
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(0, 85, 250, 0.85), transparent);
}

/* Visual Enhancements for Investigator Cards */
.researcher-matrix-card,
.researcher-stat-card,
.researcher-story-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease !important;
}

.researcher-matrix-card:hover,
.researcher-stat-card:hover,
.researcher-story-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 34px 74px rgba(0, 85, 250, 0.18) !important;
  border-color: rgba(0, 85, 250, 0.3) !important;
}

.researcher-floating-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.researcher-floating-card:hover {
  animation-play-state: paused !important;
  transform: scale(1.04) translateY(-4px) !important;
  box-shadow: 0 24px 54px rgba(16, 16, 16, 0.3) !important;
  z-index: 10 !important;
}

/* =========================================================
   Proyectos ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â rediseÃƒÆ’Ã‚Â±o visual (cards, filtros, bÃƒÆ’Ã‚ºsqueda)
   ========================================================= */

.section-projects-filter .proj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.04), rgba(0, 85, 250, 0.01));
  border: 1px solid rgba(0, 85, 250, 0.12);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 85, 250, 0.05);
}

.proj-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.proj-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary, #4c4c4c);
  margin-right: 0.4rem;
}

.proj-pill {
  border: 1.5px solid rgba(0, 85, 250, 0.18);
  background: #fff;
  color: var(--secondary, #4c4c4c);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.proj-pill:hover {
  border-color: var(--primary, #0055fa);
  color: var(--primary, #0055fa);
  transform: translateY(-1px);
}

.proj-pill.is-active {
  background: var(--primary, #0055fa);
  color: #fff;
  border-color: var(--primary, #0055fa);
  box-shadow: 0 4px 12px rgba(0, 85, 250, 0.28);
}

.proj-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 360px;
}

.proj-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(0, 85, 250, 0.55);
  pointer-events: none;
}

.proj-search {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 2.5rem;
  border: 1.5px solid rgba(0, 85, 250, 0.18);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--secondary, #4c4c4c);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.proj-search:focus {
  outline: none;
  border-color: var(--primary, #0055fa);
  box-shadow: 0 0 0 3px rgba(0, 85, 250, 0.18);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-mini {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 6px 22px rgba(16, 16, 16, 0.06);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s;
  position: relative;
  overflow: hidden;
}

.project-mini::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary, #0055fa), var(--accent, #fff500));
  opacity: 0.85;
}

.project-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 85, 250, 0.16);
  border-color: rgba(0, 85, 250, 0.18);
}

.project-mini.is-hidden {
  display: none;
}

.project-mini-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.proj-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proj-tag-status.proj-tag-active {
  background: rgba(22, 163, 74, 0.13);
  color: #15803d;
}

.proj-tag-status.proj-tag-completed {
  background: rgba(100, 116, 139, 0.13);
  color: #475569;
}

.proj-tag-year {
  background: rgba(0, 85, 250, 0.08);
  color: var(--primary, #0055fa);
}

.project-mini-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0.25rem 0 0.3rem;
  color: #1a1a1a;
}

.project-mini-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--secondary, #4c4c4c);
  margin: 0;
  flex: 1;
}

.project-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.proj-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 85, 250, 0.07);
  color: var(--primary, #0055fa);
  font-size: 0.78rem;
  font-weight: 600;
}

.proj-chip-role {
  background: rgba(255, 245, 0, 0.25);
  color: #806a00;
}

.proj-chip-partner {
  background: rgba(0, 85, 250, 0.1);
}

.proj-btn-more {
  margin-top: 0.6rem;
  align-self: flex-start;
  background: var(--primary, #0055fa) !important;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 6px 16px rgba(0, 85, 250, 0.28);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.proj-btn-more::after {
  content: "→";
  transition: transform 0.2s;
}

.proj-btn-more:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 85, 250, 0.36);
}

.proj-btn-more:hover::after {
  transform: translateX(3px);
}

.proj-empty {
  text-align: center;
  padding: 2rem;
  color: var(--secondary-light, #929292);
  font-style: italic;
}

/* Modal extras */
.proj-modal-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 1rem;
}

.proj-modal-partners-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.4rem;
  color: var(--secondary, #4c4c4c);
}

.proj-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.proj-modal-link {
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .section-projects-filter .proj-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .proj-search-wrap {
    max-width: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Researcher profile polish (extiende lo existente)
   ========================================================= */

.researcher-hero {
  position: relative;
  isolation: isolate;
}

.researcher-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0, 85, 250, 0.08), transparent 55%);
  z-index: -1;
  pointer-events: none;
}

.researcher-stage img {
  border-radius: 22px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 85, 250, 0.12);
}

.researcher-floating-card {
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.researcher-hero-actions .button {
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.researcher-hero-actions .button:hover {
  transform: translateY(-2px);
}

.researcher-hero-actions .researcher-social-link,
.researcher-hero-actions .researcher-resource-link,
.researcher-hero-actions .researcher-back-link {
  min-height: 3.15rem;
  letter-spacing: 0.01em;
}

.researcher-hero-actions .researcher-social-link {
  gap: 0.58rem;
  border-radius: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, var(--researcher-social-start, #1f6feb), var(--researcher-social-end, #0b3d91));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

.researcher-hero-actions .researcher-social-link::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.researcher-hero-actions .researcher-social-link:hover,
.researcher-hero-actions .researcher-social-link:focus-visible {
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 42px rgba(0, 0, 0, 0.24);
}

.researcher-hero-actions .researcher-social-orcid {
  --researcher-social-start: #a6ce39;
  --researcher-social-end: #3f8f22;
}

.researcher-hero-actions .researcher-social-scholar {
  --researcher-social-start: #4285f4;
  --researcher-social-end: #174ea6;
}

.researcher-hero-actions .researcher-social-researchgate {
  --researcher-social-start: #00d0b5;
  --researcher-social-end: #00756c;
}

.researcher-hero-actions .researcher-social-wos {
  --researcher-social-start: #7c5cff;
  --researcher-social-end: #2d1b69;
}

.researcher-hero-actions .researcher-social-university {
  --researcher-social-start: #2f6f73;
  --researcher-social-end: #163b4f;
}

.researcher-hero-actions .researcher-resource-link {
  gap: 0.58rem;
  border-radius: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, #0055fa, #153a8a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 34px rgba(0, 85, 250, 0.24);
}

.researcher-hero-actions .researcher-resource-link::before {
  content: "";
  width: 0.7rem;
  height: 0.86rem;
  flex: 0 0 0.7rem;
  border-radius: 0.16rem;
  background:
    linear-gradient(135deg, transparent 0 22%, rgba(255, 255, 255, 0.55) 23% 32%, transparent 33%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.researcher-hero-actions .researcher-resource-link:hover,
.researcher-hero-actions .researcher-resource-link:focus-visible {
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 20px 42px rgba(0, 85, 250, 0.3);
}

.researcher-hero-actions .researcher-back-link {
  flex-basis: 100%;
  width: min(100%, 520px);
  gap: 0.55rem;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(9, 20, 40, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.researcher-hero-actions .researcher-back-link::before {
  content: "<";
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.researcher-hero-actions .researcher-back-link:hover,
.researcher-hero-actions .researcher-back-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada al hacer scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Lang toggle ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â anclaje a la derecha + integraciÃƒÆ’Ã‚Â³n mÃƒÆ’Ã‚Â³vil
   ========================================================= */

@media (min-width: 921px) {
  .nav-wrap {
    position: relative;
  }
}

@media (max-width: 920px) {

  /* En mÃƒÆ’Ã‚Â³vil el toggle se queda visible en la cabecera al lado del hamburguesa */
  .nav-wrap>.lang-toggle {
    margin: 0 0.4rem 0 auto !important;
    order: 0;
  }

  .main-nav .lang-toggle {
    display: none !important;
  }
}

/* =========================================================
   Nav centrado + lang toggle anclado a la derecha (desktop)
   ========================================================= */
@media (min-width: 921px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-wrap>.brand {
    flex-shrink: 0;
  }

  .nav-wrap>.main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1.4rem;
  }

  .nav-wrap>.lang-toggle {
    flex-shrink: 0;
  }

  .main-nav>a:last-of-type {
    margin-right: 0.25rem;
  }
}

/* =========================================================
   Proyectos ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â estilos extra que reutilizan pub-*
   ========================================================= */

/* Badges de estado de proyecto */
.page-proyectos .pub-item {
  display: block;
}

.page-proyectos .pub-meta-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding-right: 0;
  border-right: 0;
  margin-bottom: 0.85rem;
}

.pub-badge--active {
  background: linear-gradient(135deg, rgba(16, 175, 110, 0.14), rgba(16, 175, 110, 0.06));
  color: #0f8a55;
  border: 1px solid rgba(16, 175, 110, 0.22);
}

.pub-badge--completed {
  background: linear-gradient(135deg, rgba(95, 105, 130, 0.14), rgba(95, 105, 130, 0.06));
  color: #4a5570;
  border: 1px solid rgba(95, 105, 130, 0.22);
}

/* Resumen superior (pills con mÃƒÆ’Ã‚©tricas) */
.page-proyectos .proj-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.page-proyectos .proj-summary-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.08), rgba(0, 85, 250, 0.02));
  border: 1px solid rgba(0, 85, 250, 0.14);
  font-size: 0.9rem;
  color: var(--muted);
}

.page-proyectos .proj-summary-pill strong {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 800;
}

.page-proyectos .proj-filter-helper {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

/* Search dentro del filter section */
.page-proyectos .pub-filter-section .pub-filter-inner {
  justify-content: flex-start;
}

.page-proyectos .proj-search-wrap {
  position: relative;
  margin-top: 0.75rem;
  max-width: 520px;
}

.page-proyectos .proj-search-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.page-proyectos .proj-search {
  width: 100%;
  padding: 0.7rem 3rem 0.7rem 2.6rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 85, 250, 0.12);
  background: #fff;
  font: inherit;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-proyectos .proj-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 85, 250, 0.12);
}

/* Grid responsivo dos columnas en escritorio para proyectos */
.page-proyectos #proj-grid.pub-grid {
  gap: 1.2rem;
}

@media (min-width: 880px) {
  .page-proyectos #proj-grid.pub-grid {
    display: block;
    columns: 2;
    column-gap: 1.2rem;
  }

  .page-proyectos #proj-grid .proj-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.2rem;
    break-inside: avoid;
  }
}

/* Empty state alineado con pub-empty */
.page-proyectos .pub-empty {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
}

.page-proyectos .pub-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-proyectos .pub-empty h2 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.page-proyectos .pub-empty p {
  margin: 0 auto 1rem;
  max-width: 44ch;
}

.proj-investigators {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 85, 250, 0.06), rgba(0, 85, 250, 0.02));
  border: 1px solid rgba(0, 85, 250, 0.12);
}

.proj-investigators-label {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.proj-investigators-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.proj-investigators-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  color: var(--secondary);
  line-height: 1.45;
}

.proj-investigators-list strong {
  color: var(--text);
  font-size: 0.92rem;
}

.proj-investigators-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 245, 0, 0.24);
  color: #6e5c00;
  font-size: 0.78rem;
  font-weight: 700;
}

.proj-modal-investigators {
  margin-top: 1.2rem;
}

/* ==========================================================================
   Header and Researcher Contrast Fixes
   ========================================================================== */

@media (min-width: 921px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
  }

  .brand {
    min-width: 0;
    margin-right: auto;
  }

  .brand span {
    font-size: clamp(0.76rem, 0.18vw + 0.72rem, 0.92rem);
    line-height: 1.15;
  }

  .brand img {
    width: 140px;
  }

  .main-nav {
    min-width: 0;
    margin-left: auto;
    margin-right: 0.35rem;
    justify-content: flex-end;
    gap: clamp(0.5rem, 0.75vw, 0.95rem);
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }

  .main-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(0.84rem, 0.1vw + 0.82rem, 0.94rem);
  }

  .nav-wrap>.lang-toggle {
    align-self: center;
    margin-left: 0;
    margin-right: 0.75rem;
  }

  .nav-wrap>.lang-toggle[data-lang="es"] {
    margin-right: 0rem;
  }

  .nav-wrap>.lang-toggle[data-lang="en"] {
    margin-right: -4rem;
  }
}

@media (max-width: 920px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
    gap: 0.75rem;
  }

  .brand span {
    max-width: 13ch;
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .nav-wrap>.lang-toggle {
    margin: 0 !important;
    order: 0;
  }

  .menu-toggle {
    justify-self: end;
  }

  .main-nav {
    top: calc(100% + 0.5rem);
  }
}

.lang-toggle {
  box-sizing: border-box;
}

.lang-toggle .lt-track {
  width: 100%;
}

.lang-toggle .lt-opt {
  text-align: center;
}

.page-publicaciones .page-hero .lead,
.page-proyectos .page-hero .lead,
.page-investigadores .page-hero .lead,
.page-profile .researcher-intro .lead {
  color: rgba(255, 255, 255, 0.92);
}

.page-proyectos .proj-summary-row {
  gap: 0.9rem;
}

.page-proyectos .proj-summary-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.page-proyectos .proj-summary-pill strong {
  color: #ffffff;
}

.researcher-floating-card {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1d2430 !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 22px 40px rgba(12, 18, 28, 0.22) !important;
}

.researcher-floating-card strong {
  color: #1a1f29;
}

.researcher-floating-card span {
  color: rgba(29, 36, 48, 0.86) !important;
}

.researcher-story-highlight,
.researcher-story-highlight-victor,
.researcher-signal-board {
  background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 52%, #505050 100%);
}

.researcher-story-highlight p,
.researcher-story-highlight-victor p,
.researcher-signal-board .section-heading .eyebrow,
.researcher-signal-board .section-heading h2,
.page-profile .researcher-intro .eyebrow,
.page-profile .researcher-intro h1 {
  color: #ffffff !important;
}

.researcher-story-highlight p:last-child,
.researcher-story-highlight-victor p:last-child {
  color: rgba(255, 255, 255, 0.9) !important;
}

.page-profile-victor .researcher-stage-bg::after,
.page-profile-yokasta .researcher-stage-bg::after,
.page-profile-nestor .researcher-stage-bg::after,
.page-profile-jesus .researcher-stage-bg::after,
.page-profile-leticia .researcher-stage-bg::after,
.page-profile-yohanna .researcher-stage-bg::after {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.16), rgba(17, 17, 17, 0.42)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 36%);
}

.page-profile .researcher-portrait-card {
  box-shadow: 0 28px 60px rgba(10, 10, 10, 0.24);
}

@media (max-width: 760px) {
  .researcher-floating-card {
    width: min(82%, 320px);
    padding: 0.92rem 0.95rem 0.98rem;
  }

  .page-proyectos .proj-summary-pill {
    width: 100%;
    justify-content: space-between;
  }

  .page-proyectos .proj-search-wrap {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .logo-carousel-wrapper {
    --logo-card-width: 210px;
    --logo-loop-distance: calc(-1680px - 12rem);
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.55rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand img {
    width: 108px;
  }

  .brand span {
    max-width: 11ch;
    font-size: 0.76rem;
  }

  .page-proyectos .proj-summary-row {
    gap: 0.7rem;
  }

  .page-proyectos .proj-summary-pill {
    padding: 0.7rem 0.95rem;
  }
}

/* ================================================================
   RESPONSIVE FIXES ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â v20260519
   Siempre al final; sobreescribe conflictos anteriores.
   ================================================================ */

/* Prevenir scroll horizontal en todo el sitio */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 1. MÃƒÆ’Ã‚Â³vil: dar contexto de posiciÃƒÆ’Ã‚Â³n al nav-wrap para el dropdown ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 920px) {
  .nav-wrap {
    position: relative;
  }

  /* Dropdown posicionado desde nav-wrap, no desde site-header */
  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 50;
  }

  /* Texto del brand no desbordarse */
  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 2. Desktop: layout definitivo ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â brand izq | lang | nav ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (min-width: 921px) {
  .nav-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    position: relative !important;
  }

  .nav-wrap>.brand {
    flex-shrink: 0;
    margin-right: 0 !important;
  }

  .nav-wrap>.lang-toggle {
    flex-shrink: 0;
    margin-left: 0 !important;
  }

  .nav-wrap>.main-nav {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: clamp(0.55rem, 0.9vw, 1.15rem) !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }

  /* Menu toggle oculto siempre en desktop */
  .menu-toggle {
    display: none !important;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 3. Filtros de publicaciones/proyectos: scroll horizontal en mÃƒÆ’Ã‚Â³vil ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 600px) {
  .pub-filter-inner {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
    /* Asegurar que contenedor no corte el scroll */
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .pub-filter-inner::-webkit-scrollbar {
    display: none;
  }

  .pub-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .page-publicaciones:not(.page-proyectos) .pub-filter-inner {
    flex-wrap: wrap !important;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0.65rem;
  }

  .page-publicaciones:not(.page-proyectos) .pub-pill {
    flex: 0 0 auto;
  }

  .page-publicaciones:not(.page-proyectos) .pub-search-wrap {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Barra de filtros de proyectos tambiÃƒÆ’Ã‚©n */
  .proj-filter-bar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .proj-filter-bar::-webkit-scrollbar {
    display: none;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 4. Hero kicker row: wrap correcto en mÃƒÆ’Ã‚Â³vil ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 640px) {
  .hero-kicker-row {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
  }

  /* Reducir secciones con padding excesivo */
  .section {
    padding: 2.75rem 0;
  }

  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 5. Pantallas muy pequeÃƒÆ’Ã‚Â±as (ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤400px) ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 400px) {
  .container {
    width: calc(100% - 1.5rem);
    padding-inline: 0.75rem;
  }

  .brand img {
    width: 96px;
  }

  .brand span {
    max-width: 9ch;
    font-size: 0.74rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    text-align: center;
    justify-content: center;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 6. Footer: columna ÃƒÆ’Ã‚ºnica en mÃƒÆ’Ã‚Â³vil ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .footer-grid section {
    padding: 1.25rem 1rem !important;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 7. Tabla/grid de investigadores en mÃƒÆ’Ã‚Â³vil ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 600px) {

  .team-card,
  .team-card-pending {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .card-photo,
  .team-card-pending .card-photo {
    width: min(52vw, 160px);
    height: min(64vw, 200px);
    margin: 0 auto;
  }

  .card-body,
  .team-card-pending .card-body {
    align-items: center !important;
    text-align: center !important;
  }

  .member-focus {
    justify-content: center !important;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 8. Hamburger breakpoint elevado a 1100px ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
/* Fuerza comportamiento mÃƒÆ’Ã‚Â³vil en 921-1099px donde el nav desborda */
@media (min-width: 921px) and (max-width: 1099px) {
  .menu-toggle {
    display: inline-block !important;
  }

  .nav-wrap {
    position: relative !important;
  }

  .nav-wrap>.main-nav {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 50 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(44, 44, 44, 0.08) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 48px rgba(26, 26, 26, 0.14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-14px) scale(0.98) !important;
    transform-origin: top right !important;
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }

  .nav-wrap>.main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .nav-wrap>.main-nav.is-closing {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(0.985) !important;
  }

  .nav-wrap>.main-nav a {
    width: 100% !important;
    padding: 0.85rem 0.95rem !important;
    border-radius: 14px !important;
  }

  .nav-wrap>.lang-toggle {
    margin: 0 0.4rem 0 auto !important;
  }

  .main-nav .lang-toggle {
    display: none !important;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Desktop real: 1100px+ */
@media (min-width: 1100px) {
  .menu-toggle {
    display: none !important;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 8. SecciÃƒÆ’Ã‚Â³n de colaboraciones: logos visibles en mÃƒÆ’Ã‚Â³vil ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 520px) {
  .logo-carousel-wrapper {
    padding: 0.5rem 0;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 9. Botones de acciÃƒÆ’Ã‚Â³n en tarjetas de publicaciones ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 480px) {
  .pub-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pub-btn-doi,
  .pub-btn-modal {
    width: 100%;
    justify-content: center;
  }
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ 10. Asegurar que el hero no supere la altura del viewport ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
@media (max-width: 920px) {
  .hero {
    min-height: min(580px, 90svh);
  }

  .hero-grid {
    min-height: min(520px, calc(85svh - 60px)) !important;
  }
}


.page-investigadores:not(.page-profile) .team-card {
  --card-accent: #0055fa;
  --card-accent-soft: rgba(0, 85, 250, 0.14);
  border-color: rgba(0, 85, 250, 0.1);
  background:
    radial-gradient(circle at 86% 4%, rgba(0, 85, 250, 0.18), rgba(0, 85, 250, 0.08) 18%, transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 252, 0.96) 100%);
  box-shadow:
    0 28px 58px rgba(28, 36, 50, 0.1),
    0 12px 32px rgba(0, 85, 250, 0.08);
}

.page-investigadores:not(.page-profile) .team-card::before {
  background:
    radial-gradient(circle at 86% 8%, rgba(0, 85, 250, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.42), transparent 46%);
}

.page-investigadores:not(.page-profile) .team-card::after {
  display: none;
}

.page-investigadores:not(.page-profile) .team-card:hover {
  border-color: rgba(0, 85, 250, 0.18);
  box-shadow:
    0 34px 74px rgba(28, 36, 50, 0.13),
    0 16px 38px rgba(0, 85, 250, 0.12);
}

.page-investigadores:not(.page-profile) .team-card-yokasta,
.page-investigadores:not(.page-profile) .team-card-victor,
.page-investigadores:not(.page-profile) .team-card-jesus,
.page-investigadores:not(.page-profile) .team-card-nestor,
.page-investigadores:not(.page-profile) .team-card-francisco,
.page-investigadores:not(.page-profile) .team-card-leticia,
.page-investigadores:not(.page-profile) .team-card-yohanna {
  --card-accent: #0055fa;
  --card-accent-soft: rgba(0, 85, 250, 0.14);
}

.page-investigadores:not(.page-profile) .card-photo {
  align-self: start;
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 246, 0.92)),
    linear-gradient(145deg, rgba(0, 85, 250, 0.1), rgba(255, 255, 255, 0));
  box-shadow:
    0 22px 44px rgba(28, 36, 50, 0.13),
    0 0 0 1px rgba(0, 85, 250, 0.08);
}

.page-investigadores:not(.page-profile) .team-card {
  align-items: stretch;
}

.page-investigadores:not(.page-profile) .card-body {
  align-self: stretch;
  height: 100%;
}

.page-investigadores:not(.page-profile) .member-note {
  margin-top: 0.2rem;
}

.page-investigadores:not(.page-profile) .card-actions {
  margin-top: auto;
}

.page-investigadores:not(.page-profile) .member-role {
  color: #0055fa;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(0, 85, 250, 0.18),
    0 8px 18px rgba(0, 85, 250, 0.08);
}

.page-investigadores:not(.page-profile) .member-focus {
  gap: 0.55rem;
}

.page-investigadores:not(.page-profile) .member-focus li {
  width: fit-content;
  max-width: 100%;
  padding: 0.48rem 0.9rem 0.48rem 1.55rem;
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 999px;
  background: rgba(247, 250, 249, 0.76);
  color: #4c4c4c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.page-investigadores:not(.page-profile) .member-focus li::before {
  left: 0.62rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  transform: translateY(-50%);
  background: #0055fa;
  box-shadow: 0 0 0 4px rgba(0, 85, 250, 0.15);
}

.page-investigadores:not(.page-profile) .member-note {
  border-top-color: rgba(0, 85, 250, 0.1);
}

.page-investigadores:not(.page-profile) .action-pill {
  background: #0055fa;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 85, 250, 0.25);
}

.page-investigadores:not(.page-profile) .action-pill:hover,
.page-investigadores:not(.page-profile) .action-pill:focus-visible {
  background: #0047d6;
  box-shadow: 0 18px 34px rgba(0, 85, 250, 0.32);
}

@media (min-width: 1181px) {
  .page-investigadores:not(.page-profile) .research-grid.team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-investigadores:not(.page-profile) .team-card-yohanna {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  /* Ã¢â€â‚¬Ã¢â€â‚¬ Light reveal: solo fade-up corto para elementos .reveal Ã¢â€â‚¬Ã¢â€â‚¬ */
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    will-change: opacity, transform;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  }

  .page-investigadores .team-card.anim-tilt.is-visible {
    animation-duration: 0.6s;
  }

  /* Fade-in-up simple para elementos que no son .reveal */
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Mantener la cinta transportadora funcionando */
  .logo-carousel-track {
    animation: scrollLogos 22s linear infinite !important;
    will-change: transform !important;
  }

  /* Desactivar animaciones pesadas de decoraciÃƒÂ³n, NO la cinta */
  .hero,
  .page-hero,
  .researcher-hero,
  .researcher-stage-bg::before,
  .researcher-floating-card {
    animation: none !important;
    will-change: auto !important;
  }

  .researcher-floating-card,
  .hero .button-secondary,
  .researcher-tag-row span,
  .researcher-hero-actions .researcher-back-link,
  .researcher-hero-actions .researcher-social-link,
  .researcher-hero-actions .researcher-resource-link,
  .pub-modal {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .panel,
  .focus-card,
  .logo-card,
  .research-card,
  .project-card,
  .researcher-story-card,
  .researcher-matrix-card,
  .researcher-stat-card,
  .pub-item {
    transition: none !important;
    box-shadow: 0 12px 28px rgba(28, 36, 50, 0.08) !important;
  }

  .panel:hover,
  .focus-card:hover,
  .logo-card:hover,
  .research-card:hover,
  .project-card:hover,
  .researcher-matrix-card:hover,
  .researcher-stat-card:hover,
  .researcher-story-card:hover,
  .team-card:hover {
    transform: none !important;
  }

  .researcher-floating-card {
    box-shadow: 0 12px 26px rgba(16, 16, 16, 0.16) !important;
  }

  .button::after,
  .panel::after,
  .project-card::after,
  .research-card::after {
    display: none !important;
  }

}



/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   CONTACT FORM Ã¢â‚¬â€ MOBILE FIXES
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* Ã¢â€â‚¬Ã¢â€â‚¬ iOS zoom fix: font-size mÃƒÂ­nimo 16px en inputs Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 768px) {

  .mini-form input,
  .mini-form textarea,
  .mini-form select,
  .cs-trigger {
    font-size: 16px !important;
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Formulario de contacto en mÃƒÂ³vil Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 600px) {

  .contact-layout,
  .contact-layout-enhanced {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-person-card,
  .contact-form-panel {
    padding: 1.2rem 1rem;
    border-radius: 18px;
  }

  /* Inputs y botÃƒÂ³n full-width, altura tÃƒ¡ctil mÃƒÂ­nima */
  .mini-form input,
  .mini-form textarea {
    padding: 0.9rem 1rem;
    min-height: 48px;
    font-size: 16px !important;
  }

  /* BotÃƒÂ³n enviar full-width en mÃƒÂ³vil */
  .mini-form .button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 15px;
  }

  /* Textarea menos alta en mÃƒÂ³vil */
  .mini-form textarea {
    min-height: 110px !important;
    max-height: 200px !important;
  }

  /* Nota del formulario */
  .form-note {
    font-size: 13px;
    text-align: center;
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Custom dropdown en mÃƒÂ³vil Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 600px) {
  .cs-trigger {
    min-height: 50px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
  }

  /* Panel del dropdown: ancho completo, scroll si hay muchas opciones */
  .cs-dropdown {
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }

  .cs-option {
    padding: 0.9rem 1rem;
    min-height: 48px;
    font-size: 15px;
  }

  /* En mÃƒÂ³vil no hay hover con desplazamiento lateral */
  .cs-option:hover {
    transform: none;
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Evitar overflow horizontal en pantallas pequeÃƒÂ±as Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 480px) {

  .contact-person-card,
  .contact-form-panel {
    padding: 1rem 0.9rem;
  }

  .mini-form {
    gap: 0.85rem;
  }

  /* Datos de contacto de la investigadora */
  .contact-person-details {
    font-size: 13px;
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Eliminar transform en hover del form-panel en touch Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (hover: none) {

  .form-panel:hover,
  .contact-form-panel:hover {
    transform: none !important;
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Dropdown z-index fix (mobile overlay bug) Ã¢â€â‚¬Ã¢â€â‚¬ */
.mini-form label {
  position: relative;
  z-index: 1;
}

.mini-form label:has(.select-wrap),
.mini-form label:has(.cs-select) {
  z-index: 100;
}

.cs-select[aria-expanded="true"],
.mini-form label:has([aria-expanded="true"]) {
  z-index: 500;
}

.cs-dropdown {
  z-index: 9999;
}

/* Feedback option color */
.cs-option[data-value="feedback"].is-selected {
  color: #92400e;
}

.cs-option[data-value="feedback"].is-selected .cs-option-dot {
  background: #92400e;
  border-color: #92400e;
}

.cs-option[data-value="feedback"]:hover .cs-option-dot {
  border-color: #92400e;
}

/* Laboratorios page */
.page-laboratorios .lab-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(0, 85, 250, 0.92) 0%, rgba(54, 54, 54, 0.84) 54%, rgba(20, 28, 34, 0.86) 100%),
    url("assets/img/laboratorios/csti-modulos-exterior.jpg") center / cover no-repeat;
}

.page-laboratorios .lab-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.98));
  pointer-events: none;
}

.lab-hero-intro {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
}

.lab-hero-intro .eyebrow,
.lab-hero-intro .lead {
  color: rgba(255, 255, 255, 0.9);
}

.lab-hero-intro .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.lab-hero-intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
}

.lab-hero-intro .lead {
  max-width: 72ch;
  margin: 1.35rem auto 0;
}

.lab-campus-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.lab-campus-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.lab-campus-key strong {
  color: var(--accent);
}

.lab-locations {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  background: #ffffff;
}

.lab-locations-heading {
  align-items: center;
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.lab-locations-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.lab-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: stretch;
  overflow: visible;
}

.lab-location-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 85, 250, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(28, 36, 50, 0.1);
  transform-origin: center;
  transition: opacity 0.32s ease, filter 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.38s ease;
}

.lab-location-card:focus-visible {
  outline: 3px solid rgba(0, 85, 250, 0.34);
  outline-offset: 4px;
}

.lab-location-grid:has(.lab-location-card:hover) .lab-location-card:not(:hover),
.lab-location-grid:has(.lab-location-card:focus-within) .lab-location-card:not(:focus-within) {
  opacity: 0.42;
  filter: saturate(0.72) contrast(0.9);
}

.lab-location-card-left:hover,
.lab-location-card-left:focus-within {
  transform: translateX(5%) scale(1.025);
}

.lab-location-card-right:hover,
.lab-location-card-right:focus-within {
  transform: translateX(-5%) scale(1.025);
}

.lab-location-card:hover,
.lab-location-card:focus-within {
  z-index: 2;
  border-color: rgba(0, 85, 250, 0.26);
  box-shadow: 0 34px 74px rgba(28, 36, 50, 0.16);
}

.lab-location-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #eef3f5;
}

.lab-location-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.lab-location-card:hover .lab-location-media img,
.lab-location-card:focus-within .lab-location-media img {
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.04);
}

.lab-location-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
}

.lab-campus {
  width: fit-content;
  margin: 0;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 85, 250, 0.1);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-location-body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.18;
}

.lab-short,
.lab-hover-detail p,
.lab-hover-detail li,
.lab-point p,
.lab-detail-section .section-heading p {
  color: var(--muted);
}

.lab-short,
.lab-hover-detail p {
  margin: 0;
}

.lab-hover-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: grid-template-rows 0.38s ease, opacity 0.32s ease, transform 0.38s ease;
}

.lab-hover-detail > * {
  min-height: 0;
  overflow: hidden;
}

.lab-location-card:hover .lab-hover-detail,
.lab-location-card:focus-within .lab-hover-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.lab-hover-detail ul {
  display: grid;
  gap: 0.62rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.lab-hover-detail li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(0, 85, 250, 0.09);
  border-radius: 14px;
  background: rgba(0, 85, 250, 0.035);
  line-height: 1.45;
}

.lab-hover-detail li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.43em;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(0, 85, 250, 0.1);
}

.lab-more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 46px;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(0, 85, 250, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.lab-more-left {
  align-self: flex-start;
}

.lab-more-right {
  align-self: flex-end;
}

.lab-more:hover,
.lab-more:focus-visible {
  background: #0047d6;
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(0, 85, 250, 0.3);
}

.lab-detail-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.lab-detail-section-alt {
  background: #ffffff;
}

.lab-detail-grid,
.lab-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.lab-points {
  display: grid;
  gap: 1rem;
}

.lab-point {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(0, 85, 250, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(34, 34, 34, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-point:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(34, 34, 34, 0.11);
}

.lab-point span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.lab-point h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.lab-point p {
  margin: 0;
}

.lab-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.lab-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(28, 36, 50, 0.12);
}

.lab-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.lab-gallery figure:hover img {
  transform: scale(1.06);
}

.lab-gallery figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.lab-gallery-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-photo-gallery-section {
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.lab-photo-gallery-section .section-heading {
  align-items: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lab-photo-gallery-section .section-heading .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.lab-photo-gallery-section .section-heading p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.lab-gallery-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.76fr) minmax(260px, 1.24fr) auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  width: min(100%, 840px);
  max-width: 840px;
  min-height: clamp(150px, 18vw, 230px);
  margin: 2rem auto 0;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  overflow: hidden;
  border: 1px solid rgba(22, 31, 45, 0.08);
  border-radius: 22px;
  background: #a9afb9;
  box-shadow: 0 24px 58px rgba(20, 28, 42, 0.14);
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.lab-gallery-showcase::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 36%;
  width: 2px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.56);
  z-index: 2;
}

.lab-gallery-showcase:hover,
.lab-gallery-showcase:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(20, 28, 42, 0.18);
}

.lab-gallery-preview-grid {
  position: relative;
  order: 2;
  width: min(100%, 430px);
  min-height: clamp(118px, 15vw, 190px);
  z-index: 1;
}

.lab-gallery-preview-grid img {
  position: absolute;
  width: clamp(150px, 24vw, 320px);
  height: clamp(98px, 14vw, 185px);
  max-width: 100%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  cursor: pointer;
  filter: saturate(0.96) contrast(1.02);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.lab-gallery-preview-grid img:nth-child(n + 7) {
  display: none;
}

.lab-gallery-preview-grid img:nth-child(1) {
  left: 9%;
  top: 8%;
  z-index: 5;
}

.lab-gallery-preview-grid img:nth-child(2) {
  left: 0;
  top: 26%;
  z-index: 3;
  opacity: 0.72;
  transform: rotate(-6deg) scale(0.88);
}

.lab-gallery-preview-grid img:nth-child(3) {
  left: 21%;
  top: 28%;
  z-index: 4;
  opacity: 0.78;
  transform: rotate(5deg) scale(0.86);
}

.lab-gallery-preview-grid img:nth-child(4) {
  right: 0;
  top: 6%;
  z-index: 2;
  opacity: 0.58;
  transform: rotate(7deg) scale(0.78);
}

.lab-gallery-preview-grid img:nth-child(5),
.lab-gallery-preview-grid img:nth-child(6) {
  right: 12%;
  bottom: 0;
  z-index: 1;
  opacity: 0.44;
  transform: rotate(-4deg) scale(0.72);
}

.lab-gallery-preview-grid img:hover {
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.18);
}

.lab-gallery-summary {
  order: 1;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-height: 100%;
  padding-right: 0.7rem;
  color: #ffffff;
}

.lab-gallery-summary .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.lab-gallery-summary h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.lab-gallery-summary p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.lab-gallery-open {
  order: 3;
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: clamp(46px, 5vw, 64px);
  height: clamp(46px, 5vw, 64px);
  border: 0;
  border-radius: 999px;
  background: rgba(229, 231, 235, 0.5);
  color: rgba(55, 65, 81, 0.78);
  cursor: pointer;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
  transition: transform 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.lab-gallery-open:hover,
.lab-gallery-open:focus-visible {
  background: rgba(243, 244, 246, 0.76);
  color: rgba(17, 24, 39, 0.86);
  transform: translateX(5px);
}

.lab-gallery-open:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.28);
  outline-offset: 4px;
}

.lab-gallery-is-open {
  overflow: hidden;
}

.lab-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lab-photo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lab-photo-modal[hidden] {
  display: none;
}

.lab-photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 85, 250, 0.38), transparent 34%),
    rgba(6, 12, 22, 0.88);
  backdrop-filter: blur(12px);
}

.lab-photo-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.85rem;
  width: min(1180px, 100%);
  height: min(760px, calc(100vh - 2rem));
  padding: clamp(0.75rem, 1.5vw, 1rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(12, 20, 32, 0.76);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-photo-modal.is-open .lab-photo-modal__panel {
  transform: translateY(0) scale(1);
}

.lab-photo-modal__close,
.lab-photo-modal__nav,
.lab-photo-modal__thumb {
  border: 0;
  cursor: pointer;
}

.lab-photo-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #101827;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.lab-photo-modal__figure {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  margin: 0;
}

.lab-photo-modal__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.lab-photo-modal__nav {
  align-self: center;
  width: clamp(46px, 5vw, 62px);
  height: clamp(46px, 5vw, 62px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.lab-photo-modal__nav:hover,
.lab-photo-modal__nav:focus-visible,
.lab-photo-modal__close:hover,
.lab-photo-modal__close:focus-visible {
  background: #ffffff;
  transform: scale(1.06);
}

.lab-photo-modal__nav--prev {
  grid-column: 1;
  grid-row: 1;
}

.lab-photo-modal__nav--next {
  grid-column: 3;
  grid-row: 1;
}

.lab-photo-modal__thumbs {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0.25rem 0.45rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
  -ms-overflow-style: none;
}

.lab-photo-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.lab-photo-modal__thumb {
  flex: 0 0 74px;
  height: 58px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0.62;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lab-photo-modal__thumb.is-active {
  background: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
}

.lab-photo-modal__thumb img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.lab-detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  color: #ffffff;
  isolation: isolate;
}

.lab-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--lab-detail-bg, #1b2a36) center / cover no-repeat;
  transform: scale(1.04);
}

.lab-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(0, 85, 250, 0.9) 0%, rgba(44, 44, 44, 0.78) 48%, rgba(15, 20, 25, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.lab-detail-hero-csd {
  --lab-detail-bg: url("assets/img/laboratorios/santo-domingo/csd-vista-completa.jpg");
}

.lab-detail-hero-csti {
  --lab-detail-bg: url("assets/img/laboratorios/csti-modulos-exterior.jpg");
}

.lab-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.82fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.lab-detail-copy {
  max-width: 720px;
}

.lab-detail-copy .eyebrow,
.lab-detail-copy .lead {
  color: rgba(255, 255, 255, 0.92);
}

.lab-detail-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.lab-detail-copy .lead {
  margin-top: 1.25rem;
}

.lab-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  margin-bottom: 1.3rem;
  padding: 0.56rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 800;
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, background-color 0.24s ease;
}

.lab-back-link:hover,
.lab-back-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.lab-detail-hero-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.26);
}

.lab-detail-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Final header fit after adding Laboratorios */
@media (min-width: 1100px) {
  .site-header .container {
    width: min(calc(100% - 1.25rem), 1300px);
  }

  .nav-wrap {
    gap: 0.7rem !important;
  }

  .brand img {
    width: 132px;
  }

  .brand span {
    font-size: clamp(0.72rem, 0.18vw + 0.68rem, 0.86rem);
    letter-spacing: 0.035em;
  }

  .nav-wrap>.main-nav {
    gap: clamp(0.7rem, 0.85vw, 1.05rem) !important;
  }

  .main-nav a {
    font-size: clamp(0.9rem, 0.12vw + 0.86rem, 1rem) !important;
  }

  .nav-wrap>.lang-toggle {
    margin-right: 0 !important;
  }
}

@media (min-width: 921px) and (max-width: 1279px) {
  .menu-toggle {
    display: inline-block !important;
  }

  .nav-wrap {
    position: relative !important;
  }

  .nav-wrap>.main-nav {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 50 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(44, 44, 44, 0.08) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 48px rgba(26, 26, 26, 0.14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-14px) scale(0.98) !important;
    transform-origin: top right !important;
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }

  .nav-wrap>.main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .nav-wrap>.main-nav.is-closing {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(0.985) !important;
  }

  .nav-wrap>.main-nav a {
    width: 100% !important;
    padding: 0.85rem 0.95rem !important;
    border-radius: 14px !important;
  }

  .nav-wrap>.main-nav a.nav-lab-link {
    justify-content: space-between !important;
    gap: 0.75rem !important;
  }

  .nav-wrap>.lang-toggle {
    margin: 0 0.4rem 0 auto !important;
  }
}

@media (min-width: 1280px) {
  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .lab-location-grid,
  .lab-detail-grid,
  .lab-feature-grid,
  .lab-gallery,
  .lab-gallery-wide,
  .lab-gallery-showcase,
  .lab-detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .lab-gallery-preview-grid {
    min-height: clamp(136px, 46vw, 200px);
  }

  .lab-gallery-showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    max-width: none;
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
  }

  .lab-gallery-showcase::before {
    display: none;
  }

  .lab-gallery-summary {
    width: 100%;
    padding-right: 0;
  }

  .lab-gallery-summary h3 {
    max-width: 14rem;
    margin-left: auto;
    margin-right: auto;
  }

  .lab-gallery-preview-grid {
    width: min(100%, 360px);
    order: 2;
  }

  .lab-gallery-open {
    order: 3;
    width: 52px;
    height: 52px;
    margin-top: 0.35rem;
  }

  .lab-gallery-preview-grid img {
    width: min(70vw, 270px);
    height: clamp(108px, 32vw, 158px);
  }

  .lab-gallery-preview-grid img:nth-child(1) {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .lab-gallery-preview-grid img:nth-child(2) {
    left: 2%;
    top: 20%;
    transform: rotate(-6deg) scale(0.78);
  }

  .lab-gallery-preview-grid img:nth-child(3) {
    left: 24%;
    top: 25%;
    transform: rotate(5deg) scale(0.76);
  }

  .lab-gallery-preview-grid img:nth-child(4) {
    right: 2%;
    top: 18%;
    transform: rotate(7deg) scale(0.7);
  }

  .lab-gallery-preview-grid img:nth-child(5),
  .lab-gallery-preview-grid img:nth-child(6) {
    right: 20%;
    bottom: 0;
    transform: rotate(-4deg) scale(0.66);
  }

  .lab-photo-modal {
    padding: 0.6rem;
  }

  .lab-photo-modal__panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 46px auto;
    height: min(720px, calc(100vh - 1.2rem));
    padding: 0.6rem;
    border-radius: 22px;
  }

  .lab-photo-modal__figure {
    grid-column: 1 / -1;
  }

  .lab-photo-modal__nav {
    grid-row: 2;
    width: auto;
    height: 46px;
    font-size: 2rem;
  }

  .lab-photo-modal__nav--prev {
    grid-column: 1;
  }

  .lab-photo-modal__nav--next {
    grid-column: 2;
  }

  .lab-photo-modal__thumbs {
    grid-row: 3;
  }

  .lab-photo-modal__thumb {
    flex-basis: 62px;
    height: 50px;
  }

  .lab-location-grid:has(.lab-location-card:hover) .lab-location-card:not(:hover),
  .lab-location-grid:has(.lab-location-card:focus-within) .lab-location-card:not(:focus-within) {
    opacity: 1;
    filter: none;
  }

  .lab-location-card-left:hover,
  .lab-location-card-left:focus-within,
  .lab-location-card-right:hover,
  .lab-location-card-right:focus-within {
    transform: none;
  }

  .lab-hover-detail {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: none;
  }

  .lab-more-left,
  .lab-more-right {
    align-self: stretch;
    justify-content: center;
  }

  .lab-campus-key {
    align-items: stretch;
    flex-direction: column;
  }

  .lab-campus-key span {
    justify-content: center;
    width: 100%;
    border-radius: 18px;
  }

  .lab-detail-hero {
    padding: 3rem 0;
  }

  .lab-detail-hero-photo {
    order: -1;
  }
}

/* Hero bloom refinement: investigators + laboratories */
.page-investigadores:not(.page-profile) .page-hero {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(4.4rem, 8vw, 7.2rem);
  background:
    radial-gradient(ellipse at 10% 28%, rgba(0, 85, 250, 0.98) 0%, rgba(0, 85, 250, 0.72) 34%, rgba(0, 85, 250, 0) 68%),
    radial-gradient(ellipse at 86% 14%, rgba(255, 245, 0, 0.18) 0%, rgba(255, 245, 0, 0.08) 24%, rgba(255, 245, 0, 0) 56%),
    linear-gradient(118deg, #0055fa 0%, #174da2 36%, #3f4d5a 68%, #4f5358 100%);
}

.page-investigadores:not(.page-profile) .page-hero::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 28% 24%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 42%),
    radial-gradient(ellipse at 78% 28%, rgba(255, 245, 0, 0.11), rgba(255, 245, 0, 0) 48%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.06) 100%);
  mix-blend-mode: screen;
}

.page-investigadores:not(.page-profile) .page-hero::after {
  inset: auto 0 0;
  z-index: 0;
  height: min(52%, 320px);
  background:
    linear-gradient(180deg,
      rgba(244, 249, 251, 0) 0%,
      rgba(244, 249, 251, 0.1) 30%,
      rgba(244, 249, 251, 0.42) 58%,
      rgba(244, 249, 251, 0.86) 82%,
      #f4f9fb 100%);
}

.page-investigadores:not(.page-profile) .page-hero .container {
  position: relative;
  z-index: 1;
}

.page-laboratorios .lab-hero {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(5.5rem, 9vw, 8rem);
  background:
    radial-gradient(ellipse at 0% 22%, rgba(0, 85, 250, 0.98) 0%, rgba(0, 85, 250, 0.68) 34%, rgba(0, 85, 250, 0) 68%),
    radial-gradient(ellipse at 92% 12%, rgba(255, 245, 0, 0.22) 0%, rgba(255, 245, 0, 0.08) 28%, rgba(255, 245, 0, 0) 58%),
    linear-gradient(112deg, rgba(0, 85, 250, 0.86) 0%, rgba(42, 55, 68, 0.78) 50%, rgba(21, 27, 32, 0.88) 100%),
    url("assets/img/laboratorios/csti-modulos-exterior.jpg") center / cover no-repeat;
}

.page-laboratorios .lab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 38% 26%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 46%),
    linear-gradient(90deg, rgba(0, 85, 250, 0.2), rgba(255, 255, 255, 0.035) 45%, rgba(255, 245, 0, 0.075) 100%);
  mix-blend-mode: screen;
}

.page-laboratorios .lab-hero::after {
  inset: auto 0 0;
  z-index: 0;
  height: min(58%, 380px);
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 28%,
      rgba(255, 255, 255, 0.36) 55%,
      rgba(255, 255, 255, 0.78) 80%,
      #ffffff 100%);
}

.page-laboratorios .lab-hero .container {
  position: relative;
  z-index: 1;
}




/* ==========================================================================
   ANALOGUE CREATIVE ANIMATIONS & DYNAMIC UX
   ========================================================================== */

/* Cinematic Lens Reveal (Cinematic Keyframe Upgrades) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes softZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes sweepUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.97);
    filter: blur(5px);
    letter-spacing: 0.02em;
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    letter-spacing: 0;
  }
}

/* Smart Sticky Header & Transition improvements */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
  will-change: box-shadow;
}

.site-header.header-hidden {
  transform: none;
}

.site-header.header-scrolled {
  box-shadow: 0 10px 40px rgba(0, 85, 250, 0.06);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-investigadores .site-header:not(.header-scrolled) {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Premium Hover Transitions on Desktop for Panels and Cards */
@media (hover: hover) and (min-width: 769px) {
  .panel,
  .focus-card,
  .link-card,
  .logo-card,
  .research-card,
  .project-card,
  .collab-card {
    transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.42s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background 0.3s ease !important;
  }

  .panel:hover,
  .focus-card:hover,
  .link-card:hover,
  .logo-card:hover,
  .research-card:hover,
  .project-card:hover,
  .collab-card:hover {
    transform: translateY(-8px) scale(1.012) !important;
    box-shadow: 
      0 26px 52px rgba(28, 36, 50, 0.07),
      0 12px 32px rgba(0, 85, 250, 0.08) !important;
    border-color: rgba(0, 85, 250, 0.24) !important;
  }
}

/* Custom ripple focus transition on interactive elements */
.action-pill, .button {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.action-pill:active, .button:active {
  transform: scale(0.96) !important;
}

/* Final UX, motion, responsive, and security polish */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.page-transitioning {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
}

@keyframes softRevealClip {
  from {
    opacity: 0;
    clip-path: inset(0 0 18% 0 round 8px);
    transform: translate3d(0, 22px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 8px);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes lineGlowSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

.anim-clip.is-visible {
  animation: softRevealClip 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.button,
.action-pill,
.pub-pill,
.pub-btn-doi,
.pub-btn-modal,
.lab-gallery-open {
  transform: translateZ(0);
}

.button::before,
.action-pill::before,
.lab-gallery-open::before {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.button:hover::before,
.button:focus-visible::before,
.action-pill:hover::before,
.action-pill:focus-visible::before,
.lab-gallery-open:hover::before,
.lab-gallery-open:focus-visible::before {
  opacity: 1;
  animation: lineGlowSweep 0.72s ease-out;
}

.researcher-hero-actions .researcher-social-link::before,
.researcher-hero-actions .researcher-social-link:hover::before,
.researcher-hero-actions .researcher-social-link:focus-visible::before {
  content: "";
  position: static;
  inset: auto;
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
  opacity: 1;
  transform: none;
  animation: none;
  pointer-events: none;
}

.researcher-hero-actions .researcher-resource-link::before,
.researcher-hero-actions .researcher-resource-link:hover::before,
.researcher-hero-actions .researcher-resource-link:focus-visible::before {
  content: "";
  position: static;
  inset: auto;
  width: 0.7rem;
  height: 0.86rem;
  flex: 0 0 0.7rem;
  border-radius: 0.16rem;
  background:
    linear-gradient(135deg, transparent 0 22%, rgba(255, 255, 255, 0.55) 23% 32%, transparent 33%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
  opacity: 1;
  transform: none;
  animation: none;
  pointer-events: none;
}

.project-card,
.research-card,
.team-card,
.focus-card,
.panel,
.collab-card,
.lab-gallery-showcase {
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .main-nav a,
  .topbar-inner a {
    transition: color 0.24s ease, transform 0.24s ease;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .topbar-inner a:hover,
  .topbar-inner a:focus-visible {
    transform: translateY(-1px);
  }

  .project-card:hover,
  .research-card:hover,
  .team-card:hover,
  .focus-card:hover,
  .panel:hover,
  .collab-card:hover {
    transition-duration: 0.34s !important;
  }
}

.error-container {
  max-width: 860px;
}

.error-card {
  padding: 3rem 2rem;
  text-align: center;
}

.error-card h1 {
  margin-bottom: 1rem;
}

.error-card .lead {
  max-width: 34ch;
  margin: 0 auto 1.5rem;
}

.error-card .hero-actions {
  justify-content: center;
}

.contact-message {
  min-height: 120px;
  max-height: 300px;
  resize: vertical;
}

.team-card-portrait-jesus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.25);
}

@media (max-width: 920px) {
  .site-header {
    overflow: visible;
  }

  .main-nav {
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav.is-open {
    animation: softRevealClip 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .nav-wrap {
    gap: 0.75rem;
  }

  .brand {
    flex: 1 1 auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .section {
    padding-block: clamp(2.2rem, 8vw, 4rem);
  }

  .project-card,
  .research-card,
  .team-card,
  .team-card-pending,
  .form-panel,
  .contact-person-card,
  .contact-form-panel,
  .lab-gallery-showcase {
    border-radius: 12px !important;
  }

  .button,
  .action-pill,
  .lab-gallery-open,
  .pub-btn-doi,
  .pub-btn-modal {
    min-height: 44px;
  }

  .hero-actions,
  .researcher-hero-actions,
  .card-actions {
    gap: 0.7rem;
  }

  .impact-evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    text-align: center;
  }

  .brand img {
    width: clamp(96px, 34vw, 128px);
  }

  .brand span {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .hero-actions .button,
  .researcher-hero-actions .button,
  .error-card .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .error-card {
    padding: 2.1rem 1rem;
  }
}

@media (max-width: 1279px) {
  .site-header {
    overflow: visible;
  }

  .nav-wrap>.main-nav,
  .main-nav {
    position: fixed !important;
    top: calc(var(--mobile-nav-top, 76px) + 0.5rem) !important;
    left: max(0.75rem, env(safe-area-inset-left)) !important;
    right: max(0.75rem, env(safe-area-inset-right)) !important;
    z-index: 9999 !important;
    width: auto !important;
    max-height: calc(100svh - var(--mobile-nav-top, 76px) - 1rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-wrap>.main-nav.is-open,
  .main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }

  .container {
    width: min(calc(100% - 0.9rem), var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.page-transitioning,
  .main-nav.is-open,
  .anim-clip.is-visible,
  .button::before,
  .action-pill::before,
  .lab-gallery-open::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
