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

:root {
  --blue-dark: #0e3b73;
  --blue-main: #113f8a;
  --blue-light: #2e98ea;
  --text-dark: #24364b;
  --bg-soft: #f3f3f3;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

/* CONTENEDOR */
.container {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 14px;
  padding: 0 20px;
}

.topbar-content {
  width: 100%;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  margin-left: 0;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  gap: 15px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.topbar a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* HEADER */
.header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;  
  height: 64px;
  padding: 0 40px;  
}

.logo {
  height: 50px;
  width: auto;  margin-left: -110px;
  display: block;
  flex-shrink: 0;
}

/* NAVBAR */
.navbar {
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: -100px;
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar a {
  text-decoration: none;
  color: #222;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  position: relative;
  padding: 29px 0 27px;
  display: inline-block;
  text-transform: uppercase;
}

.navbar a:hover {
  color: var(--blue-main);
}

.navbar a.active {
  color: var(--blue-main);
}

.navbar a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--blue-main);
  bottom: 12px;
  left: 0;
}

/* HERO */
.hero {
  position: relative;
  width: 100vw;
  height: calc(100vh - 134px);
  min-height: 650px;
  overflow: hidden;
}

.video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 40, 120, 0.95),
    rgba(10, 40, 120, 0.60),
    rgba(10, 40, 120, 0.20)
  );
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
  color: white;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 780px;
  font-weight: 800;
}

.hero-text p {
  max-width: 840px;
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 1.05rem;
  font-weight: 400;
}

.btn-hero {
  border: 2px solid white;
  padding: 14px 28px;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* ACERCA DE CEIGRAS */
.about-section {
  background: var(--bg-soft);
  padding: 80px 0 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.6rem;
  color: var(--blue-dark);
  margin-bottom: 28px;
  font-weight: 800;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 700px;
  font-weight: 400;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--blue-light);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
  font-weight: 500;
}

.about-link:hover {
  border-color: var(--blue-light);
}

.about-image img {
  width: 100%;
  max-width: 700px;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  margin-left: auto;
}

/* EXPLORA NUESTRA PLATAFORMA */
.explore-section {
  background: #f3f3f3;
  padding: 30px 0 90px;
}

.explore-section h2 {
  font-size: 2.4rem;
  color: #124a84;
  margin-bottom: 28px;
  font-weight: 800;
}

.explore-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 1200px;
  color: #24364b;
  margin-bottom: 42px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.explore-card {
  background: transparent;
  border: 1px solid #d7d7d7;
  padding: 28px 26px;
  min-height: 290px;
  transition: 0.3s ease;
}

.explore-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
}

.explore-icon {
  font-size: 2.2rem;
  color: #124a84;
  margin-bottom: 18px;
}

.explore-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #124a84;
  margin-bottom: 16px;
  font-weight: 800;
}

.explore-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #24364b;
  margin-bottom: 22px;
}

.explore-card a {
  color: #2e98ea;
  text-decoration: none;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.explore-card a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  position: relative;
  background: #0f457c;
  color: #ffffff;
  overflow: hidden;
  padding: 52px 0 34px;
}

.footer::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -120px;
  width: 340px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 180px 180px;
}

.footer::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 0;
  width: 520px;
  height: 100%;
  background:
    repeating-radial-gradient(
      circle at top right,
      rgba(255,255,255,0.12) 0 4px,
      transparent 4px 22px
    );
  opacity: 0.35;
  pointer-events: none;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 100%, rgba(255,255,255,0.10), transparent 35%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
  font-weight: 500;
}

.footer-column a:hover {
  opacity: 0.85;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 36px 0 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  height: 58px;
  width: auto;
  display: block;
}

.footer-copy {
  font-size: 0.98rem;
  text-align: right;
}

/* HERO DE PÁGINA INTERNA */
.page-hero {
  background: #f3f3f3;
  padding: 60px 0 50px;
}

.page-hero h1 {
  font-size: 2.7rem;
  color: #124a84;
  margin-bottom: 12px;
  font-weight: 800;
}

.page-hero p {
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #24364b;
}

/* QUIÉNES SOMOS */
.identity-section {
  background: #f3f3f3;
  padding: 10px 0 70px;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.identity-box {
  background: #ffffff;
  border-left: 6px solid #113f8a;
  padding: 38px 36px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.identity-box h2 {
  font-size: 2rem;
  color: #113f8a;
  margin-bottom: 10px;
  font-weight: 800;
}

.identity-line {
  width: 90px;
  height: 4px;
  background: #113f8a;
  margin-bottom: 22px;
  border-radius: 5px;
}

.identity-box p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #24364b;
  margin-bottom: 18px;
}

.identity-box p:last-child {
  margin-bottom: 0;
}

.identity-image img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 430px;
}

/* MISIÓN - VISIÓN - OBJETIVOS */
.mv-section {
  background: #113f8a;
  padding: 75px 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mv-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 34px 26px;
  color: #ffffff;
  transition: 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.mv-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  color: #113f8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.mv-card h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  font-weight: 700;
}

.mv-card p {
  font-size: 1rem;
  line-height: 1.8;
}

/* IMAGEN FINAL */
.final-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 1300px) {
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .about-grid,
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    margin-left: 0;
    max-width: 100%;
  }

  .identity-image img {
    min-height: auto;
    max-height: 500px;
  }
}

@media (max-width: 992px) {
  .header-content {
    flex-direction: row;
    justify-content: center;
    height: auto;
    padding: 15px 0;
    gap: 10px;
  }

  .logo {
    margin-left: 0;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero {
    height: 85vh;
    min-height: 560px;
  }

  .hero-text h1 {
    font-size: 2.7rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

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

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }

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

@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .about-section {
    padding: 65px 0 25px;
  }

  .about-text h2,
  .explore-section h2,
  .page-hero h1 {
    font-size: 2rem;
  }

  .about-text p,
  .page-hero p {
    font-size: 1rem;
  }

  .explore-section {
    padding: 25px 0 70px;
  }

  .explore-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-logo img {
    height: 50px;
  }

  .identity-box {
    padding: 28px 22px;
  }

  .identity-box h2 {
    font-size: 1.7rem;
  }

  .mv-section {
    padding: 55px 0;
  }

  .mv-card h3 {
    font-size: 1.4rem;
  }

  .final-image img {
    height: 220px;
  }
}

/* TEAM */
/* =========================
   PERSONAL
========================= */
.team-section {
  background: #f3f3f3;
  padding: 10px 0 80px;
}

.team-section-alt {
  padding-top: 20px;
}

.team-section h2 {
  font-size: 2.4rem;
  color: #124a84;
  margin-bottom: 44px;
  font-weight: 800;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 28px;
  justify-items: center;
}

.team-card {
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  max-width: 260px;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  transition: 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.04);
}

.team-card p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #24364b;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 1150px;
  padding: 36px 48px 40px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

#modal-title {
  font-size: 2rem;
  color: #124a84;
  font-weight: 800;
  margin-bottom: 14px;
}

.modal-divider {
  height: 1px;
  background: #d7d7d7;
  margin-bottom: 30px;
}

.modal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

.modal-body img {
  width: 100%;
  max-width: 220px;
  border-radius: 4px;
  display: block;
}

.modal-text-box h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 14px;
  font-weight: 800;
}

.modal-text-box p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

/* RESPONSIVE PERSONAL */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-content {
    padding: 30px;
  }
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-body img {
    max-width: 260px;
  }
}

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

  .modal {
    padding: 16px;
  }

  .modal-content {
    padding: 22px 18px 24px;
  }

  #modal-title {
    font-size: 1.5rem;
    padding-right: 40px;
  }

  .close {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
    top: 12px;
    right: 12px;
  }
}

/* =========================
   EVENTOS
========================= */
.events-section {
  background: #f3f3f3;
  padding: 10px 0 70px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
}

.event-image-wrap {
  position: relative;
}

.event-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.event-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0077d9;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 6px;
}

.event-date-box {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 66px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 12px 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.event-date-box .month {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #124a84;
  margin-bottom: 4px;
}

.event-date-box .day {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #124a84;
}

.event-date-box .year {
  display: block;
  font-size: 0.9rem;
  color: #2e98ea;
  margin-top: 6px;
}

.event-content {
  padding: 22px 24px 20px;
}

.event-meta {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-content h3 {
  font-size: 1.15rem;
  line-height: 1.45;
  color: #0f3f79;
  margin-bottom: 14px;
  font-weight: 800;
}

.event-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 18px;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f3f79;
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
}

.event-btn:hover {
  opacity: 0.92;
}

/* =========================
   DETALLE DE EVENTO / NOTICIA
========================= */
.news-detail-section {
  background: #f3f3f3;
  padding: 70px 0 80px;
}

.news-detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 34px;
  align-items: start;
}

.news-main {
  background: #fff;
  padding: 36px 40px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.news-main h1 {
  font-size: 2rem;
  line-height: 1.35;
  color: #0f3f79;
  margin-bottom: 12px;
  font-weight: 800;
}

.news-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: #124a84;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.news-main-image {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 28px;
  border-radius: 8px;
}

.news-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: #4b5563;
  margin-bottom: 18px;
  text-align: justify;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.news-share span {
  font-weight: 600;
  color: #24364b;
  margin-right: 4px;
}

.news-share a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f3f79;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

/* SIDEBAR */
.news-sidebar {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 20px;
}

.news-sidebar h3 {
  background: #0f3f79;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 18px;
}

.sidebar-news-list {
  max-height: 520px;
  overflow-y: auto;
}

.sidebar-news-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
}

.sidebar-news-item img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}

.sidebar-news-item h4 {
  font-size: 0.88rem;
  line-height: 1.35;
  color: #0f3f79;
  margin-bottom: 6px;
  font-weight: 700;
}

.sidebar-news-item span {
  font-size: 0.78rem;
  color: #6b7280;
}

.sidebar-more-link {
  display: block;
  text-align: center;
  padding: 14px 16px;
  color: #0f3f79;
  font-weight: 700;
  text-decoration: none;
}

/* RESPONSIVE EVENTOS */
@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-detail-grid {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }
}

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

  .news-main {
    padding: 24px 20px;
  }

  .news-main h1 {
    font-size: 1.5rem;
  }
}

/* =========================
   PUBLICACIONES 
========================= */
.journal-section {
  background: #f3f3f3;
  padding: 10px 0 80px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.journal-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  text-align: center;
}

.journal-card:hover {
  transform: translateY(-6px);
}

.journal-image-wrap {
  position: relative;
  padding: 12px 12px 0;
}

.journal-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.journal-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #0077d9;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 6px;
}

.journal-date-box {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 12px 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.journal-date-box .month {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b6785;
  margin-bottom: 6px;
}

.journal-date-box .day {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #124a84;
}

.journal-date-box .year {
  display: block;
  font-size: 0.8rem;
  color: #2e98ea;
  margin-top: 8px;
}

.journal-content {
  padding: 18px 18px 22px;
}

.journal-content h3 {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #0f3f79;
  font-weight: 800;
  min-height: 62px;
  margin-bottom: 18px;
}

.journal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f3f79;
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
}

.journal-btn:hover {
  opacity: 0.92;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .journal-image {
    height: 380px;
  }
}
/* GERMPOLASMA */
.germoplasma-intro {
  padding: 40px 0;
  text-align: center;
  color: #555;
}

.germoplasma-section {
  padding: 60px 0;
  background: #f3f3f3;
}

.germoplasma-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.germ-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.germ-card:hover {
  transform: translateY(-6px);
}

.germ-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.germ-content {
  padding: 20px;
}

.germ-content h3 {
  color: #0f3f79;
  margin-bottom: 8px;
}

.germ-content p {
  font-size: 0.95rem;
  color: #555;
}

.germ-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #113f8a;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.germ-link:hover {
  background: #0e3b73;
  transform: translateX(3px);
}


.news-gallery {
  margin-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}


/* =========================
   MENU MOVIL
========================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--blue-main);
  cursor: pointer;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
  }

  .logo {
    margin-left: 0 !important;
    height: 42px;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: none;
    z-index: 999;
  }

  .navbar.active {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .navbar li {
    width: 100%;
  }

  .navbar a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
  }

  .navbar a.active::after {
    display: none;
  }
}


/* RESPONSIVE GERMPOLASMA */

/* Tablet */
@media (max-width: 992px) {
  .germoplasma-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Celular */
@media (max-width: 768px) {
  .germoplasma-grid {
    grid-template-columns: 1fr;
  }

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

.social-links a {
  text-decoration: none;
  margin-right: 10px;
  font-size: 22px;
  display: inline-block;
}

.social-links a i {
  vertical-align: middle;
}

.team-card p {
  margin-top: 10px;
  font-weight: 600;
  color: #163a63;
}

.team-card img {
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.team-card img:hover {
  transform: scale(1.05);
}

.social-links a {
  font-size: 26px;
  margin: 0 8px;
  text-decoration: none;
}

/* Colores */
.google {
  color: #4285F4;
}

.github {
  color: #181717;
}


.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
}
.journal-image {
  width: 100%;
  max-height: 300px;
  height: auto;
  display: block;
  border-radius: 18px;
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  justify-items: center;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.team-card p {
  margin-top: 10px;
  font-weight: 600;
  color: #163a63;
}

.social-links {
  margin-top: 8px;
}

.social-links a {
  font-size: 26px;
  margin: 0 8px;
  text-decoration: none;
}

.google {
  color: #4285F4;
}

.github {
  color: #181717;
}

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

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

/* ICONOS REDES */
.social-links a {
  font-size: 26px;
  margin: 0 8px;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: scale(1.15);
}

/* GOOGLE SCHOLAR (azul) */
.social-links a.google {
  color: #4285F4;
}

/* GITHUB (negro original) */
.social-links a.github {
  color: #181717;
}

body {
  font-family: Arial, sans-serif;
}

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

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


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

body {
    padding-top: 15px; 
    font-family: Arial, sans-serif;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #003366; 
    color: white;
    z-index: 2000;
    display: flex;
    align-items: center;
}

.topbar-content {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    font-size: 14px;
    font-weight: 400;
}

.topbar-right {
    display: flex;
    gap: 15px;
}

.topbar-right a {
    color: white;
    font-size: 16px;
    transition: opacity 0.3s;
}

.header {
    position: fixed;
    top: 45px; 
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.navbar ul li a:hover, .navbar ul li a.active {
    color: #003366;
}

@media (max-width: 768px) {
    .topbar {
        height: auto; 
        padding: 10px 0;
    }

    .topbar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .topbar-left {
        font-size: 12px;
        line-height: 1.3;
    }

    .header {
        
        top: 65px; 
        height: 70px;
    }

    body {
        padding-top: 140px; 
    }

    .navbar {
        display: none; 
    }
    
    .logo {
        height: 45px;
    }
}


/* --- CELULARES --- */
@media (max-width: 768px) {
    
    h1, h2, h3, h4, p, .explore-intro {
        text-align: center !important;
    }

    .hero-content {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .about-grid {
        display: flex;
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }

    .about-image img {
        display: block;
        margin: 0 auto;
        max-width: 90%; 
    }

    .btn-hero, .about-link, .explore-card a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 10px auto !important;
        float: none !important; 
    }

    .explore-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .explore-card {
        text-align: center;
        width: 100%;
        max-width: 300px; 
        margin-bottom: 20px;
    }

    .explore-icon {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

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

    .footer-column ul {
        padding: 0;
        list-style: none;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .footer-column h4::after {
        left: 50%; 
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (min-width: 769px) {
  body {
    padding-top: 90px;
  }
}

