* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* ---------- COLORES ---------- */

  /* ----- corporativos ----- */

  --brand-color: #35558a;

  /* ----- politica ----- */

  --politica-color: #7077a1;

  /* ----- deporte ----- */

  --deporte-color: #eb0202;

  /* ----- sociedad ----- */

  --sociedad-color: #5b5c5b;

  /* ----- cultura ----- */

  --cultura-color: #346260;

  /* ----- COLORES DE SLIDE ----- */

  --swiper-navigation-color: var(--brand-color);
  --swiper-theme-color: var(--brand-color);

  /* ---------- FUENTES ---------- */

  --primary-font: "Montserrat", sans-serif;
}
html {
  scroll-behavior: smooth;
}
/* LOADER */
.preload img {
  position: absolute;
  object-fit: contain;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  z-index: 10;
  scale: 1.8;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  animation: fadeIn 2s /*infinite*/ forwards;
  animation-delay: 1s;
  width: 200px;
  height: 150px;
  scrollbar-width: 0;
}
@media (max-width: 800px) {
  .preload img {
    scale: 1.2;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
.cover {
  width: 100vw;
  height: 100vh;
  background-color: #eaeaea;
  position: fixed;
  z-index: 9;
  /* background-image: url(img/ppperspective.svg); */
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  /* background-size: unset; */
  animation: fadeIn 2s /*infinite*/ forwards;
  animation-delay: 1s;
}
/*  FIN LOADER */
/* ---------------------------------------- GENERALES ---------------------------------------- */
body {
  font-family: var(--primary-font);
  overflow-x: hidden;
}
.block-scroll {
  overflow: hidden;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
main,
aside {
  padding: 0.625rem;
}
main {
  width: 70%;
}
aside {
  width: 30%;
}
.aside {
  background: #fff;
}
@media (max-width: 800px) {
  .container {
    flex-direction: column;
  }
  main,
  aside {
    width: 100%;
  }
}
/* -------------------- HEADER -------------------- */
header {
  background: #fff;
}
.nav-bar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--brand-color);
  padding: 0.9rem 0 0 0;
}
/* ---------- logo ---------- */
.logo {
  text-align: center;
  margin-bottom: 1rem;
}
.logo__icon {
  height: 150px;
}
.logo__text {
  font-family: var(--primary-font);
  font-weight: bolder;
}
.nav-bar__container {
  display: flex;
  align-items: center;
  justify-content: start;
  padding-left: 1rem;
  /* gap: 1rem; */
}

/* ---------- tiempo y clima ---------- */
/* .clima-tiempo {
    color: #000;
    width: max-content;
    display: flex;
    font-size: 1rem;
} */
/* .date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 15px 5px;
    font-family: var(--primary-font);
} */
.date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 5px;
  font-family: var(--primary-font);
  width: 100%;
}
#reloj {
  width: 100%;
  text-align: center;
}
.clima-tiempo {
  width: max-content;
  display: flex;
  align-items: center;
}
/* .weather {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--brand-color);
} */
.weather {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--brand-color);
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0.625rem;
}
#ww_586176514070d,
.current-temp,
.ww_col1,
.ww_box {
  width: min-content !important;
}
.ww_source {
  display: none !important;
}
.current-temp span {
  font-size: 1rem;
  color: #000;
}
/* ---------- redes sociales ---------- */
.social-media {
  width: 3rem;
  display: grid;
  gap: 0.2rem;
  grid-template-columns: repeat(2, 2rem);
  justify-content: end;
  padding-right: 1rem;
}
.social-media__anchor {
  text-align: center;
  max-width: 100%;
  text-align: center;
  color: var(--brand-color);
}
header .fa-brands {
  font-size: 1.6rem;
}
.nav-bar__container,
.logo,
.social-media {
  width: 33%;
}
@media (max-width: 800px) {
  .nav-bar {
    justify-content: space-between;
    align-items: center;
  }
  .nav-bar__container {
    width: max-content;
  }
  .logo {
    width: max-content;
    justify-self: center;
  }
  .social-media {
    display: none;
  }
  .logo__icon {
    height: 90px;
    position: relative;
    vertical-align: center;
    top: 0.3rem;
  }
  header .fa-brands {
    font-size: 1.2rem;
  }
  #reloj {
    width: min-content;
  }
  .nav-bar__container {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
  }
  #icon {
    /* width: max-content; */
    display: none;
  }
  .weather {
    padding: 0.3rem 0;
    border: none;
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  .date {
    border-top: 1px solid;
    padding: 0;
    padding-top: 0.3rem;
  }
  .clima-tiempo,
  #temperatura {
    font-size: 0.8rem;
  }
}
@media (max-width: 500px) {
  .clima-tiempo,
  #temperatura {
    font-size: 0.5rem;
  }
}
.categories {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 0.3rem;
  padding: 0;
  border-top: 3px solid var(--brand-color);
}
.categories__title {
  color: #fff;
  font-size: 2rem;
  text-align: center;
  padding: 2rem 3rem;
  background: #508de7;
  width: 100%;
  margin-bottom: 0.625rem;
}
.category {
  padding: 1rem 1.3rem;
  width: max-content;
  text-align: center;
  color: #000;
  font-weight: bolder;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s all ease-in;
}
.category:hover {
  /* width: 90%; */
  color: #fff;
}
.category--index:hover {
  background-color: var(--brand-color);
}
.category--politica:hover {
  background: var(--politica-color);
}
.category--deporte:hover {
  background: var(--deporte-color);
}
.category--sociedad:hover {
  background: var(--sociedad-color);
}
.category--cultura:hover {
  background: var(--cultura-color);
}
@media (max-width: 800px) {
  .category {
    padding: 0.3rem 0.6rem;
  }
}
/* -------------------- FOOTER -------------------- */
.nav-bar--footer {
  background: var(--brand-color);
  color: #fff;
  padding: 2rem;
  flex-wrap: nowrap;
}
.logo--footer {
  padding: 0.625rem;
  left: 0;
}
.logo--footer .logo__icon {
  width: 100%;
  height: auto;
}
.subscribe {
  width: max-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}
.subscribe__content {
  width: 22rem;
}
.subscribe__title {
  font-size: 1.3rem;
  margin-bottom: 0.625rem;
}
.subscribe__text {
  font-weight: normal;
  font-size: 1.1rem;
}
.subscribe__form {
  width: 18rem;
}
.subscribe__input,
.subscribe__btn {
  padding: 0.3rem 0.625rem;
  font-family: var(--primary-font);
}
.subscribe__input {
  border: none;
}
.subscribe__input:focus {
  outline: none;
}
.social-media--horizontal {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.social-media--horizontal .fa-brands {
  color: #fff;
  font-size: 2rem;
}
@media (max-width: 800px) {
  .nav-bar--footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .logo--footer {
    width: max-content;
  }
  .subscribe {
    flex-direction: column;
    order: -1;
  }
  .subscribe__form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .subscribe__input,
  .subscribe__btn {
    display: block;
    margin: 0.625rem auto;
  }
  .subscribe__input {
    font-size: 1rem;
  }
  .subscribe__content {
    text-align: center;
  }
  .subscribe__title {
    font-size: 1.5rem;
    text-wrap: balance;
  }
  .nav-bar--footer .nav-bar__container {
    width: max-content;
  }
}
/* -------------------- MAIN -------------------- */
/* ---------- NOTICIA PRINCIPAL ---------- */
.img-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.main-new {
  height: 32rem;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  text-decoration: none;
}
.main-new__content {
  overflow: hidden;
  display: flex;
  padding: 0.3rem 0.625rem;
  flex-direction: column;
}
.main-new__title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}
.main-new__paragraph {
  overflow: hidden;
  height: 0;
  font-size: 1.2rem;
  transition: 0.3s all ease-out;
}
.main-new:hover .main-new__title {
  font-size: 1.6rem;
}
.main-new:hover .main-new__paragraph {
  height: max-content;
  margin-top: 0.625rem;
}
hr {
  visibility: hidden;
}
@media (max-width: 800px) {
  hr {
    visibility: visible;
  }
}
/* ----- NOTICIA PRINCIPAL DEPORTE ----- */
.main-new-deporte {
  background: var(--deporte-color);
  /* background-image: linear-gradient(
      0deg,
      #550000 0%,
      #e646469f 15%,
      #ffffff12 35%
    ),
    url(https://imagenes.elpais.com/resizer/v2/GCOUAYTXFVHINCCRHFRUMDQUFQ.jpg?auth=85d581494d85ad4a677b13d5848af903af72a420e378d4b233d526c5a7cb7514&width=1200); */
  background-image: url(https://imagenes.elpais.com/resizer/v2/GCOUAYTXFVHINCCRHFRUMDQUFQ.jpg?auth=85d581494d85ad4a677b13d5848af903af72a420e378d4b233d526c5a7cb7514&width=1200);
}
.main-new-deporte .main-new__content {
  background: #fff;
  color: var(--deporte-color);
}
.main-new-deporte:hover .main-new__content {
  background: var(--deporte-color);
  color: #fff;
}
/* ----- NOTICIA PRINCIPAL POLITICA ----- */
.main-new-politica {
  background: var(--politica-color);
  background-image: linear-gradient(
    0deg,
    #2d3250 0%,
    #4247699f 25%,
    #ffffff3a 50%
  );
}
.main-new-politica .main-new__content {
  background: #fff;
  color: var(--politica-color);
}
.main-new-politica:hover .main-new__content {
  background: var(--politica-color);
  color: #fff;
  border: 1px solid var(--politica-color);
}
/* ----- NOTICIA PRINCIPAL SOCIEDAD ----- */
.main-new-sociedad {
  background: var(--sociedad-color);
  background-image: linear-gradient(
    0deg,
    #2d3250 0%,
    #5b5c5b 25%,
    #ffffff3a 50%
  );
}
.main-new-sociedad .main-new__content {
  background: #fff;
  color: var(--sociedad-color);
}
.main-new-sociedad:hover .main-new__content {
  background: var(--sociedad-color);
  color: #fff;
  border: 1px solid var(--sociedad-color);
}
/* -------------------- NOTICIA PRINCIPAL CULTURA -------------------- */
.main-new-cultura {
  background: var(--cultura-color);
  background-image: linear-gradient(
    0deg,
    #2d3250 0%,
    #346260 25%,
    #ffffff3a 50%
  );
}
.main-new-cultura .main-new__content {
  background: #fff;
  color: var(--cultura-color);
}
.main-new-cultura:hover .main-new__content {
  background: var(--cultura-color);
  color: #fff;
  border: 1px solid var(--cultura-color);
}
/* ---------- slide de noticas ---------- */
.title {
  font-size: 2rem;
  margin: 1rem 0 0;
  padding-left: 0.3rem;
}
/* titulos por categorias */
.title--deporte {
  color: var(--deporte-color);
}
.title--politica {
  color: var(--politica-color);
}
.title--sociedad {
  color: var(--sociedad-color);
}
.title--cultura {
  color: var(--cultura-color);
}
.swiper {
  width: 100%;
  margin: 0 auto;
}
.swiper-slide {
  min-width: 18rem;
}
.swiper-button-next::after {
  color: #fff;
  font-weight: bolder;
}
.swiper-button-prev::after {
  color: #fff;
  font-weight: bolder;
}
.card {
  text-decoration: none;
  height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.3rem;
}
.card__thumbnail {
  height: 70%;
}
.card__img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.card__content {
  height: 30%;
  display: flex;
  align-items: center;
  padding: 0.3rem;
}
.card__title {
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  .card {
    height: 19rem;
  }
}
/* ---------- COLORES POR CATEGORIAS ---------- */

.card--politica {
  color: #fff;
  background: var(--politica-color);
}
.card--deporte {
  color: #fff;
  background: var(--deporte-color);
}
.card--sociedad {
  color: #fff;
  background: var(--sociedad-color);
}
.card--cultura {
  color: #fff;
  background: var(--cultura-color);
}
/* -------------------- ASIDE -------------------- */
/* ---------------- ANUNCIO ---------------- */
.anuncio {
  width: 80%;
  height: max-content;
  margin: 0 auto;
}
.anuncio__miniatura {
  padding: 0.625rem;
}
.anuncio__img {
  width: 100%;
  object-fit: cover;
}
@media (max-width: 800px) {
  .anuncio--vertical {
    display: none;
  }
}

/* ESTILOS PARA CAJAS CON FOTOS */
.img-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* -------------------- SLIDER INFINITO -------------------- */
.slider {
  width: 90vw;
  height: auto;
  margin: auto;
  overflow: hidden;
}

.slider .slide-track {
  display: flex;
  animation: scroll 40s linear infinite;
  -webkit-animation: scroll 40s linear infinite;
  width: calc(200px * 14);
}

.slider .slide {
  width: 200px;
}

.slider .slide img {
  width: 100%;
}

@keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(calc(-200px * 7));
    transform: translateX(calc(-200px * 7));
  }
}
/* -------------------- HAMBURGER MENU -------------------- */

#menu {
  z-index: 3;
  display: none;
}

#menu-bar {
  width: 45px;
  height: 40px;
  margin: 30px 1rem 20px 20px;
  cursor: pointer;
}

.bar {
  height: 5px;
  width: 100%;
  background-color: var(--brand-color);
  display: block;
  border-radius: 5px;
  transition: 0.3s ease;
}

#bar1 {
  transform: translateY(-4px);
}

#bar3 {
  transform: translateY(4px);
}

.nav {
  transition: 0.3s ease;
  display: none;
}

.nav ul {
  padding: 0 22px;
  gap: 30rem;
}

.nav li {
  list-style: none;
  padding: 12px 0;
  text-align: center;
}

.nav li a {
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
}

.nav li a:hover {
  font-weight: bold;
}

.menu-bg {
  top: 0;
  right: 0;
  position: absolute;
}

.menu-bg {
  z-index: 2;
  width: 0;
  height: 0;
  background: var(--brand-color);
  transition: 0.3s ease;
}

.change {
  display: block;
}
.center {
  display: flex;
  top: 1rem;
  scale: 0.8;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
}
.change .bar {
  background-color: white;
}

.change #bar1 {
  transform: translateY(4px) rotateZ(-45deg);
}

.change #bar2 {
  opacity: 0;
}

.change #bar3 {
  transform: translateY(-6px) rotateZ(45deg);
}

.change-bg {
  width: 200vh;
  height: 200vh;
  transform: translate(0, 0);
}
@media (max-width: 800px) {
  header .categories {
    display: none;
  }
  #menu {
    display: inline-block;
    top: 1rem;
    scale: 0.8;
  }
}
/* ------------------ OTROS ------------------ */
/* JUAN */
/* DEPORTES */
.noticiasecundaria h2 {
  font-size: 1rem;
}
@media (max-width: 800px) {
  .noticiaprincipalpolitica {
    height: 23rem;
  }
  .noticiaprincipalsociedad {
    height: 24rem;
  }
}
@media (max-width: 600px) {
  .noticiaprincipalpolitica {
    /* height: 18rem; */
    height: 19rem;
    background-size: contain;
    background-color: transparent;
    position: relative;
    top: -3rem;
  }
}
/* ESTEBAN */
@media (max-width: 800px) {
  .todosart .articarticulos1,
  .todosart .articarticulos2,
  .todosart .articarticulos3,
  .todosart .articarticulos4 {
    width: 90%;
  }
}
