body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color:  #1b225f;
  overflow-x: hidden;
}

p {
  line-height: 1.5;
}

/* header */
.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  padding: 15px 0;
  width: 100%;
}

.logo {
  width: 22vw;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color:  #1b225f;
  text-decoration: none;
  font-size: 1.2vw;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;            
  width: 0;                  
  height: 0.5px;               
  background-color: #606060; 
  transition: width 0.4s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  margin-bottom: 3%;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1b225f;
  border-radius: 2px;
}

/* main */

/* objetivo */

.divObjetivo {
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  background-color: #1b225f;
  padding: 10vh 5vw 0 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.pObjetivo{
    color: #ffffff;
    font-weight: 500;
    font-size: clamp(16px, 1.3vw, 22px);
    line-height: 1.6;
    max-width: 1000px;
    text-align: center;
    padding-top: 8vh;
    padding-bottom: 4vh;
    margin-top: 0;
}

.questions-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
  gap: 18px;
  margin-bottom: 2%;
}

.question-card {
  background-color: #ffffff;
  padding: clamp(8px, 1vw, 14px) clamp(12px, 1.5vw, 18px);
  min-height: clamp(60px, 6vw, 75px);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  color: #46ba43;
  cursor: pointer;
  flex: 0 1 45%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, color 0.3s ease;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.3;
}

.question-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 70%;
  height: 1px;
  background-color: #cbf3ca;
  transition: transform 0.3s ease;
}

.question-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  color: #cbf3ca;
}

.question-card:hover::after {
  transform: translateX(-50%) scaleX(1);
}


.divBarra{
  width: fit-content;
  height: 4vh;
  overflow: hidden;
}
.barra{
    width: 100vw;
    height: 4vh;
    overflow: hidden;
  }

/*VIDEOS */
.video-section {
  padding: 50px 20px 80px 20px; 
  background-color: #ffffff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 20px;
  justify-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.video-card,
.video-card-local {
  background-color: #1b225f;
  color: #46ba43;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: clamp(240px, 22vw, 330px);
  cursor: pointer;
  border: 2px solid transparent;
  height: fit-content;
}

.video-card:hover,
.video-card-local:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}

.video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 9/16;
  border-radius: 8px;
}

.video-thumb img,
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  color: #46ba43;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  width: clamp(45px, 4vw, 60px);
  height: clamp(45px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.play-btn:hover {
  background: rgba(0,0,0,0.6);
}

/* 🔹 Meta con tipografía adaptativa */
.video-meta {
  padding: 10px;
  text-align: center;
}

.video-meta strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.25;
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.25;
  min-height: 2.6em;
}

.read-link {
  font-size: clamp(14px, 1vw, 14px);
  color: #46ba43;
  text-decoration: none;
  border-bottom: 1px solid rgba(70, 186, 67, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.read-link:hover {
  color: #cbf3ca;
  border-color: #cbf3ca;
}


/* Animaciones */
.fade-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



footer {
  background-color: #1b225f;
  color: #f7f7f7;
  font-family: "Montserrat", sans-serif;
  padding: 0px 0 30px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra todo el footer */
  padding-bottom: 5px;
}

.footer-container {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 50vw 50vw;   /* dos columnas iguales */
  justify-content: center;            /* centra las columnas en la pantalla */
  align-items: start;
  padding: 0;
}

/* Columna izquierda (logo + descripción) */
.footer-container > div:first-child {
  width: 100%;
  max-width: 450px;        /* para controlar el ancho visual */
  margin-left: auto;
  margin-right: auto;
  text-align: left;        /* ← contenido alineado a la izquierda */
}

/* Columna derecha (enlaces) */
.footer-container > div:nth-child(2) {
  width: 100%;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: left;        /* ← enlaces alineados a la izquierda */
}

.footer-logo {
  width: 160px;
  margin-bottom: 15px;
}

/* TÍTULOS */
footer h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

/* LISTAS Y LINKS */
footer li,
footer a {
  font-size: 0.95rem;
  color: #e3e6f2;
  line-height: 1.6;
  text-decoration: none;
  transition: 0.2s ease;
  width: fit-content;
}
/* TEXTO */
footer p {
  font-size: 0.95rem;
  color: #e3e6f2;
  line-height: 1.6;
  text-decoration: none;
  transition: 0.2s ease;
}

footer a:hover {
  color: #5d7adb;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: fit-content;
}

footer li {
  margin-top: 10px;
}

/* LÍNEA INFERIOR */
.footer-bottom {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #cdd0e5;
}

.footer-bottom a {
  color: #cdd0e5;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #ffffff;
}


/* RESPONSIVE */
@media screen and (max-width: 768px) {
  body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
  }

  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    position: relative;
    margin-top: 3%;
    margin-bottom: 3%;
  }

  .nav-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
    z-index: 1;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1b225f;
    border-radius: 2px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links a {
    position: relative;
    color:  #1b225f;
    text-decoration: none;
    font-size: 5vw;
    transition: color 0.3s;
  }

  .nav-links.active {
    display: flex;
    margin-top: 3%;
  }

  .divObjetivo{
    padding-left: 5vw;      
    padding-right: 5vw;
  }

  .pObjetivo{
    font-size: 5vw;
  }
  
  .questions-container {
    gap: 15px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5vh;
  }

  .question-card {
    flex: 0 1 90%;
    font-size: 16px;
    min-height: 70px;
    width: 90%;
  }


/* 🔹 Rejilla en pantallas chicas */
.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    width: 80vw;
}

.video-card,
.video-card-local {
    max-width: 300px;
}

.video-meta strong {
    font-size: clamp(15px, 1.4vw, 20px);
    line-height: 2;
}

.read-link {
    font-size: clamp(13px, 1.5vw, 18px);
}


  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 6vw;
  }
  .footer-container > div {
    max-width: 100%;
    margin: 0 auto;
  }

}
