.anuncios-header {
    text-align: center;
    margin-bottom: 15px;
}

.anuncios-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #9f2241; 
    font-weight: 700;
}
#contenedor3 { background-color: #faf7f1; }
.anuncios-convocatorias {
    padding: 20px;
    background-color: #fff0f0;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
}

/* Carrusel principal */
.anuncios-carrusel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Contenedor de anuncios */
.anuncios-wrapper {
    display: flex;
    transition: transform 0.8s ease;
}

/* Estilo general de cada anuncio */
.anuncio-item {
    min-width: 25%; /* Computadoras - Mostrar 4 elementos a la vez */
    box-sizing: border-box;
    padding: 10px;
}

.anuncio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.anuncio-item img:hover {
    transform: scale(1.05);
}

/* Botones del carrusel */
.carrusel-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carrusel-btn:hover {
    background-color: #0056b3;
}

/* 📱 Diseño responsivo para teléfonos */
@media (max-width: 768px) {
    .anuncios-wrapper {
        display: flex;
        flex-direction: column; /* Poner en columna */
        transition: transform 0.8s ease;
    }

    .anuncio-item {
        min-width: 100%;
        max-width: 100%;
    }
}
