body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #e7e9dc;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.card {
    width: 90%;
    max-width: 320px;
    height: auto;
    background: url('assets/fondo.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.logos img {
    width: 80px;
    margin: 0 10px;
}

.photo {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.photo img {
    width: 100%;
    height: auto;
    max-width: 190px;
    max-height: 170px;
    border-radius: 5px;
    border: 2px solid white;
}

.info {
    color: white;
    text-align: center;
    margin-top: 10px;
}

.cargo {
    background-color: #A8C610;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
    word-wrap: break-word;
    text-align: center;
    min-height: 40px;
    max-width: 100%;
}
.cargo {
    background-color: #A8C610;
    color: white;
    padding: 10px 20px; 
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
    word-wrap: break-word;
    text-align: center;
    width: auto; 
    min-width: 100px; 
}
.nombre {
    font-size: 2.5vw;
    font-weight: bold;
    margin: 10px 0;
}

.dni {
    background: white;
    color: black;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 30px;
}

.error {
    color: red;
    font-size: 18px;
}

/* Media queries para pantallas pequeas */
@media (max-width: 768px) {
    .card {
        width: 95%;
        max-width: 300px;
        padding: 15px;
    }

    .cargo {
        font-size: 16px;
    }

    .nombre {
        font-size: 4vw;
    }

    .dni {
        font-size: 4vw;
    }

    .logos img {
        width: 70px;
    }

    .photo img {
        max-width: 160px;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 95%;
        max-width: 280px;
        padding: 10px;
    }

    .cargo {
        font-size: 14px;
    }

    .nombre {
        font-size: 5vw;
    }

    .dni {
        font-size: 5vw;
    }

    .logos img {
        width: 60px;
    }

    .photo img {
        max-width: 140px;
        max-height: 130px;
    }
}
