html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url('/imagenes/Leonardo.png');
    background-size: cover;
    background-position: center;
    color: white;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
}

.contenedor {
    background-color: rgba(0, 0, 0, 0.6);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 40px;
}

.tarjetas {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta {
    background-color: white;
    color: black;
    border-radius: 15px;
    overflow: hidden;
    width: 280px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.tarjeta img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.tarjeta .info {
    padding: 20px;
}

.tarjeta h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.tarjeta p {
    margin: 0;
    color: #555;
}
@media (max-width: 600px) {
    .tarjetas {
        flex-direction: column;
        gap: 20px;
    }

    .tarjeta {
        width: 90%;
    }
}