:root {
  color-scheme: light;
  --deep-blue: #0e2a3a;
  --mid-blue: #163f59;
  --teal: #2f8c8c;
  --coral: #ef7a59;
  --sand: #f7f1eb;
  --mist: #f2f6f8;
  --ink: #13202a;
  --glass: rgba(255, 255, 255, 0.75);
  --shadow: 0 20px 60px rgba(8, 21, 30, 0.18);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.6;
}

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

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

.hero {
  position: relative;
  min-height: 52vh;
  background: linear-gradient(120deg, #f3ebe7 0%, #eef4f2 55%, #f8f2ee 100%);
  background-size: 120% 120%;
  background-position: center calc(35% + var(--parallax-shift, 0px));
  color: var(--ink);
  overflow: hidden;
  padding-top: calc(var(--nav-height, 0px) - 180px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-glow {
  position: absolute;
  inset: -30% 0 auto 0;
  height: 70%;
  background: radial-gradient(circle at 20% 20%, rgba(239, 122, 89, 0.55), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(100, 210, 210, 0.45), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.22), transparent 65%);
  opacity: 0.32;
  animation: drift 16s linear infinite;
  pointer-events: none;
}

.nav-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
}

@keyframes drift {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 80px);
}

.nav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(237, 232, 230, 0.96);
  border-bottom: 1px solid rgba(19, 32, 42, 0.1);
  box-shadow: 0 12px 30px rgba(12, 22, 30, 0.12);
  backdrop-filter: blur(12px);
}

.nav.is-sticky .nav-links {
  background: rgba(255, 255, 255, 0.9);
}

.nav.is-sticky .nav-links a {
  color: #1b2b33;
}

.nav.is-sticky .menu-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(19, 32, 42, 0.2);
}

.nav.is-sticky .menu-toggle span {
  background: #1b2b33;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0);
}

@media (max-width: 700px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(20px);
  }
}


.brand {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.brand img {
  width: clamp(165px, 24vw, 255px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.3));
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 32, 42, 0.1);
  padding: 12px 16px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1b2b33;
}

.nav-links a.is-active {
  background: linear-gradient(120deg, rgba(47, 140, 140, 0.22), rgba(239, 122, 89, 0.22));
  color: #0f232c;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(14, 42, 58, 0.18);
  position: relative;
  animation: navPulse 1.2s ease-out;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(47, 140, 140, 0.35);
  box-shadow: 0 0 0 6px rgba(47, 140, 140, 0.1);
  pointer-events: none;
}

@keyframes navPulse {
  0% {
    transform: translateY(2px) scale(0.98);
  }
  60% {
    transform: translateY(0) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(19, 32, 42, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  color: #1b2b33;
}

.locale-switch select {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(19, 32, 42, 0.2);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1b2b33;
  margin: 6px auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 1fr);
  gap: 24px;
  padding: 0px clamp(24px, 5vw, 80px) 28px;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}


.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-super {
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: #1b2b33;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(19, 32, 42, 0.65);
}

.lead {
  font-size: 0.95rem;
  max-width: 520px;
  color: rgba(19, 32, 42, 0.8);
}

.hero-actions {
  margin: 16px 0 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #f4a259);
  color: #1c1511;
  box-shadow: 0 16px 32px rgba(239, 122, 89, 0.3);
}

.btn-outline {
  border-color: rgba(19, 32, 42, 0.6);
  color: #1b2b33;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 32, 42, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 30px rgba(18, 34, 45, 0.08);
}

.hero-stats strong {
  font-size: 1.5rem;
}

.hero-stats span {
  display: block;
  font-size: 0.85rem;
  color: rgba(19, 32, 42, 0.65);
}

.hero-visual {
  display: grid;
  gap: 20px;
  align-items: start;
}

.hero-visual .hero-card {
  margin-top: 0;
}

.hero-visual .hero-stats {
  width: 100%;
}

.hero-card {
  background: var(--glass);
  color: var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  min-height: 320px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hero-card-info {
  padding: 18px 20px 22px;
}

.hero-card-info h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 6px;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

.section {
  padding: 4px clamp(20px, 5.2vw, 84px) 26px;
  background-color: var(--mist);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  background-size: 100% 200%;
  background-position: 50% calc(0% + var(--section-shift, 0px));
  scroll-margin-top: calc(var(--nav-height, 0px) + 4px);
}

.section.alt {
  background-color: var(--sand);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  background-size: 100% 200%;
  background-position: 50% calc(0% + var(--section-shift, 0px));
}

.section-header {
  max-width: 680px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 8px;
}

.section-header p {
  color: #41505b;
}

.section-subnav {
  position: sticky;
  top: calc(var(--nav-height, 0px) + 8px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 42, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 12px 24px rgba(12, 22, 30, 0.08);
  backdrop-filter: blur(10px);
  width: fit-content;
  margin-bottom: 18px;
}

.section-subnav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2f3e46;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.section-subnav a:hover {
  background: rgba(239, 122, 89, 0.15);
  color: #1b2b33;
}

.anchor-target {
  scroll-margin-top: calc(var(--nav-height, 0px) + 56px);
}

.grid {
  display: grid;
  gap: 10px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.timeline {
  background: white;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.08);
  display: grid;
  gap: 12px;
  height: 100%;
  position: relative;
}

.timeline-item {
  display: grid;
  gap: 10px;
  position: relative;
  padding-left: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(19, 32, 42, 0.12);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(47, 140, 140, 0.5), rgba(239, 122, 89, 0.4));
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(239, 122, 89, 0.15);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b2b33;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}

.governance {
  display: grid;
  gap: 12px;
  background: white;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.08);
  height: 100%;
}

.governance h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.governance-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.governance-card {
  background: white;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 18px 30px rgba(18, 34, 45, 0.08);
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.governance-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.35s ease;
}

.governance-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.governance-card span {
  color: #5a6a73;
  font-size: 0.9rem;
}

.principles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.principle-card {
  background: #f8f9fb;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(19, 32, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card.span-full {
  grid-column: 1 / -1;
}

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

  .timeline::before {
    left: 14px;
  }

  .timeline-item::before {
    left: 7px;
  }
}

.principle-card h4 {
  font-family: "Playfair Display", serif;
  margin-bottom: 8px;
}

.lines-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.1);
  display: grid;
  grid-template-rows: 120px 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card div {
  padding: 14px;
}

.card h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 8px;
}

.line-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.1);
  display: grid;
  grid-template-rows: 140px 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.line-media {
  height: 140px;
}

.line-media img,
.line-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-media img {
  opacity: 0.82;
  filter: saturate(0.9);
}

.line-placeholder {
  background: linear-gradient(135deg, #123645, #2c7a7d);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.line-content {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
}

.line-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #1b2b33;
}

.line-content ul {
  list-style: none;
  display: grid;
  gap: 6px;
  color: #2f3e46;
  font-size: 0.9rem;
}

.line-content li {
  position: relative;
  padding-left: 18px;
}

.line-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.profile {
  background: white;
  border-radius: 22px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile img {
  border-radius: 18px;
  height: 170px;
  object-fit: cover;
  margin-bottom: 8px;
  transition: transform 0.35s ease;
}

.profile-link {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.profile h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.profile span {
  color: #5a6a73;
  font-size: 0.85rem;
}

.lab-link {
  color: #3a5460;
  font-size: 0.85rem;
}

.lab-link:hover {
  color: #1b2b33;
}

.profile-email {
  color: #2f5f6a;
  font-size: 0.68rem;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

.publication-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.publication {
  background: white;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication span {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
}

.publication h3 {
  font-family: "Playfair Display", serif;
  margin: 10px 0;
}

.pub-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep-blue);
}

.pub-link:hover {
  color: var(--teal);
}

.cta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--deep-blue);
  color: white;
  padding: 16px;
  border-radius: 24px;
}

.cta img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.contact {
  background: linear-gradient(120deg, rgba(20, 48, 63, 0.1), rgba(47, 140, 140, 0.08));
  background-size: 120% 120%;
  background-position: center calc(12% + var(--parallax-shift, 0px));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 30px rgba(18, 34, 45, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card h3 {
  font-size: 1rem;
  margin-top: 12px;
  color: var(--deep-blue);
}

.contact-note {
  font-size: 0.9rem;
  color: #5a6a73;
  margin-top: 6px;
}

.map-preview {
  position: relative;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 42, 0.12);
}

.map-preview iframe {
  width: 100%;
  height: 160px;
  border: 0;
  display: block;
}

.map-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 30px rgba(18, 34, 45, 0.08);
  display: grid;
  gap: 10px;
}

.honeypot {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #324048;
}

input,
textarea {
  border: 1px solid #d2dde4;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
}

.footer {
  padding: 40px clamp(24px, 6vw, 100px);
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .brand img {
    width: clamp(120px, 34vw, 180px);
  }

  .nav-links {
    position: absolute;
    top: 92px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(12, 22, 30, 0.18);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 3;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    color: #1b2b33;
  }

  .locale-switch {
    background: #ffffff;
    border-color: rgba(19, 32, 42, 0.1);
    color: #1b2b33;
  }

  .nav-links .btn-primary {
    color: #1c1511;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 24px 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta img {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 20px 18px;
  }

  .hero-content {
    padding: 50px 18px 36px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    height: 180px;
  }

  .section-subnav {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }

  .section {
    padding: 8px 18px 24px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .line-card:hover,
  .profile:hover,
  .publication:hover,
  .governance-card:hover,
  .principle-card:hover,
  .contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(18, 34, 45, 0.18);
  }
}

@media (min-width: 901px) {
  .profile:hover img {
    transform: scale(1.06);
  }
}

@media (min-width: 901px) {
  .governance-card:hover img {
    transform: scale(1.05);
  }
}

.lab-page {
  background: var(--mist);
}

.lab-hero {
  background: linear-gradient(135deg, #0c2433 0%, #174b5f 60%, #2b7a78 100%);
  color: white;
  padding-bottom: 40px;
}

.lave-hero {
  background:
    linear-gradient(120deg, rgba(12, 36, 51, 0.88), rgba(23, 75, 95, 0.7)),
    url("assets/laboratorios/lave.avif") center/cover no-repeat;
}

.lab-hero .nav {
  position: static;
  background: transparent;
  border-bottom: none;
  padding: 26px clamp(24px, 5vw, 80px);
}

.lab-hero .nav-links {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.lab-hero .nav-links a {
  color: white;
}

.lab-hero-content {
  padding: 40px clamp(24px, 5vw, 80px) 70px;
  max-width: 760px;
}

.lab-hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.lab-hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.lab-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: white;
}

.lab-hero-immuno {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/inmunogenetica.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: immunoHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-immuno::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-immuno .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes immunoHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-molecular {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/investigacion%20molecular%20y%20enfermedades.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: molecularHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-molecular::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-molecular .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes molecularHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-citogenetica {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/citogeneticamolecular.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: citogeneticaHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-citogenetica::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-citogenetica .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes citogeneticaHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-micro {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/microbiologiamolecular.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: microHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-micro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-micro .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes microHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-neuro {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/neurogenetica.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: neuroHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-neuro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-neuro .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes neuroHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-parasito {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/parasitologia.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: parasitoHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-parasito::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-parasito .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes parasitoHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-cultivos {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/cultivos.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: cultivosHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-cultivos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-cultivos .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes cultivosHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-biolomole {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/laboratorios/biolomole.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: biolomoleHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-biolomole::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-biolomole .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes biolomoleHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}

.lab-hero-uies {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/uies.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: uiesHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.lab-hero-uies::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.lab-hero-uies .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes uiesHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}
.crb-hero {
  position: relative;
  overflow: hidden;
  background-color: #0b1f2a;
  background-image:
    linear-gradient(120deg, rgba(7, 22, 30, 0.82) 0%, rgba(10, 31, 41, 0.72) 55%, rgba(14, 46, 54, 0.7) 100%),
    url("assets/crb/biohazard.png");
  background-size: 120% 120%;
  background-position: 10% 50%;
  animation: crbHeroPan 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.crb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 30, 0.55) 0%, rgba(7, 22, 30, 0.2) 55%, rgba(7, 22, 30, 0.6) 100%);
  pointer-events: none;
}

.crb-hero .lab-hero-content {
  position: relative;
  z-index: 2;
}

@keyframes crbHeroPan {
  0% {
    background-position: 10% 50%;
  }
  100% {
    background-position: 90% 50%;
  }
}


.seminar-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  background: #0f2b3b;
  color: #fff;
  padding: 12px 46px 12px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(8, 21, 30, 0.22);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  gap: 8px;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: min(520px, 90vw);
  position: fixed;
}

.seminar-fab__link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.seminar-fab__close {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.seminar-fab__toggle {
  display: none;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.seminar-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.seminar-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  visibility: hidden;
}

.seminar-fab.is-collapsed {
  padding: 10px 12px;
  left: auto;
  right: 24px;
  width: auto;
  max-width: 220px;
}

.seminar-fab.is-collapsed .seminar-fab__link,
.seminar-fab.is-collapsed .seminar-fab__close {
  display: none;
}

.seminar-fab.is-collapsed .seminar-fab__toggle {
  display: inline-flex;
}

.seminarios-hero {
  background: linear-gradient(120deg, #0e2a3a 0%, #1e4b5f 60%, #2f8c8c 100%);
}

.calendar {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(18, 34, 45, 0.08);
}

.calendar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.calendar-header span {
  color: #4c5b63;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5a6b74;
}

.calendar-day {
  border-radius: 12px;
  background: #f4f7f8;
  min-height: 64px;
  padding: 8px;
  font-weight: 600;
  color: #22343d;
  display: grid;
  align-content: start;
  gap: 6px;
}

.calendar-day.is-friday {
  background: rgba(239, 122, 89, 0.18);
  border: 1px solid rgba(239, 122, 89, 0.35);
}

.calendar-day span {
  font-size: 0.75rem;
  color: #6b7a82;
  font-weight: 600;
}

.seminar-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.seminar-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 30px rgba(18, 34, 45, 0.08);
  display: grid;
  gap: 10px;
}

.seminar-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .seminar-fab {
    right: 16px;
    left: 16px;
    text-align: center;
  }

  .seminar-fab.is-collapsed {
    left: auto;
    right: 16px;
    width: auto;
    max-width: 180px;
    padding: 10px 14px;
  }

  .seminar-fab__link {
    flex: 1;
    text-align: center;
  }

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .calendar-grid {
    gap: 6px;
  }
}

.lab-summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lab-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 30px rgba(18, 34, 45, 0.08);
}

.crb-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.crb-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.crb-poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.crb-poster-card {
  display: grid;
  gap: 12px;
}

.crb-poster-card figcaption {
  font-size: 0.9rem;
  color: #52626a;
}

.lab-team {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lab-team--molecular .lab-person img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.lab-person {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 30px rgba(18, 34, 45, 0.08);
  display: grid;
  gap: 12px;
}

.lab-person img {
  width: min(180px, 55%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
}

.person-placeholder {
  width: min(180px, 55%);
  height: 180px;
  border-radius: 14px;
  background: #eef2f4;
  color: #5a6b74;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  letter-spacing: 0.08em;
}

.crb-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.crb-lead-bio {
  display: grid;
  gap: 12px;
}

.crb-lead-bio p {
  color: #334149;
}

.lab-contact {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 30px rgba(18, 34, 45, 0.08);
}

.publications-page .section-header h2 {
  margin-bottom: 6px;
}

.publications-year {
  padding-top: 60px;
}

.publications-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.publications-list li {
  background: white;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 30px rgba(18, 34, 45, 0.06);
  display: grid;
  gap: 8px;
}

.publications-list li p {
  font-size: 0.95rem;
  color: #35444d;
}

.publications-list li a {
  font-weight: 600;
  color: var(--deep-blue);
  font-size: 0.9rem;
}

.publications-list li a:hover {
  color: var(--teal);
}

@media (max-width: 900px) {
  .lab-hero .nav-links {
    background: rgba(255, 255, 255, 0.95);
  }

  .lab-hero .nav-links a {
    color: #1b2b33;
  }

  .crb-grid {
    grid-template-columns: 1fr;
  }

  .crb-lead {
    grid-template-columns: 1fr;
  }
}
