* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #fff7f0;
  font-family: "Work Sans", sans-serif;
  overflow-x: hidden;
}

menu-navegador {
  display: block;
  position: relative;
  z-index: 100;
}

pie-pagina {
  display: block;
}

.contenido {
  padding-top: 5%;
  width: 80%;
  margin: auto;
}

.navegador {
  display: flex;
  width: 90%;
  margin: auto;
  border-bottom-style: solid;
  border-color: #2f3f50;
  border-width: 1px;
  padding: 0%;
}

.nav-logos {
  width: 30%;
}

.nav-menu {
  width: 70%;
}

.menu {
  display: block;
  margin-left: auto;
  justify-content: flex-end;
  padding-top: 4%;
}

.logos {
  width: 80%;
}

.menu-horizontal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menu-enlace {
  display: block;
  padding-left: 14px;
  padding-right: 14px;
  text-decoration: none;
  border-right: 1px solid #1976ff;
}

.menu-enlace:last-child {
  border-right: none;
}

.menu-enlace>a {
  display: block;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-family: sans-serif;
  font-weight: 600;
  color: #1976ff;
}

.logos>img {
  width: 100%;
}

.menu-responsive {
  float: right;
  display: none;
  font-size: 1.6em;
  color: #1976ff;
  cursor: pointer;
  line-height: 0;
  background: none;
  border: none;
  padding: 0;
}

.baner {
  background-color: #1976ff;
  width: 100%;
  padding: 40px 6%;
}

.baner div {
  margin-left: 22%;
  margin-top: 5%;
  margin-bottom: -1%;
}

.p-titulo {
  font-weight: 600;
  color: white;
  font-size: 42px;
}

.p-texto {
  color: white;
  font-weight: 200;
  font-size: 30px;
  font-family: "work sans";
}

.doe div {
  width: 60%;
  margin: auto;
  padding-left: 5%;
  color: #2f3f50;
  margin-bottom: 5%;
}

.doe h2 {
  padding-top: 5%;
  padding-right: 5%;
}

.doe p {
  padding-top: 2%;
  padding-right: 5%;
  line-height: 1.5;
  font-family: "Rubik";
}

/* .presentacion {
  width: 80%;
  margin: auto;
} 

.presentacion-contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11.8%;
  width: 100%;
  margin: auto;
}

.muestra-imagen {
  width: 28.3%;
  margin-top: 5%;
  margin-bottom: 5%;
}

.muestra-imagen > img {
  width: 100%;
  display: block;
}

.muestra-texto {
  width: 59.9%;
  font-family: "Work Sans", sans-serif;
  color: #2f3f50;
}

.muestra-texto h2 {
  font-size: 1.5rem;
  color: #2f3f50;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.muestra-texto h2 > span {
  font-weight: 700;
}

.muestra-texto p {
  font-size: 1.5rem;
  line-height: 1.65;
  color: #2f3f50;
  font-weight: 400;
} */

.presentacion {
  display: flex;
  width: 80%;
  margin: auto;
}

.muestra-imagen {
  width: 100%;
  margin-top: 5%;
  margin-bottom: 5%;
}

.muestra-imagen>img {
  width: 100%;
}

.presentacion-responsive {
  display: none;
  width: 90%;
  margin: auto;
}

.presentacion-responsive div {
  margin: auto;
}

.pr-1 {
  width: 50%;
}

.presentacion-responsive img {
  margin: auto;
  width: 100%;

}


.video {
  width: 80%;
  margin: auto;
  margin-bottom: 5%;
}

.videos {
  width: 100%;
  margin: auto;
  aspect-ratio: 16 / 9;
}

.video>iframe {
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
}

.buscador {
  width: 90%;
  margin: auto;
}

.cartelera {
  margin-bottom: -3%;
}

.div-img {
  width: 50%;
  margin: auto;
}

.div-img>img {
  width: 100%;
}

.cronograma {
  width: 90%;
  margin: auto;
  margin-top: 6%;
  margin-bottom: 12%;
}

.cronograma>div {
  width: 80%;
  margin-left: 6%;
}

.cronograma>div>a {
  display: block;
  transition: transform 0.2s ease-in-out;
}

.cronograma>div>a:hover {
  transform: scale(1.015);
}

.cronograma>div>a>img {
  width: 100%;
  display: block;
}

.pie {
  background-color: #1976ff;
  width: 100%;
  padding: 40px 6%;
}

.pie-contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: auto;
}

.part-1 img {
  height: 70px;
  display: block;
}

.pie-derecha {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.part-2 {
  display: flex;
  gap: 14px;
}

.part-2 img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #fff;
  padding: 2px;
  display: block;
  object-fit: contain;
  transition: transform 0.15s;
}

.part-2 img:hover {
  transform: translateY(-3px);
}

.pie-texto p {
  color: #fff;
  font-size: 0.85rem;
  text-align: right;
  line-height: 1.6;
}

#visitas-container {
  margin-top: 8px;
  opacity: 0.85;
}

.buscar {
  width: 88%;
  margin: 40px auto 0;
  box-sizing: border-box;
}

.buscar * {
  box-sizing: border-box;
}

.buscar .card {
  background-color: #fff7f0;
  border: 2px solid #2e7bf4;
  border-radius: 18px;
  padding: 28px 32px 36px;
  width: 100%;
}

.buscar .campo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.buscar .campo label {
  font-weight: 600;
  font-size: 1.2rem;
  color: #1976ff;
  min-width: 210px;
  flex-shrink: 0;
}

.buscar .campo select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: #d9d9d9;
  border: none;
  border-radius: 30px;
  padding: 8px 42px 8px 18px;
  font-size: 0.9rem;
  color: #777;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  outline: none;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.buscar .campo select:focus {
  background-color: #ccc;
  box-shadow: 0 0 0 2px #2e7bf4;
}

.buscar .buscar-botones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.buscar .btn-limpiar,
.buscar .btn-buscar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #1976ff;
  font-weight: 600;
  font-size: 1.4rem;
  gap: 8px;
  padding: 0;
  transition:
    color 0.2s,
    transform 0.1s;
  margin: 0;
}

.buscar .btn-limpiar:hover,
.buscar .btn-buscar:hover {
  color: #0d54c9;
}

.buscar .btn-limpiar:active,
.buscar .btn-buscar:active {
  transform: scale(0.97);
}

.buscar .btn-limpiar svg,
.buscar .btn-buscar svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}


.buscar .resultados {
  margin-top: 32px;
}

.buscar .resultados-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.buscar .resultados-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.buscar .propuesta-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-left: 5px solid #2e7bf4;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.buscar .propuesta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.11);
}

.buscar .propuesta-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.buscar .propuesta-card .institucion {
  font-size: 0.85rem;
  color: #2e7bf4;
  font-weight: 600;
  margin-bottom: 10px;
}

.buscar .propuesta-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.buscar .tag {
  background-color: #e8e3da;
  border-radius: 20px;
  border: none;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: #555;
  font-weight: 500;
}

.buscar .tag:hover {
  cursor: pointer;
  color: #2e7bf4;
  border: 1px solid #2e7bf4;
}

.buscar .btn-conocer-mas {
  display: inline-block;
  margin-top: 14px;
  background-color: #2e7bf4;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 20px;
  padding: 7px 18px;
  transition: background-color 0.2s;
}

.buscar .btn-conocer-mas:hover {
  background-color: #1a63d6;
}

.buscar .sin-resultados {
  text-align: center;
  color: #999;
  font-size: 0.95rem;
  padding: 28px 0 8px;
}

.buscar .sin-resultados span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-pagina {
  background-color: #fff;
  border: 1.5px solid #2e7bf4;
  color: #2e7bf4;
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(46, 123, 244, 0.08);
}

.btn-pagina:hover {
  background-color: #2e7bf4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 123, 244, 0.2);
}

.btn-pagina.activo {
  background-color: #1a63d6;
  border-color: #1a63d6;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 99, 214, 0.3);
  pointer-events: none;
}

.btn-pagina:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #f5f5f5;
  box-shadow: none;
}

.btn-pagina:active {
  transform: scale(0.95);
}

@media (max-width: 1200px) {
  .menu-enlace>a {
    font-size: 16px;
  }

  .baner div {
    margin-left: 10%;
    margin-top: 5%;
    margin-bottom: -2%;
  }

  .p-titulo {
    font-weight: 600;
    color: white;
    font-size: 38px;
  }

  .p-texto {
    color: white;
    font-weight: 200;
    font-size: 24px;
  }

  .doe {
    width: 100%;
  }

  .doe div {
    margin-top: 2%;
    margin-left: auto;
    width: 80%;
    padding-left: 5%;
  }
}

@media (max-width: 1000px) {
  .menu-enlace>a {
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  .nav-logos {
    width: 50%;
  }

  .menu {
    padding-top: 0%;
    margin-top: 4%;
  }

  .menu-responsive {
    display: flex;
    padding: 0;
    margin: 0;
  }

  /* Animación del ícono X */
  .linea {
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
    transform-origin: center;
  }

  .menu-responsive.activo .linea-top {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-responsive.activo .linea-mid {
    opacity: 0;
  }

  .menu-responsive.activo .linea-bottom {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: relative;
  }

  .menu-horizontal {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background-color: #fff7f0;
    border: 1px solid #2e7bf4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(25, 118, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;

    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease;
    z-index: 20;
  }

  .menu-horizontal.activo {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-enlace {
    display: block;
    border-right: none;
    border-bottom: 1px solid #e8e3da;
  }

  .menu-enlace:last-child {
    border-bottom: none;
  }

  .menu-enlace>a {
    padding: 14px 18px;
    font-size: 15px;
    color: #1976ff;
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }

  .menu-enlace>a:hover,
  .menu-enlace>a:active {
    background-color: #eaf1ff;
    color: #1a63d6;
  }

  .baner div {
    margin-left: 5%;
    margin-top: 5%;
    margin-bottom: -3%;
  }

  .p-titulo {
    font-weight: 600;
    color: white;
    font-size: 24px;
  }

  .p-texto {
    color: white;
    font-weight: 200;
    font-size: 18px;
  }

  .doe div {
    width: 90%;
    padding-left: 5%;
  }

  .doe h2 {
    font-size: 22px;
  }

  .presentacion {
    width: 90%;
    padding: 1%;
    display: none;
  }

  .presentacion-responsive {
    display: block;
  }

  .pr-1 {
    padding-top: 5%;
    padding-bottom: 5%;
  }

  .pr-2 {
    margin-top: -10%;
    padding-bottom: 5%;
  }

  /* .presentacion-contenedor {
    flex-direction: column;
    text-align: left;
    width: 100%;
    gap: 1.5rem;
  }

  .muestra-imagen {
    width: 50%;
    margin-top: 5%;
    margin-bottom: 2%;
  }

  .muestra-texto {
    width: 100%;
  }

  .muestra-texto h2 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .muestra-texto p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .presentacion {
    width: 90%;
    padding: 1%;
  }  */

  .contenido {
    width: 90%;
  }

  .video {
    width: 90%;
    margin-bottom: 5%;
  }

  .cartelera {
    margin-top: 10%;
    margin-bottom: -6%;
  }

  .div-img {
    width: 70%;
  }

  .cronograma {
    margin-top: 8%;
  }

  .cronograma>div {
    width: 88%;
    margin: auto;
  }

  .pie-contenedor {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .pie-derecha {
    display: contents;
  }

  .part-1 {
    order: 1;
  }

  .part-2 {
    order: 2;
    justify-content: center;
  }

  .pie-texto {
    order: 3;
    width: 100%;
  }

  .pie-texto p {
    text-align: center;
    font-size: 0.7rem;
  }

  .part-1 img {
    height: 28px;
  }

  .part-2 img {
    width: 30px;
    height: 30px;
    padding: 4px;
  }

  .buscar {
    width: 90%;
  }

  .buscar .campo {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .buscar .campo label {
    min-width: unset;
    font-size: 1rem;
  }

  .buscar .campo select {
    width: 100%;
  }

  .buscar .card {
    padding: 20px 18px 24px;
  }

  .buscar .btn-buscar,
  .buscar .btn-limpiar {
    font-size: 1.15rem;
  }

  .buscar .btn-buscar svg,
  .buscar .btn-limpiar svg {
    width: 18px;
    height: 18px;
  }

  .paginacion {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .btn-pagina {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .menu {
    margin-top: 2%;
  }

  .baner div {
    margin-bottom: -5%;
  }
}

@media (max-width: 500px) {
  .menu {
    margin-top: 1%;
  }

  .p-titulo {
    font-weight: 600;
    color: white;
    font-size: 24px;
  }

  .p-texto {
    color: white;
    font-weight: 200;
    font-size: 16px;
  }

  .doe h2 {
    font-size: 20px;
  }
}

/* Clase de utilidad para elementos accesibles solo para lectores de pantalla */
.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;
}

/* Hacer el logo de reCAPTCHA semi-transparente */
.grecaptcha-badge {
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

/* Mostrarlo completo solo al pasar el cursor */
.grecaptcha-badge:hover {
  opacity: 1;
}