/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 90px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Portada */
.foto-portada img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Foto de perfil */
.foto-perfil {
    width: 130px;
    height: 130px;
    border: 4px solid white;
    border-radius: 50%;
    overflow: hidden;
    margin: -65px auto 10px auto;
    background-color: #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.foto-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Encabezado del perfil */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-header h1 {
    margin: 10px 0 5px;
    font-size: 24px;
}

.profile-header p {
    color: #555;
    font-style: italic;
}

/* Detalles del perfil */
.profile-details {
    padding: 0 20px;
    line-height: 1.8;
}

.profile-details p {
    margin: 8px 0;
}

/* Botón de editar */
button, input[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Botón cancelar */
.cancel {
    background-color: #6c757d;
    margin-left: 10px;
}

.cancel:hover {
    background-color: #5a6268;
}

/* Formulario de edición */
#perfil-edit form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

#perfil-edit label {
    font-weight: bold;
    margin-top: 10px;
}

#perfil-edit input[type="text"],
#perfil-edit input[type="number"],
#perfil-edit input[type="tel"],
#perfil-edit input[type="file"],
#perfil-edit textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

#perfil-edit textarea {
    min-height: 60px;
}
