@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@200;300;500&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,500;8..60,600&display=swap');

:root {
  --color-primare: rgb(54, 130, 176);
    --color-secudar: rgb(255, 255, 255);
    --color-burger:  rgb(255, 255, 255);
    --color-text:    rgb(68, 67, 67);
    --color-hover:  rgb(43, 89, 136);
  }
/* reset  */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.5s ease;
}

li {
  list-style: none;
  color: rgb(68, 67, 67);
}

h2,
h1,
h3 {
  color: #444343;
  font-display: swap;
}

p {
  color: #444343;
  font-display: swap;
}

a,
img,
span,
button,
fa-brands {
  display: block;
}

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

hr {
  color: #b9b9b9;
  background-color: #444343;
}

img {
  height: auto;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}


.fa-brands,
.fa-solid {
  cursor: pointer;
}


html {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.page {
  padding-top: 60px;
  margin: 0 auto;
  width: 1080px;
}

.title-conteiner {
  margin: 0 60px;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
  opacity: 0.8;
  background-image: linear-gradient(to right, #fff8e3, #fff8e3 2px, #ffffff 2px, #ffffff);
  background-size: 4px 100%;
}

.title-conteiner h5 {
  font-size: 23px;
  color: #6f2704;
}

@media (max-width: 930px) {
  .page {
    padding-top: 85px;
    margin: 0 auto;
    width: 600px;
  }
}

@media (max-width: 450px) {
  .page {
    padding-top: 85px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ------------Header-------------- */

/* .top_bar {
    margin: 0 auto;
    width: 70%;
    height: 190px;
    background-color: aqua;
} */

header {
  margin: 0 auto;
  width: 100%;
  height: 110px;
  background-color: var(--color-primare);
}

.counter-header {
  padding-top: 10px;
  margin: 0 auto;
  width: 70%;
  display: flex;
  justify-content: space-around;
}

.logo-header img {
  width: 350px;
  height: auto;
}

.icons-social ul {
  width: 227px;
  padding-top: 30px;
  display: flex;
  gap: 8px;
}

.icons-social ul li {
  color: var(--color-secudar);
}

.icons-social ul li a:hover {
  color: var(--color-hover);
  /* Color del texto al pasar el ratón */
}

.header-rigth {
  display: flex;
  justify-content: center;

}

/* Estilo para la línea inferior del menú */
.navbar {
  position: relative;
}

.navbar::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  /* Grosor de la línea */
  background-color: #000;
  /* Color de la línea */
  bottom: 0;
}


@media (max-width: 930px) {
  header {
    display: none;
  }

  .navscroll {
    display: none;
  }
}


/* Estilos para la barra de navegación horizontal */


.navbar {
  margin-top: 9px;
  background-color: var(--color-primare);
  /* Color de fondo */
  padding: 5px 0;
  /* Espaciado interior superior e inferior */
  font-family: Arial, sans-serif;
  /* Tipo de fuente */
}

/* Estilos para la lista desordenada dentro de la barra de navegación */
.navbar ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* Estilos para los elementos de la lista en la barra de navegación */
.navbar ul li {
  margin-right: 20px;
  /* Espaciado derecho entre elementos */
}

.dropdown .dropdown-toggle{
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  color: white;
  cursor: pointer;
}

/* Estilos para los enlaces dentro de la barra de navegación */
.navbar ul li a {
  text-decoration: none;
  /* Elimina la decoración de subrayado de los enlaces */
  color: var(--color-secudar);
  /* Color del texto */
  font-weight: bold;
  /* Texto en negrita */
  font-size: 16px;
  /* Tamaño de fuente */
}

/* Cambiar el color de los enlaces al pasar el ratón por encima */
.navbar ul li a:hover {
  color: var(--color-hover);
  /* Color del texto al pasar el ratón */
}


/* --------------dropdown--------------- */

/* Estilo para el menú desplegable */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-primare);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Estilo para los elementos del menú desplegable */
.dropdown-content li {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Cambia el color de fondo al pasar el mouse por encima del elemento del menú desplegable */
.dropdown-content li:hover {
  background-color: #ddd;
}



/* -------------------Mobil--------------  */

.navbarmobail {
  position: fixed;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  background-color: var(--color-primare);
  -webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.navbarmobail .logo {
  padding: 10px 10px;
}

.bars__menu {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 90%;
  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;
}

.bars__menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-burger);
  margin-top: 6px;
  transform-origin: 0px 100%;
  transition: all 300ms;
  border-radius: 9px 9px 9px 9px;
  -moz-border-radius: 9px 9px 9px 9px;
  -webkit-border-radius: 9px 9px 9px 9px;
  border: 0px solid #000000;
}


.activeline1__bars-menu {
  transform: rotate(45deg) translate(-2px, 1px);
}


.activeline2__bars-menu {
  opacity: 0;
  margin-left: -30px;
}

.activeline3__bars-menu {
  transform: rotate(-45deg) translate(-4px, 2px);
}

.navbar-list {
  display: none;
}

.navbar-list ul {
  width: 90%;
  padding-top: 35px;
  margin-left: 19px;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 6px;
}

.navbar-list li {
  color: var(--color-secudar);
}

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

.navbar-list.active {
  display: block;
  position: absolute;
  width: 50%;
  height: 100vh;
  top: 80px;
  right: 0;
  visibility: visible;
  transition-duration: 0.5s;
  background-color: var(--color-primare);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.navbar-list .icons-social ul {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* ------------------nav scrooll */

.navbarmobail {
  position: fixed;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  background-color: var(--color-primare);
  -webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.navbarmobail .logo {
  padding: 10px 10px;
}


.bars__menu {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 90%;
  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;
}

.bars__menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-burger);
  margin-top: 6px;
  transform-origin: 0px 100%;
  transition: all 300ms;
  border-radius: 9px 9px 9px 9px;
  -moz-border-radius: 9px 9px 9px 9px;
  -webkit-border-radius: 9px 9px 9px 9px;
  border: 0px solid #000000;
}


.activeline1__bars-menu {
  transform: rotate(45deg) translate(-2px, 1px);
}


.activeline2__bars-menu {
  opacity: 0;
  margin-left: -30px;
}

.activeline3__bars-menu {
  transform: rotate(-45deg) translate(-4px, 2px);
}

.navbar-list {
  display: none;
}

.navbar-list ul {
  width: 90%;
  padding-top: 35px;
  margin-left: 19px;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 6px;
}

.navbar-list li {
  color: var(--color-secudar);
}

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

.navbar-list.active {
  display: block;
  position: absolute;
  width: 50%;
  height: 100vh;
  top: 80px;
  right: 0;
  visibility: visible;
  transition-duration: 0.5s;
  background-color: var(--color-primare);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.navbar-list .icons-social ul {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* Estilo para ocultar el menú */

.navbarmobail.hidden {
  top: -100px;
  /* Ajusta esto para ocultar completamente el menú */

}

@media (min-width: 930px) {
  .navbarmobail {
    display: none;
  }

  .navbarmobail .logo img {
    width: 140px;
    height: auto;
  }
}

@media (max-width: 360px) {
  .navbarmobail .logo img {
    width: 220px;
    height: auto;
  }

  .bars__menu {
    transform: translate(-50%, -50%) scale(1);
  }
}


/* CSS para ocultar en pantallas pequeñas */
@media (max-width: 930px) {
  .navscroll {
    display: none;
  }
}

/* CSS para hacer pegajoso en la parte superior */
.navscroll {
  display: none;
  padding-top: 10px;
  margin: 29px auto;
  width: 1200px;
  height: 70px;
  background-color: white;
  position: sticky;
  top: 0;
  /* Ajusta la posición superior para que se pegue en la parte superior */
  z-index: 1000;
  /* Ajusta el valor Z-index según sea necesario */
}

.conteiner-navscroll {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: center;
  background-color: var(--color-primare);
}

.logo img {
  padding: 4px;
  width: 245px;
  height: auto;
}

.conteiner-navscroll .icons-social {
  margin-top: -15px;
}

.conteiner-navscroll .icons-social li {
  color: var(--color-primare);
}


.conteiner-navscroll .bars__menu-dos {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 60%;
  left: 90%;
  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;
}

.conteiner-navscroll .bars__menu-dos span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-burger);
  margin-top: 6px;
  transform-origin: 0px 100%;
  transition: all 300ms;
  border-radius: 9px 9px 9px 9px;
  -moz-border-radius: 9px 9px 9px 9px;
  -webkit-border-radius: 9px 9px 9px 9px;
  border: 0px solid #000000;
}


.activeline1__bars-menu-dos {
  transform: rotate(45deg) translate(-2px, 1px);
}


.activeline2__bars-menu-dos {
  opacity: 0;
  margin-left: -30px;
}

.activeline3__bars-menu-dos {
  transform: rotate(-45deg) translate(-4px, 2px);
}

.conteiner-navscroll .navbar-list {
  display: none;
}

.conteiner-navscroll .navbar-list ul {
  width: 90%;
  padding-top: 35px;
  margin-left: 19px;
  display: flex;
  align-items: start;

  gap: 6px;
}

.conteiner-navscroll .navbar-list li {
  color: var(--color-secudar);
}

.conteiner-navscroll .navbar-list li a:hover {
  color: var(--color-hover);
}

.conteiner-navscroll .navbar-list.active {
  display: block;
  position: absolute;
  width: 20%;
  height: 100vh;
  top: 70px;
  right: 0;
  visibility: visible;
  transition-duration: 0.5s;
  background-color: var(--color-primare);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

/* --------------api tiempo----------------- */

.apimeteo {
  padding-top: 25px;
  width: 227px;
}

.header-tiempo span {
  width: 100%;
  display: flex;
  gap: 12px;
}

.capital span {
  font-size: 16px;
  color: var(--color-secudar);
}

.body-meteo {
  width: 100%;
  height: auto;
  display: flex;
}

.temp {
  display: flex;
  gap: 9px;
}

.temp span {
  color: var(--color-secudar);
  font-size: 18px;
  gap: 5px;
}

.img-tiempo img {
  width: 29px;
  height: auto;
  margin-right: 15px;
}


/* card  */


.card-container-row-2 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  cursor: pointer;
}

.card {
  position: relative;
  background-color: #fff;
  margin: 16px;
  width: 300px;
}

.card img {
  width: 100%;
  height: 190px;
  /* Esto asegurará que la imagen se ajuste correctamente sin distorsionarse */
  object-fit: cover;
}

.card:hover h3,
p {
  color: rgb(150, 150, 150);
}

.card h3 {
  letter-spacing: -0.057em;
  font-size: 25px;
  line-height: 31px;
  font-weight: 900;
  padding-bottom: 12px;
}

@media (max-width: 930px) {
  .card-container-row-2 {
    width: 100%;

  }

  .card {
    margin: 16px;
    width: 268px;
  }

}

@media (max-width: 450px) {
  .card {
    margin: 16px;
    width: 90%;
  }
}

/* ---------card-container-portada----------- */

.card-container-portada {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 650px 340px;
  justify-content: center;
}


.cardportadad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
}

.stickypublid {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}


.punlic-uno {
  width: 300px;
  height: 600px;
  position: sticky;
  top: 50px;
}

@media (max-width: 930px) {
  .stickypublid {
    display: none;
  }

  .card-container-portada {

    grid-template-columns: 100%;
    justify-items: center
  }

  .title-conteiner {
    margin: 0;
  }

}

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

/* -----section news body--------  */

.page-news-container {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.news-body {
  padding: 5px 12px;
  width: 100%;
  height: auto;

}

.news-body h1 {
  font-size: 38px;
  line-height: 48px;
  letter-spacing: -0.009em;
  padding-bottom: 12px;
}

.news-body p {
  padding: 0 5px;
  color: #808080;
  font-size: 17px;
  padding-bottom: 12px;
}

.info-news {
  padding: 0 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.info-news span {
  font-size: 15px;
  color: #979797;
  padding-top: 10px;
}

.line-news-body {
  width: 100%;
  height: 1px;
  background-color: #e9e9e9;
}

.img-news-body {
  width: 100%;
  height: auto;
}

.img-news-body img {
  width: 696px;
  height: auto;
  padding: 10px;
}

.img-news-body span {
  font-size: 12px;
  color: #b8b8b8;
  margin-top: -10px;
  padding: 0 10px;
  letter-spacing: 0.029em;
}

.news-body p {
  padding-bottom: 10px;
  font-weight: 537;
}

.news-col {
  width: 100%;
  height: 180vh;
}

.text-news-body p {
  color: black;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;

}

.info-news-footer {
  width: 100%;
  padding: 5px;
  display: flex;
  justify-content: space-between;
}

.tags-news-footer {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: end;
}

.tags-news-footer span {
  font-size: 15px;
  color: #979797;
}

.info-news-footer span {
  font-size: 12px;
  color: #646464;
}

.punlic-twu {
  margin-top: 5px;
  width: 100%;
  height: 300px;
  
}

.stickypubliddos {
  position: sticky;
  top: 70px;
  /* La altura a la que el sticker se vuelve adhesivo al hacer scroll */
  padding: 20px;
}

@media (max-width: 930px) {
  .page-news-container {
    grid-template-columns: 1fr;
  }

  .img-news-body img {
    width: 100%;
    height: auto;
    padding: 10px;
  }

}

/* --------------section-categorias------------------- */

.section-categorias {
  width: 100%;
  height: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.col-section-categorias-a {
  width: 100%;
  height: auto;
}

.card-categorias {
  width: 100%;
  height: auto;
  padding: 12px;

}


.img-card-categoria img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.info-card-categorias {
  width: 100%;
  display: flex;
  justify-content: end;
}

.info-card-categorias span {
  font-size: 16px;
  color: var(--color-primare);
}

.body-card-categoria h2 {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.009em;
  padding-bottom: 22px;
}


@media (max-width: 930px) {
  .section-categorias {
    grid-template-columns: 1fr;
  }
}


/* -----------------panel-resocia----------------- */

.panel-resocial {
  display: flex;
  justify-items: center;
}

.shared-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.shared-panel a {
  font-size: 19px;
  color: #747474;
}

.shared-panel a:hover {
  color: var(--color-primare);
}

/* --------scroll-up-bar--------- */

.nav-footer {
  width: 100%;
}

.nav-footer-font {
  width: 100%;
  padding: 0 19px;
  display: flex;
  justify-content: space-between;
}

.nav-footer-font a {
  color: rgb(117, 117, 117);
}

.nav-footer-font a :hover {
  color: rgba(0, 110, 255, 0.233);
}

.scroll-up-bar {
  display: none;
  width: 100%;
  position: fixed;
  bottom: -70px;
  left: 0;
  color: #fff;
  text-align: center;
  padding: 10px;
  transition: bottom 0.3s;
  background: rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-top: 2px solid #1C6EA4;
}

@media (max-width: 930px) {
  .scroll-up-bar {
    display: block;

  }
}

/* footer  */

footer {
  position: absolute;
  width: 100%;
  height: auto;
  background-color: #0b0f1a;
  z-index: 5;
}

.footer-cont {
  padding: 50px 220px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap
}

.footer-cont .logo img {
  width: 280px;
  height: auto;
}

.footer-cont h5 {
  color: #444343;
  margin-bottom: 12px;
  font-size: 21px
}

.footer-cont li {
  font-size: 16px;
  color: #fff;
}

.socil-red-footer ul {
  display: flex;
  gap: 15px;
}

@media (min-width: 360px) and (max-width: 500px) {
  .footer-cont {
    width: 100%;
    display: flex;
    padding: 40px;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 20px;

  }
}

.video-text {
  position: absolute;
  top: 145px; /* Ajusta la posición vertical según sea necesario */
  left: 5px; /* Ajusta la posición horizontal según sea necesario */
  background-color: rgba(13, 132, 168, 0.849); /* Fondo semi-transparente para mejorar la legibilidad */
  color: #fff; /* Color del texto */
  padding: 3px 8px; /* Espaciado interno */
  border-radius: 3px; /* Bordes redondeados */
  z-index: 2; /* Asegura que el texto esté por encima de la imagen */
}


.video-container {
  max-width: 766px; /* Ancho máximo del contenedor */
  margin: 0 auto; /* Centra el contenedor horizontalmente */
}

/* Media query para pantallas pequeñas */
@media (max-width: 576px) {
  .video-container iframe {
      width: 100%; /* Cambia el ancho del iframe al 100% en pantallas pequeñas */
      height: 247px; /* Altura automática para mantener la proporción */
  }
}

/* Media query para pantallas medianas */
@media (min-width: 577px) and (max-width: 992px) {
  .video-container iframe {
      width: 600px; /* Ancho fijo del iframe en pantallas medianas */
      height: 345px; /* Altura fija del iframe en pantallas medianas */
  }
}

/* Media query para pantallas grandes */
@media (min-width: 993px) {
  .video-container iframe {
      width: 766px; /* Ancho fijo del iframe en pantallas grandes */
      height: 440px; /* Altura fija del iframe en pantallas grandes */
  }
}
