/* ========================================
   ESTILOS PARA VER PERFIL
   ======================================== */

.sc-perfil-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sc-perfil-header {
    text-align: center;
    margin-bottom: 40px;
}

.sc-perfil-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.sc-perfil-header p {
    color: #666;
    font-size: 16px;
}

.sc-perfil-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
}

.sc-perfil-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* Sección de foto de perfil */
.sc-perfil-photo-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.sc-perfil-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.sc-perfil-photo:hover {
    transform: scale(1.05);
    border-color: #333;
}

.sc-perfil-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-perfil-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.sc-perfil-photo:hover .sc-perfil-photo-overlay {
    opacity: 1;
}

.sc-photo-upload-btn {
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sc-photo-upload-btn svg {
    width: 30px;
    height: 30px;
}

.sc-perfil-photo-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.sc-perfil-rol-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Sección de información */
.sc-perfil-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.sc-perfil-info-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sc-perfil-info-group:hover {
    background: #f0f1f3;
    transform: translateY(-2px);
}

.sc-perfil-info-group label {
    display: block;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sc-perfil-info-group p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

/* Formulario de edición */
.sc-perfil-form-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.sc-form-group {
    display: flex;
    flex-direction: column;
}

.sc-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.sc-form-group input,
.sc-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    font-family: inherit;
}

.sc-form-group input:focus,
.sc-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sc-form-group input:hover,
.sc-form-group textarea:hover {
    border-color: #ccc;
}

.sc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botones de acción */
.sc-perfil-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.sc-btn {
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sc-btn:active {
    transform: translateY(0);
}

.sc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sc-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
}

.sc-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.sc-btn-secondary:hover {
    background: #e0e0e0;
}

.sc-btn svg {
    width: 20px;
    height: 20px;
}

/* Mensajes de feedback */
.sc-perfil-mensaje {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.sc-mensaje-exito {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.sc-mensaje-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.sc-perfil-mensaje p {
    margin: 0;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Sección de cambio de contraseña */
.sc-perfil-password-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.sc-perfil-password-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.sc-password-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Error de perfil */
.sc-perfil-error {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 12px;
    text-align: center;
}

.sc-perfil-error p {
    color: #721c24;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Responsividad */
@media (max-width: 768px) {
    .sc-perfil-container {
        padding: 15px;
        margin: 20px auto;
    }

    .sc-perfil-card {
        padding: 25px 20px;
    }

    .sc-perfil-header h1 {
        font-size: 26px;
    }

    .sc-perfil-info-section {
        grid-template-columns: 1fr;
    }

    .sc-perfil-actions {
        flex-direction: column;
    }

    .sc-btn {
        width: 100%;
        justify-content: center;
    }

    .sc-perfil-mensaje {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .sc-perfil-photo {
        width: 120px;
        height: 120px;
    }

    .sc-perfil-photo-section h2 {
        font-size: 24px;
    }

    .sc-perfil-header h1 {
        font-size: 22px;
    }

    .sc-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
