*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0; /* Color de fondo suave */
    font-family: 'Arial', sans-serif;
}

.credencial{
    width: 250px;
    height: 500px;
    border-radius: 12px;
    border: 2px solid #3b3b3b;
    background: linear-gradient(145deg, #37a74f, #e0e0e0); /* Degradado sutil */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra más suave */
    transition: transform 0.3s ease;
}

.credencial:hover{
    transform: scale(1.05); /* Efecto de hover */
}

.foto{
    width: 140px;
    height: 170px;
    border-radius: 8px;
    border: 2px solid #3b3b3b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.foto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nombre, .sexo, .oficio, .fecha{
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    font-family: 'Arial', sans-serif;
    margin: 5px 0;
}

.nombre{
    font-size: 18px;
    color: #2c3e50;
}

.sexo, .oficio, .fecha{
    color: #7f8c8d;
}

/* Añadir un pequeño efecto hover en los textos */
.nombre:hover, .sexo:hover, .oficio:hover, .fecha:hover {
    color: #2980b9;
    cursor: pointer;
}
