/* ofertaFormativa.css - Estilos para la cuadrícula de formación */

.oferta-formativa-container {
    padding-bottom: 60px;
}

/* Grid Layout Improvements */
.oferta-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.oferta-col {
    padding: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .oferta-col {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .oferta-col {
        width: 33.3333%; /* 3 columnas para mejor distribución */
    }
}

/* Card Styling */
.oferta-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.oferta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 47, 119, 0.12); /* Sombra azulada sutil */
    border-color: rgba(14, 47, 119, 0.1);
}

/* Image Area */
.oferta-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio 5:3 */
    background-color: #ffffff; /* Fondo blanco para logos */
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.oferta-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Contain para no cortar textos en banners/logos */
    padding: 20px; /* Espacio para que el logo respire */
    transition: transform 0.5s ease;
}

.oferta-card:hover .oferta-img-wrapper img {
    transform: scale(1.05);
}

/* Badge Styling */
.oferta-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.badge-pill-custom {
    background-color: #ffffff;
    color: #0e2f77;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-pill-cancelado {
    background-color: #dc3545;
    color: #fff;
}

/* Card Content */
.oferta-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.oferta-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 15px;
    /* Truncar texto a 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oferta-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.oferta-title a:hover {
    color: #0e2f77; /* Azul corporativo */
}

/* Meta Data (Date & Link) */
.oferta-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oferta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

.oferta-date i {
    font-size: 1.1rem;
    color: #f1ad3e; /* Naranja corporativo */
}

.oferta-action {
    display: flex;
    align-items: center;
}

.btn-ver-mas {
    color: #0e2f77;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-ver-mas i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.btn-ver-mas:hover {
    color: #f1ad3e;
}

.btn-ver-mas:hover i {
    transform: translateX(4px);
}

/* Empty State */
.oferta-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    width: 100%;
}

/* Pagination Styling */
.oferta-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.oferta-pagination.top {
    margin-bottom: 30px;
}

.oferta-pagination.bottom {
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    background-color: #fff;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.page-btn:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #0e2f77;
    transform: translateY(-2px);
}

.page-btn.active {
    background-color: #0e2f77;
    border-color: #0e2f77;
    color: #fff;
    box-shadow: 0 4px 10px rgba(14, 47, 119, 0.2);
}
