/* Estilo general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


h1 {
    color : #000000;
    text-align: center;
    margin: 20px 0 40px 0;
}


.acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    gap: 10px;
    margin-bottom: 20px;
}


#buscar {
    width: 300px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


form {
    max-width: 400px;
    margin: 0 auto 25px auto;
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

form input, form button {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

#listaContactos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    padding: 20px;
}

.card-contacto {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.card-contacto:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    #listaContactos {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    #listaContactos {
        grid-template-columns: 1fr; 
    }
}
