/* ========================= */
/* CATEGORIAS */
/* ========================= */

.categorias {
  display: flex;
  flex-direction: column;
  width: 30%;
  padding: 1%;
  gap: 10px;
}

.categorias_nav {
  background-color: #dd1f83;
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  cursor: pointer;
  transition: .25s ease;
  word-break: break-word;
}

.categorias_nav:hover {
  opacity: .92;
  transform: scale(1.01);
}

/* ========================= */
/* BUSQUEDA */
/* ========================= */

.busqueda {
  display: flex;
  flex-direction: column;
  width: 18%;
  padding-left: 1%;
  padding-bottom: 1%;
}

/* ========================= */
/* TARJETAS GENERALES */
/* ========================= */

.tigres {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 1%;
}

/* ========================= */
/* CARD NEWS */
/* ========================= */

.card-news-link-wrap {
  text-decoration: none;
  display: block;
  height: 100%;
}

.card-news {
  width: 100%;
  min-height: 380px;
  height: 100%;

  border-radius: 18px;
  overflow: hidden;
  background: #fff;

  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);

  display: flex;
  flex-direction: column;

  transition: .25s ease;
  position: relative;
}

.card-news:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

/* ========================= */
/* IMAGEN */
/* ========================= */

.card-news .img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.card-news .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================= */
/* BODY */
/* ========================= */

.card-news-body {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 20px;
}

/* ========================= */
/* TITULO */
/* ========================= */

.nombre_titulo,
.card-news-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;

  color: #fff !important;

  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);

  transition: text-shadow 0.2s ease;

  line-height: 1.3;
  word-break: break-word;
  text-align: center;
}

/* ========================= */
/* IMG TIGRES */
/* ========================= */

.img_tigres {
  width: 100%;
  max-width: 250px;
  min-width: 180px;

  background: #fff;
  border-radius: 18px;

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);

  overflow: hidden;
  position: relative;

  transition: .25s ease;

  display: flex;
  flex-direction: column;

  height: 100%;
  cursor: pointer;
}

.img_tigres:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========================= */
/* FONDO TURISMO */
/* ========================= */

.fondo_turismo {
  background: url('../img/turismo/fondos/footerBG.jpg');
  background-size: cover;
  background-position: center;

  padding: 30px 0 0 0;

  overflow: hidden;
  color: #fff;

  margin-top: 0;

  border-bottom: 9px solid #a50b32;
}

/* ========================= */
/* MODAL */
/* ========================= */

.modal-img {
  display: none;

  position: fixed;

  z-index: 9999;

  padding-top: 50px;

  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.9);
}

.modal-img-content {
  display: block;

  margin: auto;

  max-width: 90%;
  max-height: 80%;

  border-radius: 10px;
}

.modal-img-close {
  position: absolute;

  top: 20px;
  right: 35px;

  color: #fff;

  font-size: 35px;

  cursor: pointer;

  z-index: 10000;
}

/* ========================= */
/* FLECHAS */
/* ========================= */

.prev,
.next {
  position: absolute;

  top: 50%;

  color: white;

  font-size: 40px;

  cursor: pointer;

  padding: 10px;

  user-select: none;

  transform: translateY(-50%);

  z-index: 10000;

  transition: .2s ease;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  color: #ccc;
}

/* ========================= */
/* LAPTOP */
/* ========================= */

@media (max-width: 1200px) {

  .categorias {
    width: 40%;
  }

  .busqueda {
    width: 25%;
  }

  .img_tigres {
    max-width: 220px;
  }

  .nombre_titulo,
  .card-news-title {
    font-size: 1.7rem;
  }
}

/* ========================= */
/* TABLET */
/* ========================= */

@media (max-width: 992px) {

  .categorias,
  .busqueda {
    width: 100%;
    padding: 0;
  }

  .tigres {
    justify-content: center;
    gap: 15px;
  }

  .img_tigres {
    max-width: 220px;
  }

  .card-news {
    min-height: 340px;
  }

  .card-news .img-container {
    height: 200px;
  }

  .nombre_titulo,
  .card-news-title {
    font-size: 1.6rem;
  }
}

/* ========================= */
/* CELULAR */
/* ========================= */

@media (max-width: 768px) {

  .categorias {
    gap: 12px;
  }

  .categorias_nav {
    padding: 12px;
    font-size: 14px;
  }

  .tigres {
    gap: 15px;
  }

  .img_tigres {
    max-width: calc(50% - 10px);
    min-width: unset;
  }

  .card-news {
    min-height: 320px;
  }

  .card-news .img-container {
    height: 180px;
  }

  .nombre_titulo,
  .card-news-title {
    font-size: 1.3rem;
    margin-top: 0;
  }

  .prev,
  .next {
    font-size: 30px;
    padding: 5px;
  }

  .modal-img-close {
    font-size: 28px;
    right: 20px;
  }

  .modal-img-content {
    max-width: 95%;
    max-height: 70%;
  }

  .fondo_turismo {
    padding-top: 20px;
  }
}

/* ========================= */
/* MOVILES PEQUEÑOS */
/* ========================= */

@media (max-width: 576px) {

  .tigres {
    flex-direction: column;
    align-items: center;
  }

  .img_tigres {
    width: 100%;
    max-width: 100%;
  }

  .card-news {
    min-height: 280px;
  }

  .card-news .img-container {
    height: 160px;
  }

  .categorias_nav {
    font-size: 13px;
    border-radius: 10px;
  }

  .nombre_titulo,
  .card-news-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .prev,
  .next {
    font-size: 24px;
  }

  .modal-img-close {
    top: 15px;
    right: 15px;
    font-size: 24px;
  }
}