/**----  ARTÍCULOS DESTACADOS  ----**/
.ft-post {
    display: flex;
    width: 85%;
    margin: 20px auto;
    gap: 12px;
    max-width: 1400px;
    cursor: pointer;
}

.ft-left {
    flex: 0 0 60%;
    position: relative;
    height: 450px;
}

.ft-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 450px;
}

.ft-top,
.ft-bottom {
    flex: 1;
    position: relative;
    height: calc(50% - 6px);
}

.ft-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.ft-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.65, 0.35, 1);
}

.ft-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--main-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}
.ft-tag:hover {
    background: var(--secondary-color) !important;
}

.ft-img-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.ft-img-container:hover .ft-img {
    transform: scale(1.04);
}

.ft-img-container:hover .ft-tag {
    transform: translateY(-3px);
    background: var(--main-color);
    transition: all 0.3s ease;
}

.ft-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
    color: white;
    z-index: 1;
}

.ft-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ft-date {
    margin: 3px 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ft-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.ft-img-container:hover::after {
    opacity: 1;
}

.ft-img-container:hover .ft-title {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.ft-img-container:hover .ft-date {
    transform: translateY(-1px);
    transition: transform 0.3s ease 0.1s;
}

/**----  LISTA DE ARTÍCULOS  ----**/
.items {
    display: grid;
    gap: 30px;
}

.item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.item-content {
    display: flex;
    padding: 20px;
    gap: 25px;
}

.item-text {
    flex: 1;
}

.item-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.item:hover .item-img {
    transform: scale(1.03);
}

.item-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--post-title-color) !important;
    margin-bottom: 8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.item-title:hover {
    color: var(--main-color) !important;
}

.item-data {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #666;
}

.user {
    color: var(--main-color);
    font-weight: 500;
}

.time {
    color: var(--meta-color);
    position: relative;
    padding-left: 15px;
}

.time::before {
    content: '•';
    position: absolute;
    left: 5px;
}

.item-summary {
    color: var(--clr-general);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
}
.pagination {
  text-align: center;
  margin: 2rem 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  /* Para que los elementos no se agrupen demasiado */
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 36px;
  color: #007bff;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.pagination a:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.pagination .current {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  cursor: default;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

.pagination .disabled {
  color: #999;
  border: 1.5px solid #ddd;
  cursor: default;
  background-color: #f9f9f9;
  pointer-events: none;
}

@media (max-width: 400px) {
  .pagination ul {
    gap: 0.3rem;
  }
  .pagination a,
  .pagination span {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    min-width: 30px;
  }
}
@media (max-width: 992px) {
    
    .ft-left,
    .ft-right {
        height: 320px;
    }

    .ft-caption {
        padding: 12px;
    }

    .ft-title {
        font-weight: 900;
        font-size: 1.2rem;
    }

    .ft-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .item-content {
        flex-direction: column;
        gap: 15px;
    }

    .item-img {
        width: 100%;
        height: 390px;
        margin: 0 auto;
    }

    .item-data {
        flex-direction: row;
        gap: 5px;
    }

    .time::before {
        display: none;
    }

    .ft-post {
        flex-direction: column;
        height: auto;
        width: 85%;
    }

    .ft-left,
    .ft-right {
        flex: 1 1 100%;
        height: 280px;
    }

    .ft-right {
        flex-direction: row;
        height: auto;
    }

    .ft-top,
    .ft-bottom {
        height: 250px;
    }

    .ft-title {
        font-size: 1.2rem;
        text-transform: uppercase;
    }

    .ft-date {
        font-size: 0.8rem;
    }

    .ft-tag {
        top: 8px;
        left: 8px;
    }
}
