/* Fondo animado para el body */
body {
  background: linear-gradient(-45deg, #121714, #1B2221, #2A3A37, #567A71, #393E46, #202524, #1A2524, #101312);
  background-size: 400% 400%;
  background-repeat: no-repeat;
  animation: gradient 10s ease infinite;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  transition: all 0.3 ease-in;
  font-size: clamp(12px, 1.2vw, 15px);
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


#container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
#encabezado-cartas {
  padding-top: 4.5rem;
  width: 100%;
  color: #fff;
  background-color: #101312;
  border-bottom: 1px solid #ecf4d5;
  text-align: center; 
}

#encabezado-cartas h1 strong {
  font-size: 2rem;
}

#encabezado-cartas h5 {
  margin-top: 0.5rem;
  font-weight: normal;
}

#encabezado-cartas2 {
  padding-top: 4.5rem;
  width: 100%;
  color: #fff;
  background-color: #101312;
  border-bottom: 1px solid #ecf4d5;
  text-align: center; 
}

#encabezado-cartas2 h1 strong {
  font-size: 2rem;
}

#encabezado-cartas2 h5 {
  margin-top: 0.5rem;
  font-weight: normal;
}


.container-fluid:nth-child(2){
    padding: 0;
    min-height: 100vh;
}

#article-cardsSet{
    padding: 30px;
}

.resaltar {
  color: #567A71;
}

/* Flip Button */
.flip-btn {
    position: absolute;
    height: 3.5rem;
    width: 3.5rem;
    top: 25%;
    left: 70%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.flip-btn:hover {
  background-color: rgba(0, 0, 0, 1);
}

.flip-btn svg {
  width: 20px;
  height: 20px;
  color: #ecf4d5;
}
.img-fluid{
    transition: all 0.3 ease-in;
}
.card-container{
    margin-top: 5px;
    padding: 5px;
}
.card-image{
    border-radius: 15px;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.65);
}
/* Card Container */

.cardLink {
  background-color: #101312;
  border-radius: 1rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.cardLink:hover {
  transform: scale(1.01);
}

.flip-btn:hover{
    transform: scale(1.1);
}

.card-image {
  width: 100%;
  border-radius: 1rem;
  transition: opacity 0.25s ease;
}

@media (max-width: 991px) {

  .flip-btn {
    height: 40px;
    width: 40px;
    left: 65%;
  }

  .flip-btn svg {
    width: 16px;
    height: 16px;
  }

  .card-image {
    width: 100%;
    border-radius: 0.8rem;
    transition: opacity 0.25s ease;
  }
  .flip-btn:hover{
    transform: scale(1);
  }
}

/* Estilo base para todos los botones de paginación */
.pagination .page-item .page-link {
    color: #ecf4d5;
    background-color: #1b2221;
    border: 1px solid #567A71;
    margin: 0 4px;
    border-radius: 10px;
    padding: 6px 12px;
    transition: 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

/* Efecto hover solo si no está deshabilitado */
.pagination .page-item:not(.disabled) .page-link:hover {
    background-color: #2A3A37;
    color: #ffffff;
    border-color: #ecf4d5;
}

/* Estilo cuando está deshabilitado */
.pagination .page-item.disabled .page-link {
    background-color: #1b2221;
    color: #888 !important;
    border: 1px solid #3a4a48;
    pointer-events: none; /* Impide clicks */
    cursor: not-allowed;
    opacity: 0.5;
    transition: none;
}


.card-container {
  position: relative;
  perspective: 1000px;
  aspect-ratio: 2.5 / 3.4;
  height: auto;
  max-width: 280px; /* <-- nuevo valor agregado */
}




.card-inner {
  position: relative;
  width: 100%;
  height: 100%; /* ← Asegura que las caras se alineen */
  transform-style: preserve-3d;
  transition: transform 0.8s;
}


.card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%; /* ← Importante para que las caras cubran la carta */
  backface-visibility: hidden;
  border-radius: 1rem;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
}

.not-found{
  height: 100vh;
  color: #ecf4d5;
} 
.not-found svg, .not-found p{
  color: #a2a793;
}

.btnBack{
  color: #ecf4d5;
  border: 1px solid #ecf4d5;
  transition: all 0.3s ease-in;
}
.btnBack:hover{
  background-color: #3a4a48;
}
#card-h1{
  color: #ecf4d5;
  margin-top: 0.4rem;
}
#card-h1-2{
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  margin: 0;
  margin-left: 10px;
  color: #ecf4d5;
}
#encabezado-cartas2 > article{
  margin-bottom: 0.6rem;

}

.subText{
  color: #ecf4d5bd;
}

.upText{
  font-size: 1.3rem;
}
.card-face{
  background-color: #101312;
  height: 102%;
}
.card-link img{
  transition: filter 0.3s ease-in-out;
}

.card-link:hover img{
  filter: opacity(0.3);
}