/* Estilos generales */
/* Estilos generales */
#listadoContactos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.card-contacto {
    background: var(--pico-background, #fff);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.04);
    padding: 1.2rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: box-shadow 0.2s, transform 0.2s;
    min-width: 0;
    word-break: break-word;
}

.card-contacto:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13), 0 3px 8px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px) scale(1.02);
}

.card-contacto h3 {
    margin: 0.2rem 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pico-primary, #333);
}

.card-contacto .acciones {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.card-contacto button {
    font-size: 1.1rem;
    padding: 0.2rem 0.7rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--pico-muted-border-color, #f0f0f0);
    color: var(--pico-primary, #333);
    cursor: pointer;
    transition: background 0.15s;
}

.card-contacto button:hover {
    background: var(--pico-primary, #e0e0e0);
}

#formContacto {
    background: #fff;
    padding: 2.2rem 2rem 1.5rem 2rem;
    border-radius: 20px;
}

.btn-guardar {
    background: #0074a6;
    color: #fff;
    max-width: 200px;
}

.btn-guardar:hover {
    background: #005e85;
}

.btn-cancelar {
    width: 200px;
    background: #495867;
    color: #fff;
}

.btn-cancelar:hover {
    background: #2d3540;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;

}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    gap: 0.4rem;
}

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

    .card-contacto {
        padding: 1rem 0.7rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Menú de botones estilo modal moderno */
.menu-botones {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0;
    background: none;
    border: none;
}

.menu-botones button {
    min-width: 130px;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-guardar {
    background: #0074a6;
    color: #fff;
}

.btn-guardar:hover {
    background: #005e85;
}

.btn-cancelar {
    background: #495867;
    color: #fff;
}

.btn-cancelar:hover {
    background: #2d3540;
}