@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@600;800&family=Noto+Sans:wght@400;600&display=swap');

:root {
  --rojo: #ea2f28;
  --azul: #1b8eed;
  --blanco: #ffffff;
  --gris-claro: #f4f6f8;
  --gris-medio: #dce1e6;
  --gris-oscuro: #2f2f2f;
  --negro: #111111;
}

body {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.08rem;
  background-color: var(--blanco);
  color: var(--gris-oscuro);
  line-height: 1.75;
}

h1,
h2,
h3 {
  font-family: 'Gabarito', sans-serif;
  color: var(--azul);
  font-weight: 800 !important;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--azul);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  padding: 2.5rem 0;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  height: 48px;
}

.cerv-logo {
  width: auto;
  display: inline-block;
}

.cerv-logo-nav {
  height: 42px;
}

.cerv-logo-hero {
  height: 144px;
  max-width: min(100%, 360px);
}

.navbar-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gris-oscuro);
}

.navbar-nav .nav-link:hover {
  color: var(--azul);
}

.apertura {
  background: linear-gradient(180deg, rgba(244, 246, 248, 0.95), rgba(244, 246, 248, 0.5));
}

.eyebrow,
.activity-kicker {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 0.5rem;
}

.card {
  border-radius: 18px;
  background-color: var(--gris-claro);
  padding: 2rem;
  border: 1px solid var(--gris-medio);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.hero-card {
  border-radius: 18px;
  background-color: var(--gris-claro);
  border: 1px solid var(--gris-medio);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 2.5rem;
  max-width: 440px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto;
}

.section-intro {
  margin-top: -0.5rem;
}

.project-overview {
  padding: 2.5rem;
}

.project-lead {
  color: var(--rojo);
  font-weight: 600;
}

.project-sidecard,
.mini-card {
  height: 100%;
  border-radius: 16px;
  background-color: var(--blanco);
  border: 1px solid var(--gris-medio);
  padding: 1.5rem;
}

.project-sidecard h3,
.mini-card h3 {
  color: var(--rojo);
}

.project-documents {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gris-medio);
}

.project-documents h4 {
  font-family: 'Gabarito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gris-oscuro);
  margin-bottom: 0.75rem;
}

.project-documents-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-documents-list li + li {
  margin-top: 0.5rem;
}

.project-documents-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--azul);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.pdf-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--rojo);
}

.pdf-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.project-list {
  margin: 0;
  padding-left: 1.2rem;
}

.project-list li + li {
  margin-top: 0.8rem;
}

.project-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-medio);
  font-size: 0.98rem;
}

.language-switcher {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1080;
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid var(--gris-medio);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.language-button {
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  color: var(--gris-oscuro);
  font-family: 'Gabarito', sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.7rem 0.85rem;
}

.language-button.active {
  background-color: var(--azul);
  color: var(--blanco);
}

.activity-card {
  overflow: hidden;
}

.album-img {
  border-radius: 12px;
  object-fit: cover;
  min-height: 280px;
  max-height: 520px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.language-block {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gris-medio);
}

.source-link {
  margin-top: 1.5rem;
  font-weight: 600;
}

footer {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

footer h2,
footer a {
  color: var(--blanco);
}

.logo-footer {
  height: 48px;
  margin-left: 1rem;
}

.cerv-logo-footer {
  height: 58px;
}

.footer-title {
  color: var(--blanco);
}

@media (max-width: 991.98px) {
  .hero-card {
    max-width: none;
  }

  .album-img {
    min-height: 220px;
  }

  .cerv-logo-nav {
    height: 36px;
  }

  .cerv-logo-hero {
    float: none !important;
    display: block;
    height: 116px;
    margin: 0 0 1rem auto;
  }

  .hero-logo {
    width: min(100%, 190px);
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 1rem;
  }

  .card,
  .hero-card {
    padding: 1.5rem;
  }

  .project-overview {
    padding: 1.5rem;
  }

  .language-switcher {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .logo-footer {
    margin-left: 0;
    margin-top: 1rem;
  }

  .cerv-logo-footer {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .cerv-logo-hero {
    height: 96px;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-logo {
    width: min(100%, 170px);
  }
}
