/* Fondo general */
body {
    background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* FORMULARIO */
.formulario {
    background: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1s ease-in-out;
}

.formulario h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #2c2c2c;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
}

.etiquetas {
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    display: block;
}

.formulario input,
.formulario select {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.formulario input:focus,
.formulario select:focus {
    border-color: #000;
    background: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.formulario input[type="submit"] {
    background: linear-gradient(135deg, #000, #434343);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 14px;
    margin-top: 25px;
    transition: all 0.4s ease;
    cursor: pointer;
    letter-spacing: 1px;
}

.formulario input[type="submit"]:hover {
    background: linear-gradient(135deg, #434343, #000);
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.6);
}

/* LISTA DE PERSONAS */
h3 {
    margin-top: 40px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
}

/* Contenedor de tarjetas */
.lista-personas {
    margin-top: 20px;
    display: grid;
    gap: 20px;
}

/* Tarjeta individual */
.persona-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
}

.persona-card h4 {
    margin-bottom: 10px;
    font-weight: bold;
    color: #222;
}

.persona-card p {
    margin: 4px 0;
    color: #444;
    font-size: 0.95rem;
}

/* Animación entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
