/* ---- Contenedor de tarjetas ---- */
.prensa-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* ---- Tarjeta de noticia ---- */
.prensa-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que las tarjetas tengan la misma altura */
}

.prensa-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ---- Imagen de noticia ---- */
.prensa-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ---- Contenido de la tarjeta ---- */
.prensa-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el contenido crezca ocupando el espacio disponible */
}

.prensa-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.prensa-title:hover {
    color: #ff4d4d;
}

.prensa-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* ---- Botón de acción ---- */
.prensa-button {
    display: block;
    margin-top: auto; /* Coloca el botón en la parte inferior */
    text-align: center;
    background-color: #ff4d4d;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.prensa-button:hover {
    background-color: #e60000;
}

@media screen and (max-width: 480px) {
    .prensa-container {
        grid-template-columns: 1fr;
    }
    
    .prensa-item {
        padding: 10px;
    }

    .prensa-title {
        font-size: 18px;
    }

    .prensa-description {
        font-size: 14px;
    }

    .prensa-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.embed-responsive {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 ratio */
}

.embed-responsive iframe, 
.embed-responsive object, 
.embed-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 480px) and (max-width: 768px) {
    .prensa-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .prensa-title {
        font-size: 20px;
    }

    .prensa-description {
        font-size: 16px;
    }
}

@media screen and (min-width: 1024px) {
    .prensa-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .prensa-item {
        padding: 20px;
    }

    .prensa-title {
        font-size: 22px;
    }

    .prensa-button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

